/* ============================================================
   COVERING VOITURE CAUDAN — stylesheet
   Mobile-first · No framework · Core Web Vitals optimized
   ============================================================ */

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:    #0f1f3d;
  --blue-mid:     #1a2f5e;
  --blue-accent:  #1e4fd8;
  --blue-light:   #3b6ff5;
  --anthracite:   #2b2d36;
  --grey-dark:    #3d4050;
  --grey-mid:     #6b7280;
  --grey-light:   #f4f5f7;
  --white:        #ffffff;
  --border:       #e5e7eb;

  --font-base: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);

  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--blue-dark);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--grey-dark); margin-top: .75em; }
p:first-child { margin-top: 0; }

strong { color: var(--blue-dark); font-weight: 600; }

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.bg-light { background: var(--grey-light); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(30, 79, 216, .08);
  padding: .35em .85em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--grey-mid);
  max-width: 640px;
  margin-top: .75rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75em 1.75em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}
.btn-primary:hover {
  background: #1640b8;
  border-color: #1640b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30,79,216,.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}
.btn-outline:hover {
  background: var(--blue-accent);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-large { padding: 1em 2.25em; font-size: 1.05rem; }
.btn-full  { width: 100%; }
.btn-nav   {
  background: var(--blue-accent);
  color: var(--white) !important;
  padding: .5em 1.25em;
  border-radius: var(--radius-sm);
  font-size: .875rem;
}
.btn-nav:hover { background: #1640b8; }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.logo img { height: 44px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  padding: .5em .85em;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-dark);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--blue-dark); background: var(--grey-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #1a3a70 100%);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(59,111,245,.18) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4em 1em;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-top: 0;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-block: 1.75rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  color: rgba(255,255,255,.88);
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(59,130,246,.35);
  border-radius: 50%;
  font-size: .75rem;
  flex-shrink: 0;
  color: #90c5ff;
}

/* ── HERO FORM ───────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--grey-light);
}

.quote-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .375rem; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.required { color: var(--blue-accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7em 1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--anthracite);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(30,79,216,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-mention {
  font-size: .8rem;
  color: var(--grey-mid);
  text-align: center;
  margin-top: .5rem;
}

/* ── PRESENTATION ────────────────────────────────────────── */
.intro-text { max-width: 780px; margin-bottom: 3rem; }
.intro-text p { font-size: 1.05rem; line-height: 1.75; }

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pres-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pres-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pres-icon { margin-bottom: 1rem; }
.pres-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.pres-card p { font-size: .93rem; }

/* ── CTA INLINE ──────────────────────────────────────────── */
.cta-inline {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.cta-inline p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* ── PRESTATIONS ─────────────────────────────────────────── */
.prestations-list { display: flex; flex-direction: column; gap: 3.5rem; margin-top: 2.5rem; }

.prestation-item {
  display: block;
}

.prestation-content h3 { margin-bottom: 1rem; }

.prestation-features {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0;
}
.prestation-features li {
  background: rgba(30,79,216,.08);
  color: var(--blue-accent);
  font-size: .8rem;
  font-weight: 600;
  padding: .3em .85em;
  border-radius: 100px;
  border: 1px solid rgba(30,79,216,.15);
}

/* ── AVANTAGES ───────────────────────────────────────────── */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.avantage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition);
}
.avantage-card:hover { box-shadow: var(--shadow-md); }

.avantage-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1;
  margin-bottom: .5rem;
}
.avantage-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.avantage-card p { font-size: .9rem; margin: 0; }

.avantages-text { margin-top: 3rem; max-width: 780px; }
.avantages-text h3 { margin-top: 2rem; margin-bottom: .75rem; }
.avantages-text h3:first-child { margin-top: 0; }
.avantages-text p { font-size: 1rem; line-height: 1.75; }

/* ── SECTEURS ────────────────────────────────────────────── */
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.secteur-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.secteur-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.secteur-icon {
  font-size: 2rem;
  margin-bottom: .875rem;
  line-height: 1;
}
.secteur-card h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.secteur-card p { font-size: .9rem; line-height: 1.65; }

/* ── ZONES ───────────────────────────────────────────────── */
.zones-intro { max-width: 780px; margin-bottom: 2.5rem; }
.zones-intro p { font-size: 1.05rem; }

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.zone-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}
.zone-card:hover { box-shadow: var(--shadow-md); }

