/* ============================================================
   OMNI — Formation pour omnipraticiens
   Charte graphique : ivoire / noir / or (héritée du site Carrd)
   ============================================================ */

:root {
  --ivoire: #ECEBE7;        /* fond principal, hérité du Carrd */
  --blanc: #FAFAF8;
  --noir: #111111;
  --noir-doux: #1d1d1b;
  --or: #C9A24B;            /* accent doré */
  --or-clair: #D9B968;
  --gris: #6b6b66;
  --gris-clair: #d8d6d0;
  --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif; /* titres : sans géométrique gras, fidèle au logo OMNI */
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivoire);
  color: var(--noir-doux);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typographie ---------- */

h1, h2, h3, .logo {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--noir);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: 1.35rem; margin-bottom: .4em; }

.accent { color: var(--or); }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or);
  border: 1px solid var(--or);
  padding: .45em 1.1em;
  border-radius: 999px;
  margin-bottom: 1.4em;
  background: rgba(201, 162, 75, .06);
}

.lead { font-size: 1.15rem; color: var(--gris); max-width: 46em; }

/* ---------- Header / navigation ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 235, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-clair);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  letter-spacing: .38em;
  text-decoration: none;
  color: var(--noir);
  font-weight: 800;
}

nav.main { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

nav.main a {
  text-decoration: none;
  color: var(--noir-doux);
  font-size: .92rem;
  font-weight: 500;
  padding: .3em 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

nav.main a:hover, nav.main a[aria-current="page"] {
  color: var(--noir);
  border-bottom-color: var(--or);
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .85em 1.9em;
  border-radius: 3px;
  transition: transform .15s, box-shadow .15s, background .2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17,17,17,.15); }

.btn-noir { background: var(--noir); color: #fff; border: 1px solid var(--noir); }
.btn-noir:hover { background: #000; }

.btn-or {
  background: var(--or);
  color: var(--noir);
  border: 1px solid var(--or);
}
.btn-or:hover { background: var(--or-clair); }

.btn-ghost {
  background: transparent;
  color: var(--noir);
  border: 1px solid var(--noir);
}

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

section { padding: 4.5rem 1.4rem; }
.inner { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }

.section-sombre {
  background: var(--noir);
  color: #e9e7e2;
}
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre .lead { color: #b9b7b0; }

.section-blanche { background: var(--blanc); }

.filet {
  width: 54px; height: 3px;
  background: var(--or);
  margin: 0 auto 1.6rem;
  border-radius: 2px;
}
.filet.gauche { margin: 0 0 1.6rem; }

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

.hero {
  padding: 6.5rem 1.4rem 5.5rem;
  text-align: center;
}

.hero .logo-hero {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: .32em;
  margin-left: .32em; /* compense l'espacement de la dernière lettre */
  font-weight: 800;
  color: var(--noir);
}

.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 1.2rem;
  font-weight: 700;
}

.hero .sous {
  color: var(--gris);
  margin: 1rem auto 2.2rem;
  max-width: 38em;
}

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

.grille {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.grille.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille.c4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grille.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.carte {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: 6px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.carte .niveau-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .6rem;
}

.carte h3 { font-size: 1.5rem; }

.carte p.public {
  font-size: .88rem;
  color: var(--gris);
  background: var(--ivoire);
  border-radius: 4px;
  padding: .7em .9em;
  margin: 1rem 0 1.4rem;
}

.carte .btn { margin-top: auto; align-self: flex-start; }

.carte-sombre {
  background: var(--noir-doux);
  border-color: #2c2c29;
  color: #d9d7d1;
}
.carte-sombre h3 { color: #fff; }

/* ---------- Chiffres clés ---------- */

.stat {
  text-align: center;
  padding: 1.6rem 1rem;
}
.stat .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--or);
}
.stat .label { font-weight: 600; color: inherit; }
.stat .detail { font-size: .85rem; color: var(--gris); }
.section-sombre .stat .detail { color: #96948d; }

/* ---------- Listes stylées ---------- */

ul.coche { list-style: none; margin: 1rem 0; }
ul.coche li {
  padding-left: 1.7em;
  position: relative;
  margin-bottom: .55em;
}
ul.coche li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: .85em; height: .85em;
  border-radius: 50%;
  background: var(--or);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.2 12.6 1.9 8.3l1.4-1.4 2.9 2.9 6.5-6.5 1.4 1.4z"/></svg>') center/contain no-repeat;
}

