/* ==========================================================================
   Ducrot Julian — Convoyeur automobile
   Feuille de style unique (bleu nuit / rouge, inspirée de l'affiche)
   ========================================================================== */

:root {
  --navy:        #0d1b3e;
  --navy-2:      #16294f;
  --navy-3:      #1e3a6e;
  --red:         #d5222b;
  --red-dark:    #b0141d;
  --ink:         #1a2233;
  --ink-soft:    #4a5568;
  --line:        #e2e8f0;
  --bg:          #ffffff;
  --bg-alt:      #f4f7fb;
  --amber:       #f5a623;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow-sm:   0 1px 2px rgba(13,27,62,.06), 0 4px 14px rgba(13,27,62,.06);
  --shadow-md:   0 6px 24px rgba(13,27,62,.12);
  --wrap:        1120px;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

/* ---------------------------- Base ---------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.14rem; font-weight: 700; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

sup { font-size: .62em; }

strong { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }

/* ---------------------------- Boutons ------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: .97rem; font-weight: 700; font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 16px rgba(213,34,43,.28);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--navy); border-color: rgba(13,27,62,.22);
}
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------------------- En-tête ------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--navy); color: #fff;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; font-weight: 800; }
.brand-text small { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 700; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-size: .93rem; font-weight: 600; color: var(--navy);
  text-decoration: none; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

.header-call { padding: .6rem 1.15rem; font-size: .9rem; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-call { margin-left: auto; }
}

/* ---------------------------- Hero ---------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 460px at 82% -10%, rgba(213,34,43,.32), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 52%, #0a1430 100%);
  color: #fff;
  padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2.8rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 34%, var(--amber) 34%, var(--amber) 40%, transparent 40%);
}

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--amber); }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #ffd9a8;
  margin: 0 0 1rem;
  padding: .34rem .8rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.lead { font-size: 1.08rem; color: rgba(255,255,255,.9); max-width: 62ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.5rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.42); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .93rem; color: rgba(255,255,255,.86);
}
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: "✓"; color: var(--amber); font-weight: 800;
}

.hero-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}
.hero-card img { width: 100%; display: block; }

/* ---------------------------- Bandeau confiance --------------------------- */

.trust-band {
  background: var(--navy-3);
  color: #fff;
  padding: 2.1rem 0;
  border-bottom: 3px solid var(--red);
}
.trust-title {
  font-size: 1.05rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; margin: 0 0 .7rem; color: #ffd9a8;
}
.trust-quote { max-width: 74ch; }
.trust-quote strong { display: block; color: #fff; font-size: 1.22rem; font-weight: 800; margin-bottom: .45rem; }
.trust-quote span { color: rgba(255,255,255,.88); font-style: italic; }

/* ---------------------------- Sections ------------------------------------ */

.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  font-size: .79rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .5rem;
}
.section-intro { font-size: 1.05rem; color: var(--ink-soft); max-width: 70ch; margin-bottom: 2rem; }

/* ---------------------------- Cartes services ----------------------------- */

.cards {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  margin-top: 1.9rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd9e8; }

.card-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card-tag {
  align-self: flex-start;
  margin: 1rem 0 0;
  font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--red-dark);
  background: #fdecec;
  border: 1px solid #f7c9cb;
  border-radius: 999px;
  padding: .3rem .75rem;
}

/* ---------------------------- Zones desservies ---------------------------- */

.departments {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.departments li {
  display: flex; align-items: center; gap: .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-sm);
  padding: .85rem 1.05rem;
  box-shadow: var(--shadow-sm);
}
.dep-num {
  font-weight: 800; font-size: 1.22rem; color: var(--navy);
  min-width: 2.1rem; letter-spacing: -.02em;
}
.dep-name { font-weight: 600; color: var(--ink); }