.zone-primary {
  border-color: var(--blue-accent);
  background: linear-gradient(160deg, rgba(30,79,216,.04) 0%, var(--white) 100%);
  grid-column: span 1;
}

.zone-extra {
  border-style: dashed;
  background: var(--grey-light);
}

.zone-card h3 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: .875rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--grey-light);
}
.zone-primary h3 { border-color: rgba(30,79,216,.2); }
.zone-card p { font-size: .9rem; line-height: 1.7; }
.zone-card p + p { margin-top: .75rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2.5rem;
  max-width: 860px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(30,79,216,.25); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: .975rem;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue-accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary { background: rgba(30,79,216,.04); }
.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.faq-answer p { font-size: .93rem; line-height: 1.7; margin-top: 1rem; }
.faq-answer ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: .75rem;
}
.faq-answer ul li { font-size: .93rem; margin-top: .4rem; color: var(--grey-dark); }

/* ── CTA FINAL ───────────────────────────────────────────── */
.section-cta-final { background: var(--blue-dark); }
.section-cta-final .container { color: var(--white); }

.cta-final-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.cta-final-text h2 {
  color: var(--white);
  margin-bottom: .75rem;
}

.cta-final-text > p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.reassurance-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.reassurance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(59,111,245,.3);
  border-radius: 50%;
  color: #90c5ff;
  font-size: .85rem;
  font-weight: 700;
}

.reassurance-item > div {
  display: flex;
  flex-direction: column;
}

.reassurance-item strong {
  color: var(--white);
  font-size: .95rem;
}

.reassurance-item span {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}

.cta-final-form .form-card { background: var(--white); }
.cta-final-form .form-title { color: var(--blue-dark); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #0a1528;
  color: rgba(255,255,255,.75);
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  grid-column: span 1;
}

.footer-brand img { filter: brightness(0) invert(1); opacity: .85; margin-bottom: 1rem; }

.footer-brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.footer-brand address {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

.footer-brand a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-brand a:hover { color: var(--white); }

.footer-nav h4 {
  color: var(--white);
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-contact h4 {
  color: var(--white);
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-contact p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.5rem;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin: 0;
}

.footer-legal { font-size: .75rem !important; color: rgba(255,255,255,.22) !important; }

/* ── RESPONSIVE — MEDIUM (≥ 640px) ──────────────────────── */
@media (min-width: 640px) {
  .hero-features { flex-direction: row; flex-wrap: wrap; gap: .75rem 1.5rem; }

  .cta-final-inner { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 1; }

  .footer-bottom .container { flex-direction: row; justify-content: space-between; }
}

/* ── RESPONSIVE — LARGE (≥ 960px) ───────────────────────── */
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 55% 1fr; align-items: center; gap: 4rem; }

  .zone-primary { grid-column: span 2; }

}

/* ── MOBILE NAV TOGGLE ───────────────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    background: var(--white);
    z-index: 99;
    padding: 1.5rem;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }

  .main-nav a {
    display: block;
    padding: .85em 1em;
    font-size: 1.05rem;
  }

  .btn-nav {
    margin-top: .5rem;
    display: block;
    text-align: center;
  }
}

/* ── FORM STATES ─────────────────────────────────────────── */

/* Champ en erreur */
.field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1) !important;
}

/* Message d'erreur global */
.form-error {
  color: #dc2626;
  font-size: .85rem;
  font-weight: 500;
  padding: .6em .9em;
  background: rgba(220, 38, 38, .06);
  border: 1px solid rgba(220, 38, 38, .2);
  border-radius: var(--radius-sm);
  margin-top: .5rem;
}

/* Spinner dans le bouton */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

.btn.is-loading .btn-label { opacity: .6; }
.btn.is-loading .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Message de confirmation */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: .75rem;
}

.form-success[hidden] { display: none; }

.success-icon {
  width: 56px;
  height: 56px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.form-success h3 {
  font-size: 1.2rem;
  color: var(--blue-dark);
}

.form-success p {
  font-size: .95rem;
  color: var(--grey-mid);
  max-width: 320px;
}

/* ── FOCUS VISIBLE ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .site-header, .hero-form, .section-cta-final, .site-footer { display: none; }
}
