/* =========================================================
   Plisko — style.css
   CSS natif, aucune dépendance externe.
   Identité reprise de l'application : vert Plisko, encre
   presque noire, police Outfit, filets et croix « suisses ».
   ========================================================= */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette Plisko (icône et thème vert de l'application) */
  --vert-icone: #85C94E;
  --vert: #B8E986;
  --vert-fonce: #528C31;
  --vert-doux: #E8F7D8;
  --vert-bordure: #CBEEA8;
  --encre: #0D110B;

  --fond: #F2F5EF;
  --surface: #FFFFFF;
  --texte: #17231B;
  --texte-attenue: #5E6A62;
  --bordure: #DFE6DC;
  --lien: #3E7324;

  --rayon: 1.25rem;
  --rayon-petit: 0.875rem;
  --largeur-max: 1120px;
  --gouttiere: clamp(16px, 5vw, 32px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --vert-doux: #1D2A19;
    --vert-bordure: #405D34;
    --fond: #0D100E;
    --surface: #151A17;
    --texte: #EDF3EE;
    --texte-attenue: #A4AEA7;
    --bordure: #2E3631;
    --lien: #9BD56F;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --vert-doux: #1D2A19;
  --vert-bordure: #405D34;
  --fond: #0D100E;
  --surface: #151A17;
  --texte: #EDF3EE;
  --texte-attenue: #A4AEA7;
  --bordure: #2E3631;
  --lien: #9BD56F;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Outfit", -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--fond);
  color: var(--texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--lien); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); letter-spacing: -0.06em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0 0 1em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.lien-evitement:focus { left: 16px; top: 16px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--vert-fonce);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Étiquette en capitales, comme le « kicker » de l'application */
.etiquette {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

h2.etiquette { line-height: 1.6; }
.etiquette-attenuee { color: var(--texte-attenue); }

/* =========================================================
   En-tête vert + navigation
   ========================================================= */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vert);
  color: var(--encre);
  border-bottom: 1px solid var(--encre);
}

.barre-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 12px var(--gouttiere);
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.marque img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(13, 17, 11, 0.25);
}

.nav-liens {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-liens a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
}

.nav-liens a:hover { background: rgba(13, 17, 11, 0.08); }

.nav-liens a[aria-current="page"] {
  background: var(--encre);
  color: var(--vert);
}

/* =========================================================
   Héro (accueil)
   ========================================================= */

.hero {
  background: var(--vert);
  color: var(--encre);
  border-bottom: 1px solid var(--encre);
  position: relative;
  overflow: hidden;
}

/* Croix de repérage reprise de l'icône */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: var(--encre);
  opacity: 0.85;
  pointer-events: none;
}
.hero::before { left: 0; right: 0; top: 62%; height: 1px; }
.hero::after { top: 0; bottom: 0; left: 72%; width: 1px; }

.hero-grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero .etiquette {
  border-bottom: 1px solid var(--encre);
  padding-bottom: 0.6rem;
  max-width: 34rem;
}

.hero h1 { margin-bottom: 0.35em; }

.hero-texte p {
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  max-width: 34ch;
  line-height: 1.45;
  background: var(--vert);
}

.hero-icone {
  justify-self: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 22%;
  overflow: hidden;
  border: 1px solid var(--encre);
  box-shadow: 0 24px 48px rgba(13, 17, 11, 0.22);
}

.hero-icone img { width: 100%; height: 100%; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* =========================================================
   Boutons
   ========================================================= */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid var(--encre);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.bouton:hover { transform: translateY(-1px); text-decoration: none; }

.bouton-principal { background: var(--encre); color: var(--vert); }
.bouton-secondaire { background: transparent; color: var(--encre); }
.bouton-secondaire:hover { background: rgba(13, 17, 11, 0.08); }

/* Sur fond clair/sombre de page (hors bandeau vert) */
.bouton-page {
  background: var(--vert);
  color: var(--encre);
  border-color: var(--vert);
}

/* =========================================================
   Sections
   ========================================================= */

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }

.section-entete {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section-entete .etiquette {
  color: var(--texte-attenue);
  border-bottom: 1px solid var(--texte);
  padding-bottom: 0.6rem;
}

.section-entete p {
  color: var(--texte-attenue);
  font-size: 1.08rem;
}

.grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px;
}

.carte-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--vert);
  color: var(--encre);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.carte p {
  color: var(--texte-attenue);
  margin-bottom: 0;
}

.carte ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--texte-attenue); }
.carte li { margin-bottom: 6px; }

/* Bandeau d'engagements */
.engagements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--texte);
}

.engagements li {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--bordure);
}

.engagements strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.engagements span { color: var(--texte-attenue); font-size: 0.96rem; }

