/* ==========================================================================
   Cabinet Jai Mansouri — styles.css
   Feuille de style unique. Palette : bleu nuit / laiton / blanc cassé.
   Polices auto-hébergées : Cormorant Garamond (titres) + Inter (corps).
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

:root {
  --navy: #0d1f33;
  --navy-deep: #0a1828;
  --navy-soft: #16293f;
  --brass: #b08d57;
  --brass-soft: #c8a877;
  --paper: #faf8f3;
  --white: #ffffff;
  --ink: #1d2d3e;
  --muted: #59677a;
  --line: #e7e1d6;
  --green-wa: #1eae53;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
strong { color: var(--navy); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.7rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand { text-decoration: none; color: var(--navy); line-height: 1.2; }
.brand__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: block;
}
.brand__tag {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); display: block; margin-top: 2px;
}
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  padding: 0.4rem 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--brass); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.5rem 0.65rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(13, 31, 51, 0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0; }
  .site-nav a { display: block; padding: 0.85rem 1.5rem; }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: 4px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); line-height: 1.3;
}
.btn--primary { background: var(--brass); color: var(--navy-deep); }
.btn--primary:hover { background: var(--brass-soft); color: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-soft); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }
.btn--wa { background: var(--green-wa); color: #fff; }
.btn--wa:hover { background: #178a41; color: #fff; }
.btn svg { flex: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { background: var(--navy); color: rgba(255, 255, 255, 0.88); padding: 4rem 0 4.5rem; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero__proof {
  font-size: 0.95rem; letter-spacing: 0.04em; color: var(--brass-soft);
  margin-bottom: 1.6rem; font-weight: 600;
}
.hero__lead { font-size: 1.12rem; max-width: 34em; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__media img {
  width: 100%; max-height: 540px; object-fit: cover; object-position: 50% 22%;
  border-radius: 6px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.hero--page { padding: 3.2rem 0; }
.hero--page .hero__lead { margin-bottom: 0.4rem; }
@media (max-width: 860px) {
  .hero { padding: 2.6rem 0 3rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Barre de confiance
   -------------------------------------------------------------------------- */
.trustbar { background: var(--navy-deep); color: var(--white); }
.trustbar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, 0.08);
}
.trustbar__item { background: var(--navy-deep); padding: 1.5rem 1rem; text-align: center; }
.trustbar__num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--brass-soft); display: block; }
.trustbar__label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 700px) { .trustbar__grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 4.2rem 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.88); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 0.9rem;
}
.section__intro { max-width: 44em; }

/* --------------------------------------------------------------------------
   Cartes / grilles
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.8rem 1.6rem;
}
.card--navy { background: var(--navy-soft); border-color: var(--navy-soft); color: rgba(255, 255, 255, 0.88); }
.card--navy h3, .card--navy a { color: var(--white); }
.card h3 { margin-bottom: 0.5em; }
.card--featured { border-top: 3px solid var(--brass); }
.card__link { font-weight: 600; font-size: 0.95rem; }

/* Étapes numérotées */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.steps li {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.5rem 1.6rem 1.5rem 4.6rem; position: relative;
}
.steps li::before {
  content: attr(data-step);
  position: absolute; left: 1.4rem; top: 1.45rem;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brass);
}
.steps h3 { margin-bottom: 0.35em; font-size: 1.2rem; }
.steps p:last-child { margin-bottom: 0; }

/* Arbre de décision */
.decision { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 700px) { .decision { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Blocs éditoriaux
   -------------------------------------------------------------------------- */
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }

blockquote.exergue {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.4;
  color: var(--navy); border-left: 3px solid var(--brass);
  margin: 2.2rem 0; padding: 0.4rem 0 0.4rem 1.6rem;
}

.note-box {
  background: #fdf9ef; border: 1px solid var(--brass-soft); border-radius: 6px;
  padding: 1.2rem 1.4rem; margin: 1.6rem 0; font-size: 0.98rem;
}
.note-box--pending { border-style: dashed; color: var(--muted); font-style: italic; }

.credentials {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass);
  border-radius: 6px; padding: 1.8rem 1.8rem 1.2rem; margin: 2rem 0;
}
.credentials ul { list-style: none; padding: 0; margin: 0; }
.credentials li {
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.credentials li:last-child { border-bottom: none; }
.credentials .k { color: var(--muted); font-size: 0.92rem; }
.credentials .v { font-weight: 600; color: var(--navy); text-align: right; }

.byline {
  border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.2rem;
  font-size: 0.9rem; color: var(--muted);
}

/* Fil d'Ariane */
.breadcrumb { padding: 0.9rem 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: var(--brass); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

/* FAQ */
.faq { margin-top: 2rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  margin-bottom: 0.8rem; padding: 0 1.4rem;
}
.faq summary {
  font-weight: 600; color: var(--navy); cursor: pointer;
  padding: 1.1rem 0; list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.4rem; color: var(--brass);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.2rem; }

/* Avis */
.avis { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; }
.avis__stars { color: var(--brass); letter-spacing: 0.15em; margin-bottom: 0.6rem; }
.avis__author { font-size: 0.88rem; color: var(--muted); margin: 0.8rem 0 0; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form-grid label { font-weight: 600; font-size: 0.92rem; color: var(--navy); display: block; margin-bottom: 0.35rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid #c9c2b4; border-radius: 4px;
  font-family: var(--sans); font-size: 1rem; background: var(--white); color: var(--ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass);
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 4px; font-weight: 600; }
.form-status.is-ok { display: block; background: #eef7ee; color: #1d5c2f; border: 1px solid #bfdec5; }
.form-status.is-err { display: block; background: #fbeeee; color: #8a2b2b; border: 1px solid #e6c4c4; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; margin-top: 2rem; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.contact-info p { margin-bottom: 0.4em; }
.contact-info .k { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); display: block; margin-top: 1.4rem; font-weight: 600; }
.contact-info a { font-weight: 600; }

.map-loader {
  margin-top: 2rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); min-height: 320px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem;
}
.map-loader iframe { width: 100%; height: 380px; border: 0; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-brand .brand__name { color: var(--white); font-size: 1.15rem; }
.footer-brand .brand__tag { color: var(--brass-soft); }
.site-footer h3 {
  color: var(--white); font-family: var(--sans); font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.4rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.55);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   WhatsApp flottant
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green-wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(10, 24, 40, 0.3);
}
.wa-float:hover { background: #178a41; color: #fff; }

@media print { .wa-float, .site-header, .site-footer { display: none; } }
