/* ============================================================
   VALCAB Solutions — Feuille de style globale
   Stack : HTML5 / CSS3 / Vanilla JS
   ============================================================ */

/* ---- Variables -------------------------------------------- */
:root {
  --navy:       #1B3A5C;
  --teal:       #2AB5A5;
  --teal-light: #E8F8F7;
  --white:      #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid:   #888888;
  --text:       #333333;

  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: 70px; /* offset navbar fixe */
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.navbar-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.navbar-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--white);
}
.navbar-nav a.active {
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

/* CTA button dans la nav */
.navbar-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  transition: background var(--transition), color var(--transition) !important;
}
.navbar-cta:hover {
  background: var(--white) !important;
  color: var(--navy) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}
.footer-col li {
  margin-bottom: 0.45rem;
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }
.footer-col p {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col p i { color: var(--teal); width: 14px; }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.section-header p {
  color: var(--gray-mid);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.bg-gray       { background: var(--gray-light); }
.bg-teal-light { background: var(--teal-light); }
.bg-navy       { background: var(--navy); }

/* ---- Boutons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--teal-light);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--navy);
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ---- Animations scroll ------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Délais pour les grilles */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   PAGE HEADER (pages internes)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   HERO (index.html)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  min-height: calc(90vh - 70px);
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   SECTION POURQUOI — 4 cartes
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--teal);
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--gray-mid);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================================
   SECTION FORMULES (aperçu homepage)
   ============================================================ */
.formules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.formule-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--teal);
  transition: transform var(--transition);
}
.formule-card:hover { transform: translateY(-4px); }
.formule-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.formule-price {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.formule-desc {
  font-size: 0.825rem;
  color: var(--gray-mid);
}
.formules-cta { text-align: center; }

/* ============================================================
   CTA SECTION (fond navy)
   ============================================================ */
.cta-section {
  background: var(--navy);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--white);
}
.cta-section h2 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.cta-section p {
  font-size: 1.05rem;
  opacity: 0.82;
  margin-bottom: 2rem;
}

/* ============================================================
   PRICING (prestations)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: transform var(--transition);
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.featured {
  border-color: var(--teal);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-5px);
}

.pricing-badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.badge-teal   { background: var(--teal);   color: var(--white); }
.badge-navy   { background: var(--navy);   color: var(--white); }
.badge-orange { background: #E67E22;       color: var(--white); }

.pricing-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.pricing-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-mid);
}
.pricing-payment {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}
.pricing-features {
  flex-grow: 1;
  margin-bottom: 1.75rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.pricing-features li i {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}
.pricing-note {
  font-size: 0.825rem;
  color: var(--gray-mid);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

/* Options supplémentaires */
.options-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.options-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.25rem;
  text-align: left;
}
.options-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text);
}
.options-table td:last-child {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.options-table tr:hover td { background: var(--teal-light); }

/* Abonnement */
.abonnement-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-left: 4px solid var(--teal);
}
.abonnement-features { display: flex; flex-direction: column; gap: 0.6rem; }
.abonnement-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.abonnement-features li i { color: var(--teal); }
.abonnement-price-block { text-align: center; min-width: 140px; }
.abonnement-price {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}
.abonnement-price span { font-size: 1rem; font-weight: 400; color: var(--gray-mid); }
.abonnement-note {
  font-size: 0.78rem;
  color: var(--gray-mid);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ============================================================
   FORMULAIRE DEVIS (devis.html)
   ============================================================ */
.devis-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.form-section-title {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-light);
}
.form-section-title:first-child { margin-top: 0; }
.form-group { margin-bottom: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.required { color: var(--teal); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,181,165,0.12);
}
.form-control:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B3A5C' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.radio-label input { accent-color: var(--teal); width: 16px; height: 16px; }
.form-submit { text-align: center; margin-top: 2rem; }
.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: none;
}
/* Message succès */
.form-success {
  display: none;
  background: var(--teal-light);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--navy);
}
.form-success i {
  font-size: 2.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.form-success h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Encart rassurant */
.reassurance-card {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: sticky;
  top: 90px;
}
.reassurance-card h3 {
  font-family: var(--font-title);
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.reassurance-card ul { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.reassurance-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--navy);
}
.reassurance-card li i { color: var(--teal); margin-top: 3px; flex-shrink: 0; }
.reassurance-contact { border-top: 1px solid rgba(42,181,165,0.3); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.reassurance-contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.reassurance-contact a:hover { color: var(--teal); }
.reassurance-contact a i { color: var(--teal); width: 16px; }

/* ============================================================
   MENTIONS LÉGALES (mentions.html)
   ============================================================ */
.mentions-content {
  max-width: 800px;
  margin: 0 auto;
}
.mentions-content h2 {
  font-family: var(--font-title);
  color: var(--navy);
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--teal-light);
}
.mentions-content h2:first-child { margin-top: 0; }
.mentions-content p, .mentions-content li {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.mentions-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.mentions-content strong { color: var(--navy); }

/* ============================================================
   RESPONSIVE — Tablette (≤ 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  .cards-grid      { grid-template-columns: repeat(2, 1fr); }
  .formules-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: scale(1); }
  .devis-layout    { grid-template-columns: 1fr; }
  .reassurance-card { position: static; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .abonnement-card { grid-template-columns: 1fr; text-align: center; }
  .abonnement-price-block { min-width: auto; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar mobile */
  .hamburger { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { font-size: 1rem; }
  .navbar-cta { align-self: flex-start; }

  /* Layout */
  .hero { padding: 3.5rem 1.5rem 3rem; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }
  .section { padding: 3rem 1.5rem; }

  .cards-grid    { grid-template-columns: 1fr; }
  .formules-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 1.75rem; }

  .page-header { padding: 3rem 1.5rem 2.5rem; }
}