/* Emplacement App Store (en attente de publication) */
.disponibilite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 28px;
}

.disponibilite h2 { font-size: 1.5rem; margin-bottom: 0.3em; }
.disponibilite p { margin: 0; color: var(--texte-attenue); }

.app-store-emplacement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1.5px dashed var(--texte-attenue);
  color: var(--texte-attenue);
  font-weight: 600;
}

/* Mention d'indépendance */
.mention-independance {
  border-left: 4px solid var(--vert-icone);
  background: var(--vert-doux);
  border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0;
  padding: 18px 22px;
  color: var(--texte);
}

.mention-independance p:last-child { margin-bottom: 0; }

/* =========================================================
   Pages secondaires
   ========================================================= */

.page-entete {
  background: var(--vert);
  color: var(--encre);
  border-bottom: 1px solid var(--encre);
  padding: 52px 0 40px;
}

.page-entete .etiquette {
  border-bottom: 1px solid var(--encre);
  padding-bottom: 0.6rem;
}

.page-entete h1 { font-size: clamp(2.3rem, 8vw, 4.4rem); }
.page-entete p { font-size: 1.12rem; max-width: 46ch; margin: 0; }

.page-contenu { padding: 48px 0 24px; }

.bloc {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 20px;
}

.bloc h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
.bloc h3 { margin-top: 1.4em; }
.bloc > :last-child { margin-bottom: 0; }
.bloc p, .bloc li { color: var(--texte-attenue); }
.bloc strong { color: var(--texte); }
.bloc ul { padding-left: 1.2em; margin: 0 0 1em; }
.bloc li { margin-bottom: 8px; }

.texte-long { max-width: 46rem; }

.date-maj {
  display: inline-block;
  background: var(--vert-doux);
  border: 1px solid var(--vert-bordure);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.sommaire {
  columns: 2;
  column-gap: 32px;
  padding-left: 1.2em;
}

/* Tableau (politique de confidentialité) */
.tableau-defile { overflow-x: auto; margin: 0 0 1em; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--bordure);
}

thead th {
  border-bottom: 1px solid var(--texte);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td { color: var(--texte-attenue); }
tbody th { font-weight: 700; }

/* FAQ native (details/summary) */
.faq-item {
  border-top: 1px solid var(--bordure);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--bordure); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vert);
  color: var(--encre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.faq-item[open] summary::after { content: "–"; }
.faq-item > div { padding: 0 0 18px; }
.faq-item > div > :last-child { margin-bottom: 0; }

.contact-adresse {
  display: inline-block;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-all;
}

/* =========================================================
   Page 404
   ========================================================= */

.page-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

/* =========================================================
   Pied de page
   ========================================================= */

.pied-page {
  margin-top: 56px;
  background: var(--encre);
  color: #C9D3C6;
  padding: 44px 0 28px;
  font-size: 0.95rem;
}

.pied-grille {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2B3328;
}

.pied-page .marque { color: var(--vert); }
.pied-page .marque img { border-color: rgba(184, 233, 134, 0.4); }
.pied-page p { margin: 12px 0 0; max-width: 34rem; color: #A3AE9F; }

.pied-liens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pied-page a { color: #E6EEE3; }
.pied-page a:hover { color: var(--vert); }

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.86rem;
  color: #8D998A;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .grille { grid-template-columns: repeat(2, 1fr); }
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .hero-grille { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; }
  .hero-icone { justify-self: start; width: 160px; order: -1; }
  .hero::after { left: auto; right: 24%; }
  .hero::before { top: auto; bottom: 30%; }
}

@media (max-width: 640px) {
  .barre-nav { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav-liens { width: 100%; justify-content: space-between; }
  .nav-liens a { padding: 7px 12px; font-size: 0.94rem; }
  .grille { grid-template-columns: 1fr; }
  .engagements { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .sommaire { columns: 1; }
  .hero-icone { width: 120px; }
  .hero-actions .bouton { flex: 1 1 100%; }
}

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

/* Bouton secondaire hors bandeau vert (page 404) */
.page-404 .bouton-secondaire { color: var(--texte); border-color: var(--texte); }

/* Titre long tenant sur une ligne sur ordinateur (page Assistance).
   Largeur mesurée : 15 em en Outfit 800, soit environ 0,78 vw ici,
   toujours inférieure à la place disponible au-delà de 900 px. */
.page-entete h1.titre-une-ligne {
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  text-wrap: balance;
}

@media (min-width: 900px) {
  .page-entete h1.titre-une-ligne { white-space: nowrap; }
}

/* Mention secondaire (version Android envisagée) */
.disponibilite p.note-discrete { margin-top: 8px; font-size: 0.9rem; opacity: 0.85; }
