/* Fourbi : site de presentation. Memes jetons que la politique de confidentialite deja servie
   par l'API (fourbi-api.breizhzion.com/privacy), theme "Atelier Kraft" : creme, encre, accent
   terracotta. Mobile d'abord.
   Simplification assumee vis-a-vis de mome-web : polices systeme (Georgia + system-ui), pas de
   bundle webfont dedie sur le CDN du parc (aucun fourbi-fonts.css n'existe a ce jour). */

:root {
  --fond: #F6ECD8;
  --fond-doux: #EFDFC0;
  --blanc: #FFFBF2;
  --texte: #2A2016;
  --texte-doux: #4A3D2C;
  --accent: #96432A;
  --accent-fonce: #7A3620;
  --accent-pale: #F0D9C2;
  --ligne: #DDCDA9;
  --radius: 14px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-text: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
html[lang="ko"] body { word-break: keep-all; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent-fonce);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--blanc); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* En-tete */
.top { position: relative; border-bottom: 1px solid var(--ligne); background: var(--fond); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--accent); }
.brand img { display: block; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.top-nav { display: none; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-nav > a { font-weight: 700; font-size: .9rem; text-decoration: none; padding: .5rem .25rem; }
.top-nav > a:hover { text-decoration: underline; }
/* Menu burger (mobile) : <details> natif, aucun script. Cible tactile de 44 pt. */
.menu summary {
  list-style: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  cursor: pointer; border-radius: 12px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--fond-doux); }
.menu summary:focus-visible { outline: 3px solid var(--accent-fonce); outline-offset: 2px; }
.bars, .bars::before, .bars::after {
  display: block; width: 22px; height: 2.5px; background: var(--accent); border-radius: 2px; content: "";
}
.bars { position: relative; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .bars::after { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--fond);
  border-bottom: 1px solid var(--ligne); box-shadow: 0 18px 30px -20px rgba(42, 32, 22, .35);
  padding: .25rem 1.25rem 1.25rem;
}
.menu-link {
  display: flex; align-items: center; min-height: 2.75rem; padding: .5rem .25rem; font-weight: 800;
  text-decoration: none; border-bottom: 1px solid var(--ligne);
}
.menu-title { margin: 1rem 0 .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
.menu-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.menu-langs a {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; border-radius: 12px;
  text-decoration: none; font-weight: 700; background: var(--blanc); border: 1px solid var(--ligne);
}
.menu-langs a[aria-current="true"] { background: var(--accent); color: var(--blanc); border-color: var(--accent); }

.langs { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem;
  font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-decoration: none;
  color: var(--texte-doux); border-radius: 12px;
}
.langs a:hover { background: var(--fond-doux); }
.langs a[aria-current="true"] { background: var(--accent); color: var(--blanc); }

/* Hero */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { margin: 0 0 .75rem; font-weight: 800; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--accent); line-height: 1.15; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 7vw, 3.1rem); color: var(--texte); }
h2 { margin: 0 0 1.5rem; font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.lead { margin: 0 0 1.5rem; font-size: 1.1rem; color: var(--texte); max-width: 34rem; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .75rem; }
.soon {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  background: var(--accent-pale); color: var(--texte); font-weight: 800; font-size: .95rem;
  padding: .55rem 1rem; border-radius: 999px;
}
/* Le lien vers la fiche Google Play : meme gabarit que la pastille "bientot", plein pour se
   lire comme une action. Texte blanc sur accent, paire deja verifiee par les tests de contraste. */
.store {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
  background: var(--accent); color: var(--blanc); font-weight: 800; font-size: .95rem;
  border-radius: 999px; text-decoration: none;
}
.store:hover { background: var(--accent-fonce); }
.store:focus-visible { outline: 3px solid var(--accent-fonce); outline-offset: 3px; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.access { margin: 0; font-size: .9rem; color: var(--texte-doux); }

/* Maquette de la hierarchie Lieu > Boite > Objet */
.hierarchie { margin: 0; }
.hierarchie-card {
  background: var(--fond-doux); border-radius: 28px; padding: 1.5rem 1.25rem;
  box-shadow: 0 18px 40px -22px rgba(42, 32, 22, .45);
  display: grid; gap: .9rem;
}
.niveau {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; align-items: center;
}
.niveau-label { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.niveau-2 { margin-left: 1.5rem; width: calc(100% - 1.5rem); }
.niveau-3 { margin-left: 3rem; width: calc(100% - 3rem); }
.hierarchie figcaption { margin-top: 1rem; display: grid; gap: .15rem; text-align: center; }
.hierarchie figcaption strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.hierarchie figcaption span { font-size: .9rem; color: var(--texte-doux); }

/* Probleme : les phrases qu'on s'est tous deja dites */
.problem { padding: 3rem 0 2rem; text-align: center; }
.quotes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.quote {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--texte);
}
.answer { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent); }

/* Comment ca marche : trois gestes */
.steps { padding: 2rem 0 3rem; }
.steps h2 { text-align: center; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--accent); color: var(--blanc);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: .6rem;
}
.step p { margin: 0 auto; max-width: 20rem; color: var(--texte); font-size: .97rem; }

