/* Safqa — page d'accueil publique.
   Mêmes polices et mêmes teintes que l'application : ivoire, vert profond, laiton. */

@font-face {
  font-family: "Inter";
  src: url("polices/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("polices/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --toile: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --encre: #13201a;
  --encre-2: #3a4740;
  --discret: #6b766f;
  --trait: #e7e3da;
  --accent: #0b5a43;
  --accent-2: #0e6c51;
  --accent-doux: #e4efe9;
  --laiton: #9c7632;
  --laiton-vif: #b98a3a;
  --laiton-doux: #f5ecda;
  --profond: #0c2a21;
  --profond-texte: #d7e3dc;
  --rayon: 14px;
  --ombre: 0 1px 2px rgb(19 32 26 / 0.04), 0 10px 28px -14px rgb(19 32 26 / 0.14);
  --ombre-haute: 0 2px 4px rgb(19 32 26 / 0.05), 0 22px 44px -18px rgb(19 32 26 / 0.26);
  --titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --toile: #0d1310;
    --surface: #141c18;
    --surface-2: #19231e;
    --encre: #e8eee9;
    --encre-2: #c2ccc5;
    --discret: #93a198;
    --trait: #243029;
    --accent: #4dbb90;
    --accent-2: #62c9a0;
    --accent-doux: #15302a;
    --laiton: #d4ad62;
    --laiton-vif: #e0bb72;
    --laiton-doux: #2c2515;
    --profond: #09110e;
    --ombre: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px -14px rgb(0 0 0 / 0.5);
    --ombre-haute: 0 2px 4px rgb(0 0 0 / 0.35), 0 22px 44px -18px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

*, *::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;
  background: var(--toile);
  color: var(--encre);
  font: 400 16px/1.6 var(--texte);
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--titre); font-weight: 560; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 26ch; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent); }

.largeur { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.largeur-texte { max-width: 780px; }
.surtitre {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 0.9rem;
}
.chapeau { font-size: 1.15rem; color: var(--encre-2); max-width: 60ch; margin-bottom: 1.6rem; }
.discret { color: var(--discret); font-size: 0.88rem; }

.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.6rem 0.9rem; z-index: 50; border-radius: 9px; }

/* --- Boutons --------------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--trait);
  background: var(--surface);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.bouton:hover { transform: translateY(-1px); box-shadow: var(--ombre); }
.bouton:focus-visible { outline: 3px solid rgb(185 138 58 / 0.55); outline-offset: 2px; }
.bouton-plein { background: var(--accent); border-color: var(--accent); color: #fff; }
.bouton-plein:hover { background: var(--accent-2); }
.bouton-grand { min-height: 50px; padding: 0.7rem 1.5rem; font-size: 1.02rem; }
.bouton-clair { background: var(--laiton-vif); border-color: var(--laiton-vif); color: #1b1407; }
.lien-discret { color: var(--encre-2); text-decoration: none; font-weight: 550; }
.lien-discret:hover { color: var(--accent); }

/* --- En-tête --------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--toile) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete-ligne { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--encre); text-decoration: none; font-family: var(--titre); font-size: 1.45rem; font-weight: 600; }
.signe { width: 30px; height: 30px; }
.signe rect { fill: none; stroke: var(--laiton-vif); stroke-width: 1.6; }
.signe .signe-coeur { fill: var(--laiton-vif); }
.entete-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.entete-nav a { color: var(--encre-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.entete-nav a:hover { color: var(--accent); }
.entete-actions { display: flex; align-items: center; gap: 1.1rem; }

/* --- Héros ------------------------------------------------------------------ */

.heros {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(70% 90% at 100% 0%, var(--laiton-doux), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, var(--accent-doux), transparent 55%);
}
.heros-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heros h1 { margin-bottom: 1.4rem; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0.9rem; }