.zones-note {
  background: #fff;
  border: 1px dashed #c3cfdf;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.zones-note p { font-size: .99rem; color: var(--ink-soft); }
.zones-note strong { color: var(--navy); }

/* ---------------------------- Annonce 2027 -------------------------------- */

.announce {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.7rem, 4vw, 2.7rem);
  border-top: 5px solid var(--red);
  box-shadow: var(--shadow-md);
}
.announce-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.announce-head h2 { color: #fff; margin: 0; }
.announce-head .section-kicker { color: #ffd9a8; }
.announce-badge {
  display: grid; place-items: center;
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 13px; background: rgba(255,255,255,.12);
  color: #fff;
}

.announce-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
.announce-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.03rem; color: rgba(255,255,255,.94); }
.announce-list strong { color: var(--amber); }
.announce-check {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 800;
  margin-top: .22rem;
}
.announce-foot {
  margin: 0; padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .97rem; color: rgba(255,255,255,.82);
}

/* ---------------------------- Formulaire devis ---------------------------- */

.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.05rem; }
.field-row { display: grid; gap: 1.05rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  display: block; margin-bottom: .38rem;
  font-size: .88rem; font-weight: 700; color: var(--navy);
}
.req { color: var(--red); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .72rem .85rem;
  font-family: inherit; font-size: .98rem; color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #ccd6e4;
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(30,58,110,.14);
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { appearance: none; background-image: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.form-hint {
  margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft);
  min-height: 1.4em;
}
.form-hint.is-ok { color: #1a7f4b; font-weight: 600; }

/* ---------------------------- Contact ------------------------------------- */

.contact-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 1.9rem;
}
.contact-block {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-block h3 { margin-bottom: 1rem; }

.contact-lines { display: grid; gap: .6rem; margin-bottom: 1rem; }
.phone-link {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: 1.28rem; font-weight: 800; color: var(--navy);
  text-decoration: none; letter-spacing: -.01em;
}
.phone-link svg { color: var(--red); flex: 0 0 auto; }
.phone-link:hover { color: var(--red); }

.contact-note { font-size: .96rem; color: var(--ink-soft); }
.contact-address {
  font-style: normal; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: .96rem; line-height: 1.8;
}

.legal-list { margin: 0 0 1rem; }
.legal-list dt {
  font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--red); margin-bottom: .1rem;
}
.legal-list dd {
  margin: 0 0 .85rem; font-size: .98rem; color: var(--ink);
  word-break: break-word;
}
.legal-note {
  font-size: .87rem; color: var(--ink-soft);
  background: var(--bg-alt); border-left: 3px solid var(--amber);
  padding: .8rem .95rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-mail { margin-bottom: .9rem; }
.mail-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.06rem; font-weight: 700; color: var(--navy);
  text-decoration: none; word-break: break-all;
}
.mail-link::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 auto;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2.5'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2.5'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mail-link:hover { color: var(--red); }

/* ---------------------------- Pied de page -------------------------------- */

.site-footer {
  background: var(--navy); color: rgba(255,255,255,.82);
  padding: 2.3rem 0; margin-top: 0;
}
.footer-inner { text-align: center; }
.footer-brand { font-size: 1.04rem; margin-bottom: .6rem; color: #fff; }
.footer-brand strong { color: #fff; }
.footer-legal { font-size: .88rem; line-height: 1.85; margin-bottom: .8rem; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0; }

/* ---------------------------- Bouton appel flottant ----------------------- */

.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.15rem;
  background: var(--red); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(213,34,43,.4);
}
.call-fab:hover { background: var(--red-dark); color: #fff; }
@media (min-width: 901px) { .call-fab { display: none; } }

/* ---------------------------- Impression ---------------------------------- */

@media print {
  .site-header, .call-fab, .form-actions, .hero-actions { display: none !important; }
  .hero, .announce, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .hero h1 .accent, .announce-head h2, .announce-list li { color: #000 !important; }
  body { font-size: 12pt; }
  .section { padding: 1rem 0; page-break-inside: avoid; }
}