/* Fonctionnalites */
.features { padding: 3rem 0; background: var(--blanc); border-block: 1px solid var(--ligne); }
.features h2 { text-align: center; }
.family-body { margin: 0 0 1.5rem; font-size: 1.05rem; max-width: 40rem; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature { background: var(--fond); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; border: 1px solid var(--ligne); }
.feature p { margin: 0; color: var(--texte); font-size: .95rem; }

/* Sauvegarde / confidentialite */
.privacy { padding: 3rem 0; }
.privacy-box { background: var(--accent); color: var(--blanc); border-radius: 24px; padding: 2rem 1.5rem; max-width: 1040px; }
.privacy-box h2 { color: var(--blanc); }
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: .9rem; height: .5rem;
  border-left: 2.5px solid var(--accent-pale); border-bottom: 2.5px solid var(--accent-pale); transform: rotate(-45deg);
}
.button {
  display: inline-block; background: var(--blanc); color: var(--accent); font-weight: 800;
  text-decoration: none; padding: .8rem 1.4rem; border-radius: 14px; min-height: 2.75rem;
}
.button:hover { background: var(--accent-pale); }
.privacy-box .button:focus-visible { outline-color: var(--blanc); }
.note { margin: 1rem 0 0; font-size: .85rem; opacity: .9; }

/* Contact */
.contact { padding: 1rem 0 3.5rem; text-align: center; }
.contact p { margin: 0 0 .5rem; }
.mail { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

/* Pied de page */
.foot { border-top: 1px solid var(--ligne); padding: 1.75rem 0 2.5rem; font-size: .88rem; color: var(--texte-doux); text-align: center; }
.foot p { margin: 0 0 .4rem; }
.foot a { color: var(--texte-doux); }
.copy { font-size: .8rem; }

/* Pages de texte (confidentialite, 404) */
.legal, .plain { padding: 2.5rem 0 4rem; }
/* Une adresse, un nom de service ou un identifiant long ne doit jamais elargir la page.
   ⚠️ `break-word` et pas `anywhere` : ce dernier reduit la largeur minimale des colonnes du
   tableau, qui coupait alors « Consentement » en plein mot sur ordinateur. */
.legal { overflow-wrap: break-word; hyphens: auto; }
.legal .narrow { max-width: 860px; }
.legal h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: .4rem; color: var(--accent); }
.legal h2 {
  font-size: clamp(1.1rem, 4.2vw, 1.3rem); margin: 2.6rem 0 .7rem; padding-top: 1.4rem;
  border-top: 1px solid var(--ligne);
}
.legal p, .legal li { font-size: 1rem; line-height: 1.7; color: var(--texte); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .45rem; }
.legal code { font-size: .9em; background: var(--fond-doux); padding: .1em .35em; border-radius: 4px; }
.legal .date { font-size: .85rem; color: var(--texte-doux); margin: 0 0 2rem; }
.legal .encadre {
  background: var(--blanc); border: 1px solid var(--ligne); border-left: 4px solid var(--accent);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0; border-radius: 12px;
}
.legal .encadre p { margin: 0; }

/* Tableau des traitements : une carte sur ordinateur, des fiches empilees sur telephone.
   ⛔ Il defilait lateralement sur telephone, et « Base legale » et « Conservation », c'est-a-dire
   les mentions que le RGPD rend obligatoires, etaient coupees hors de l'ecran sans aucun indice. */
.legal table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.25rem 0; font-size: .92rem;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; overflow: hidden;
}
.legal th, .legal td {
  text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--ligne); vertical-align: top;
}
.legal tbody tr:last-child td { border-bottom: none; }
.legal th {
  color: var(--texte-doux); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; background: var(--fond-doux);
}

@media (max-width: 720px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal table { background: transparent; border: none; border-radius: 0; overflow: visible; }
  /* En-tete masque visuellement mais lu par les lecteurs d'ecran. */
  .legal thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .legal tr {
    background: var(--blanc); border: 1px solid var(--ligne); border-left: 4px solid var(--accent);
    border-radius: 12px; margin: 0 0 .9rem; padding: .35rem .2rem;
  }
  .legal td { border-bottom: 1px dashed var(--ligne); padding: .6rem .85rem; }
  .legal tr td:last-child { border-bottom: none; }
  .legal td::before {
    content: attr(data-label); display: block; margin-bottom: .2rem; color: var(--texte-doux);
    font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  }
  .legal td:first-child { font-weight: 600; }
}

/* Tablette et plus */
@media (min-width: 640px) {
  .menu { display: none; }
  .top-nav { display: flex; }
  .wrap { padding: 0 2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .hierarchie-card { padding: 1.75rem 1.5rem; }
  .privacy-box { padding: 2.5rem 2.5rem; }
}
@media (min-width: 960px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-box { padding: 3rem; }
  .checks { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
}

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

/* Pourquoi Fourbi : trois contrastes, sans nommer de concurrent. */
.why { padding: 3rem 0 1rem; }
.why h2 { text-align: center; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-item { border-left: 4px solid var(--accent); background: var(--blanc); padding: 1.1rem 1.25rem; border-radius: 8px; }
.why-item h3 { margin: 0 0 .35rem; }
.why-item p { margin: 0; color: var(--texte); font-size: .97rem; }
@media (min-width: 960px) {
  .why-list { grid-template-columns: repeat(3, 1fr); }
}
