/* ==========================================================================
   marcoleroux.com — feuille de style commune
   Bleu marine = couleur principale · Orange = boutons d'appel à l'action seulement
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-700: #13315C;
  --navy-050: #F3F6FA;
  --navy-100: #E3EAF3;
  --orange: #F26B1D;        /* boutons d'appel à l'action seulement */
  --orange-hover: #FF7F33;
  --text: #1B2533;
  --text-muted: #4A5568;
  --border: #D5DEEA;
  --white: #FFFFFF;
  --radius: 10px;
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 84px; } /* l'en-tête fixe ne cache pas les ancres (#formulaire, #faq) */
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); letter-spacing: -.005em; }
h3, .h3 { font-size: 1.2rem; }
.mt-lg { margin-top: 32px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { color: var(--navy); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .6em 1em; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
}
/* Orange : réservé aux appels à l'action. Texte bleu marine = contraste AA (5,1:1). */
.btn-cta { background: var(--orange); color: var(--navy); }
.btn-cta:hover { background: var(--orange-hover); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 1.25rem; }
.btn-row-center { justify-content: center; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 1.2rem; }
.logo-sub { font-size: .8rem; color: var(--text-muted); font-weight: 600; }

.menu-toggle {
  display: none; min-height: 44px; padding: .5em 1em;
  font: inherit; font-weight: 700; color: var(--navy);
  background: var(--white); border: 2px solid var(--navy); border-radius: 8px; cursor: pointer;
}
.js .menu-toggle { display: inline-flex; align-items: center; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 600; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-phone { font-weight: 700; white-space: nowrap; }

/* Mobile : menu replié (seulement si le JavaScript fonctionne) */
@media (max-width: 959px) {
  .site-nav { padding: 0 0 16px; }
  .site-nav li + li { margin: 0; }
  .site-nav ul a { display: block; padding: .7em 0; border-bottom: 1px solid var(--navy-100); }
  .header-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
  .header-actions .header-phone { padding: .4em 0; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
}
@media (min-width: 960px) {
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav li + li { margin: 0; }
  .header-actions { display: flex; align-items: center; gap: 18px; }
  .js .menu-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-alt { background: var(--navy-050); }
.section-navy { background: var(--navy); color: #E6ECF5; }
.section-navy h2, .section-navy h3, .section-navy strong { color: var(--white); }
.section-navy a:not(.btn) { color: var(--white); }
.eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700);
}
.section-navy .eyebrow { color: #C9D6E8; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.section-navy .lead { color: #D3DDEA; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .lead { max-width: 620px; }
.hero-photo img {
  width: 100%; max-height: 440px; object-fit: cover; object-position: center 18%;
  border-radius: var(--radius);
}
.hero-note { margin-top: 1rem; font-size: .95rem; color: var(--text-muted); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.25fr .9fr; gap: 56px; }
  .hero-photo img { max-height: 600px; }
}

/* ---------- Bande de crédibilité ---------- */
.trust { background: var(--navy); color: var(--white); padding: 18px 0; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  font-weight: 700; font-size: .98rem; text-align: center;
}
.trust li + li { margin: 0; }
.trust li::before { content: "✓"; color: var(--orange); margin-right: .45em; }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-top: 64px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; top: 24px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: .95rem;
}

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.8em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--navy); font-weight: 800; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split-reverse > :first-child { order: 2; } }
.rounded { border-radius: var(--radius); }

.highlight {
  border-left: 4px solid var(--navy); background: var(--navy-050);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.highlight p:last-child { margin: 0; }

/* ---------- Tableau comparatif ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .97rem; }
.compare caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--navy); }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.compare thead th { background: var(--navy-050); color: var(--navy); font-size: .95rem; }
.compare tbody th { color: var(--navy); width: 16%; }
.compare .is-us { background: #FFF4EC; }
.compare thead .is-us { background: var(--navy); color: var(--white); }
.table-hint { font-size: .9rem; color: var(--text-muted); margin-top: .6rem; }
@media (min-width: 900px) { .table-hint { display: none; } }

/* ---------- Secteurs ---------- */
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { margin: 0; padding: .45em .9em; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-weight: 600; color: var(--navy); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 40px 18px 0; font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 18px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq h3 { display: inline; font-size: inherit; margin: 0; }

/* ---------- Appel à l'action final + formulaire ---------- */
.cta-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.big-phone { display: inline-block; font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.6rem); font-weight: 800; text-decoration: none; color: var(--navy); }
.section-navy .big-phone { color: var(--white); }

.form-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card h2, .form-card h3, .section-navy .form-card strong { color: var(--navy); }
.section-navy .form-card a:not(.btn) { color: var(--navy-700); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .97rem; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .65em .8em;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid #8A99AD; border-radius: 8px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { display: block; margin-top: 6px; color: #B42318; font-size: .92rem; font-weight: 600; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.field .consent label { font-weight: 400; color: var(--text); margin: 0; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B42318; }
.form-note { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* ---------- Témoignages ---------- */
.testimonial { display: flex; flex-direction: column; gap: 14px; border-style: dashed; border-width: 2px; }
.testimonial .placeholder-media {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--navy-050); color: var(--text-muted); font-size: .7rem; font-weight: 600; line-height: 1.2;
}
.testimonial blockquote { margin: 0; color: var(--text-muted); font-style: italic; }
.testimonial figcaption { font-weight: 700; color: var(--navy); font-size: .95rem; }

.placeholder-box {
  display: grid; place-items: center; text-align: center; padding: 24px;
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--navy-050);
  color: var(--text-muted); font-weight: 600;
}

/* ---------- Mon parcours ---------- */
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--navy-100); margin-left: 6px; }
.timeline > li { position: relative; padding: 0 0 28px 26px; margin: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -9px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 3px solid var(--white);
}
.timeline .when { display: block; font-weight: 700; color: var(--navy-700); font-size: .95rem; }
.timeline h3 { margin: .15em 0 .4em; }
.book { display: grid; gap: 28px; align-items: center; }
@media (min-width: 720px) { .book { grid-template-columns: 240px 1fr; gap: 44px; } }
.book img { border-radius: 6px; box-shadow: 0 10px 30px rgba(11, 37, 69, .18); }
.photo-pair { display: grid; gap: 16px; }
@media (min-width: 720px) { .photo-pair { grid-template-columns: 1.6fr 1fr; align-items: stretch; } .photo-pair img { height: 100%; object-fit: cover; } }

/* ---------- Pages texte ---------- */
.page-head { padding: 44px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 16px; } }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--text-muted); }
.breadcrumb li + li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--text-muted); }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #D3DDEA; padding: 48px 0 28px; font-size: .97rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-title { color: var(--white); font-weight: 800; font-size: 1.05rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .4em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 32px; padding-top: 20px; font-size: .9rem; }

/* ---------- Barre d'appel fixe (mobile) ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(11, 37, 69, .08);
}
.call-bar .btn { width: 100%; }
/* Espace sous le pied de page pour que la barre d'appel ne cache rien */
.site-footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .call-bar { display: none; }
  .site-footer { padding-bottom: 28px; }
}