.chiffres {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: calc(var(--rayon) + 6px);
  box-shadow: var(--ombre-haute);
}
.chiffres div { padding: 0.4rem 0 0.9rem; border-bottom: 1px solid var(--trait); }
.chiffres div:last-child { border-bottom: none; padding-bottom: 0.2rem; }
.chiffres dt { font-size: 0.85rem; color: var(--discret); }
.chiffres dd { margin: 0; font-family: var(--titre); font-size: 2.3rem; font-weight: 560; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }

/* --- Blocs ----------------------------------------------------------------- */

.bloc { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.bloc-teinte { background: var(--surface-2); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }

.etapes { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.etapes li { padding: 1.6rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); }
.etapes h3 { margin: 0.9rem 0 0.5rem; }
.etapes p { color: var(--encre-2); font-size: 0.95rem; }
.etape-numero {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--laiton-doux);
  color: var(--laiton);
  font-family: var(--titre);
  font-weight: 650;
}

.fonctions { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 2rem; }
.fonctions li { padding-left: 1rem; border-left: 2px solid var(--laiton-vif); }
.fonctions h3 { margin-bottom: 0.35rem; }
.fonctions p { color: var(--encre-2); font-size: 0.95rem; }

.principe {
  margin-top: 2.8rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--rayon);
  background: var(--profond);
  color: var(--profond-texte);
}
.principe h3 { font-family: var(--titre); font-size: 1.35rem; font-weight: 560; color: #fff; margin-bottom: 0.5rem; }
.principe p { max-width: 75ch; }

/* --- Tarifs ---------------------------------------------------------------- */

.tarifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; margin-top: 0.4rem; }
.offre {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: calc(var(--rayon) + 4px);
  box-shadow: var(--ombre);
}
.offre-avant { border: 2px solid var(--accent); box-shadow: var(--ombre-haute); }
.offre-ruban {
  position: absolute;
  top: -0.8rem;
  left: 1.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.offre h3 { font-family: var(--titre); font-size: 1.5rem; font-weight: 600; }
.offre-accroche { color: var(--discret); font-size: 0.9rem; min-height: 4.5em; margin: 0.35rem 0 1rem; }
.offre-prix { font-family: var(--titre); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.offre-prix small { display: block; margin-top: 0.35rem; font-family: var(--texte); font-size: 0.88rem; font-weight: 500; color: var(--discret); letter-spacing: 0; }
.offre-annuel { color: var(--discret); font-size: 0.85rem; margin: 0.4rem 0 1.2rem; min-height: 1.4em; }
.offre ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; font-size: 0.93rem; }
.offre li { display: flex; gap: 0.55rem; align-items: baseline; }
.offre li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.offre .bouton { margin-top: auto; width: 100%; }

.inclus { margin-top: 2rem; padding: 1.4rem 1.6rem; border: 1px dashed var(--trait); border-radius: var(--rayon); }
.inclus h3 { margin-bottom: 0.7rem; }
.inclus ul { margin: 0; padding-left: 1.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 2rem; color: var(--encre-2); font-size: 0.95rem; }

/* --- Questions ------------------------------------------------------------- */

details { border-bottom: 1px solid var(--trait); padding: 1.05rem 0; }
details:first-of-type { border-top: 1px solid var(--trait); }
summary { cursor: pointer; font-weight: 650; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--laiton); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.7rem; color: var(--encre-2); }

/* --- Appel final et pied ---------------------------------------------------- */

.appel { background: var(--profond); color: #fff; }
.appel-contenu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.appel h2 { color: #fff; margin: 0; max-width: 30ch; }

.pied { padding: 1.6rem 0; font-size: 0.88rem; color: var(--discret); }
.pied-ligne { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.pied a { color: var(--discret); }

/* --- Petits écrans ---------------------------------------------------------- */

@media (max-width: 1020px) {
  .tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .entete-nav { display: none; }
  .entete-actions { margin-left: auto; }
}

@media (max-width: 760px) {
  .heros-grille, .etapes, .fonctions, .inclus ul { grid-template-columns: minmax(0, 1fr); }
  .tarifs { grid-template-columns: minmax(0, 1fr); }
  .offre-accroche { min-height: 0; }
  .entete-actions .lien-discret { display: none; }
}