ul.croix li::before {
  background: #b0554a;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M4 3l4 4 4-4 1.4 1.4-4 4 4 4L12 13.8l-4-4-4 4L2.6 12.4l4-4-4-4z"/></svg>') center/contain no-repeat;
}

/* ---------- Étapes méthode ---------- */

.etape {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.etape .rond {
  flex: none;
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  background: var(--or);
  color: var(--noir);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */

details.faq {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: 6px;
  margin-bottom: .9rem;
  padding: 1.1rem 1.4rem;
}
details.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--or);
  transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: .8rem; color: var(--gris); }

/* ---------- Témoignages ---------- */

.temoignage {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-left: 4px solid var(--or);
  border-radius: 6px;
  padding: 1.8rem;
}
.temoignage blockquote {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
}
.temoignage .auteur { font-weight: 600; font-size: .92rem; }
.temoignage .contexte { font-size: .83rem; color: var(--gris); }

.a-remplacer {
  border: 2px dashed var(--or);
  background: rgba(201,162,75,.05);
}
.badge-placeholder {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6d2f;
  background: rgba(201,162,75,.18);
  padding: .3em .8em;
  border-radius: 999px;
  margin-bottom: .8rem;
}

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

form.contact {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 2rem auto 0;
}
form.contact input,
form.contact select,
form.contact textarea {
  font: inherit;
  padding: .85em 1em;
  border: 1px solid var(--noir);
  border-radius: 3px;
  background: var(--blanc);
  color: var(--noir);
  width: 100%;
}
form.contact textarea { min-height: 120px; resize: vertical; }
form.contact button { justify-self: center; }
.rgpd { font-size: .8rem; color: var(--gris); text-align: center; }

/* ---------- Bandeau CTA ---------- */

.bandeau-cta {
  background: var(--noir);
  color: #e9e7e2;
  text-align: center;
  padding: 4rem 1.4rem;
}
.bandeau-cta h2 { color: #fff; }
.bandeau-cta .places {
  color: var(--or);
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1.6rem;
}

/* ---------- Blog ---------- */

.article-carte {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: 6px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.article-carte .date { font-size: .8rem; color: var(--gris); letter-spacing: .05em; }
.article-carte a.titre {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--noir);
  text-decoration: none;
}
.article-carte a.titre:hover { color: var(--or); }

article.prose { max-width: 720px; margin: 0 auto; }
article.prose p { margin-bottom: 1.1em; }
article.prose h2 { margin-top: 1.6em; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--noir);
  color: #b9b7b0;
  padding: 3rem 1.4rem 2rem;
  font-size: .88rem;
}
footer.site .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
footer.site .logo { color: #fff; font-size: 1.2rem; }
footer.site a { color: #d9d7d1; text-decoration: none; }
footer.site a:hover { color: var(--or); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: .4em; }
.footer-bas {
  max-width: var(--maxw);
  margin: 2.4rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #2c2c29;
  font-size: .78rem;
  color: #85837c;
  text-align: center;
}

/* ---------- Divers ---------- */

.note-info {
  background: rgba(201,162,75,.08);
  border: 1px solid var(--or);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  font-size: .92rem;
  margin: 1.6rem 0;
}

table.tarifs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  background: var(--blanc);
}
table.tarifs th, table.tarifs td {
  border: 1px solid var(--gris-clair);
  padding: .9em 1.1em;
  text-align: left;
}
table.tarifs th { background: var(--noir); color: #fff; font-weight: 600; }

@media (max-width: 640px) {
  nav.main { gap: .9rem; font-size: .85rem; }
  .nav-inner { flex-direction: column; }
  section { padding: 3.2rem 1.2rem; }
}

/* ---------- Mantras ---------- */

.mantras {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.mantra {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.35;
  padding: 2rem 1.8rem;
  border-left: 4px solid var(--or);
  background: var(--blanc);
  border-radius: 6px;
  color: var(--noir);
}
.mantra .num-mantra {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .8rem;
}
.section-sombre .mantra {
  background: var(--noir-doux);
  color: #fff;
}

/* ---------- Logo image (repris du site d'origine) ---------- */

.logo-img { height: 20px; width: auto; display: block; }
.logo-img-footer { height: 16px; width: auto; display: block; }
.hero .logo-hero img { width: min(72vw, 460px); height: auto; display: inline-block; }
