/* Do-O — feuille de style commune
   Palette et police reprises de l'app (lib/utils/constants.dart) */
@font-face {
  font-family: "Comfortaa";
  src: url("fonts/comfortaa.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --sapin: #2A4F45;
  --sapin-fonce: #1C3831;
  --sauge: #7F9C82;
  --sauge-claire: #9DB28C;
  --sauge-pale: #E4EBDF;
  --soleil: #E9A054;
  --etoile: #F4B76A;
  --bleu: #2F7DB8;
  --creme: #F8F7F4;
  --blanc: #FFFFFF;
  --texte: #1C3831;
  --texte-doux: #6F6F6A;
  --bordure: #CFCCC4;
  --rayon: 16px;
  --ombre: 0 10px 30px rgba(28, 56, 49, 0.10);
  --max: 1120px;
  --titres: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--sapin); }
h1, h2, h3 { font-family: var(--titres); line-height: 1.2; color: var(--sapin-fonce); font-weight: 700; }

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

/* ---------- En-tête ---------- */
.entete { background: var(--creme); border-bottom: 1px solid rgba(42, 79, 69, 0.08); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.marque { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slogan-entete { font-family: var(--titres); font-weight: 700; color: var(--soleil); font-size: 17px; line-height: 1; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--texte-doux); font-weight: 600; font-size: 14.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sapin); }
.nav a.bouton { color: var(--blanc); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sapin); color: var(--blanc);
  padding: 13px 24px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 16px/1.2 var(--corps); text-decoration: none;
  transition: transform .15s, background .15s;
}
.bouton:hover { background: var(--sapin-fonce); transform: translateY(-1px); }
.bouton.petit { padding: 10px 18px; font-size: 15px; }
.bouton.soleil { background: var(--soleil); color: var(--sapin-fonce); }
.bouton.soleil:hover { background: var(--etoile); }

/* ---------- Accueil : tout l'essentiel sans défiler ---------- */
.accueil { padding: 40px 0 48px; }
.accueil .conteneur {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.accueil h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; letter-spacing: -0.01em; }
.accueil h1 em { font-style: normal; color: var(--soleil); }
.accueil .phrase { font-size: 19px; color: var(--texte-doux); max-width: 520px; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blanc); color: var(--sapin-fonce);
  border: 1.5px solid var(--bordure); padding: 8px 16px; border-radius: 12px;
  text-decoration: none;
}
a.store:hover { border-color: var(--sapin); }
.store svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.store small { display: block; font-size: 11px; color: var(--texte-doux); line-height: 1.2; }
.store strong { display: block; font-size: 15px; line-height: 1.25; }
.couverture {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(42, 79, 69, 0.12);
}
.couverture div { line-height: 1.25; }
.couverture strong { display: block; font-family: var(--titres); font-size: 26px; color: var(--sapin); }
.couverture span { font-size: 14px; color: var(--texte-doux); font-weight: 600; }

/* Téléphone avec la vraie carte */
.telephone-zone { position: relative; display: flex; flex-direction: column; align-items: center; }
.soleil-deco {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: #FDBE55; top: -18px; right: 8%; z-index: 0;
}
.telephone {
  position: relative; z-index: 1; width: 290px;
  background: var(--sapin-fonce); border-radius: 44px; padding: 10px;
  box-shadow: 0 28px 60px rgba(28, 56, 49, 0.28);
}
.ecran { position: relative; width: 100%; aspect-ratio: 600 / 1304; border-radius: 35px; overflow: hidden; background: #2A4F45; }
.capture {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.capture.visible { opacity: 1; }
.onglets { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.onglets button {
  font: 600 14px/1 var(--corps); color: var(--texte-doux); background: transparent;
  border: 1.5px solid var(--bordure); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.onglets button.actif { background: var(--sapin); border-color: var(--sapin); color: var(--blanc); }
.prevenir { margin-top: 16px; font-weight: 700; }

/* Badge « Conçu & développé en France » */
.badge-fr {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sapin); color: var(--blanc);
  border-radius: 10px; padding: 9px 16px; margin-top: 16px;
  font: 700 13.5px/1 var(--corps);
}
.badge-fr .drapeau {
  width: 19px; height: 13px; border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.badge-fr .drapeau svg { width: 19px; height: 13px; }


/* ---------- Pages de contenu ---------- */
.page-texte { padding: 52px 0 84px; }
.page-texte .conteneur { max-width: 780px; }
.page-texte h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.page-texte .chapeau { font-size: 19px; color: var(--texte-doux); margin-bottom: 34px; }
.page-texte .maj { color: var(--texte-doux); font-size: 15px; margin-bottom: 34px; }
.page-texte h2 { font-size: 23px; margin: 40px 0 12px; }
.page-texte h3 { font-size: 18px; margin: 22px 0 8px; }
/* Texte justifie sur les pages de contenu, comme dans l'application. La coupure
   automatique des mots evite les trous entre les mots sur les lignes etroites ;
   elle s'appuie sur le lang="fr" declare en tete de chaque page. */
.page-texte p, .page-texte li {
  margin-bottom: 10px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.page-texte ul, .page-texte ol { padding-left: 22px; margin-bottom: 14px; }
.encadre {
  background: var(--blanc); border-left: 5px solid var(--sapin); border-radius: 12px;
  padding: 18px 22px; margin: 22px 0; box-shadow: var(--ombre);
}
.encadre.soleil { border-left-color: var(--soleil); }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }

.histoire-nom { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin: 10px 0 20px; }
.histoire-nom img { width: 200px; height: auto; }

.page-texte .types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 10px; padding: 0; list-style: none; }
/* Les cartes « types de balade » restent au fer a gauche : justifier deux mots
   dans une vignette etroite creerait des trous enormes. */
.types li { background: var(--blanc); border-radius: 12px; padding: 14px 16px; margin: 0; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 3px 12px rgba(28, 56, 49, 0.06); text-align: left; hyphens: manual; }
.pastille { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; border: 2px solid var(--blanc); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.types strong { display: block; }
.types li > span > span { display: block; font-size: 15px; color: var(--texte-doux); }

.faq details {
  background: var(--blanc); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(28, 56, 49, 0.06);
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--sapin-fonce); }
.faq details > p, .faq details > ol, .faq details > ul { margin-top: 10px; color: var(--texte-doux); }

.a-completer { background: #FCE7C8; padding: 0 5px; border-radius: 4px; font-weight: 700; }

/* ---------- Formulaires ---------- */
.bloc-formulaire {
  max-width: 560px; margin: 0 auto 64px; padding: 30px 32px 26px;
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.page-texte .bloc-formulaire { margin-top: 44px; }
.bloc-formulaire h2 { font-size: 24px; margin: 0 0 8px; }
.intro-formulaire { color: var(--texte-doux); margin-bottom: 20px; }
.champ { display: block; margin-bottom: 16px; }
.champ > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.champ input, .champ textarea {
  width: 100%; font: 400 16px/1.5 var(--corps); color: var(--texte);
  background: var(--creme); border: 1.5px solid var(--bordure);
  border-radius: 10px; padding: 12px 14px; resize: vertical;
}
.champ input:focus, .champ textarea:focus {
  outline: none; border-color: var(--sapin); background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(42, 79, 69, .12);
}
.formulaire .bouton { width: 100%; }
.mention-formulaire { font-size: 13px; color: var(--texte-doux); margin: 12px 0 0; line-height: 1.45; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.pied { background: var(--sapin-fonce); color: #D6E0D8; padding: 40px 0 28px; font-size: 15px; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 22px; }
.pied .logo img { height: 34px; }
.pied .slogan { margin-top: 8px; font-family: var(--titres); color: var(--sauge-claire); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 600px; }
.pied a { color: #D6E0D8; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied .copyright { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13px; color: #A3AEA7; }
.pied .copyright a { color: #A3AEA7; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 900px) {
  .accueil { padding-top: 28px; }
  .accueil .conteneur { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .accueil .phrase { margin-left: auto; margin-right: auto; }
  .actions, .stores, .couverture { justify-content: center; }
  .histoire-nom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .page-texte .types { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { gap: 16px; }
  .marque { flex-direction: column; align-items: flex-start; gap: 3px; }
  .slogan-entete { font-size: 13px; }
  .nav a.lien-secondaire { display: none; }
  .logo img { height: 34px; }
  .telephone { width: 250px; }
  .couverture { gap: 8px 20px; }
  .couverture { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .couverture strong { font-size: 22px; }
}
@media (max-width: 420px) {
  .onglets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; max-width: 340px; }
  .onglets button { font-size: 12px; padding: 8px 4px; white-space: nowrap; }
}

/* ---------- Pages département (balades/*.html) ---------- */
.fil-ariane { font-size: 14px; color: var(--texte-doux); margin-bottom: 18px; }
.fil-ariane a { color: var(--texte-doux); }
.page-departement .couverture { margin: 0 0 22px; border-top: 0; padding-top: 0; }
.sommaire-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.sommaire-types a {
  text-decoration: none; font-weight: 600; font-size: 14px; color: var(--sapin);
  background: var(--blanc); border: 1.5px solid var(--bordure); border-radius: 999px; padding: 6px 12px;
}
.sommaire-types a span { color: var(--texte-doux); font-weight: 400; margin-left: 4px; }
.sommaire-types a:hover { border-color: var(--sapin); }
.page-departement .encadre .stores { margin-top: 12px; }
.page-departement h2 .compte { font-family: var(--corps); font-size: 15px; font-weight: 600; color: var(--texte-doux); margin-left: 6px; }
.page-texte .liste-balades { list-style: none; padding: 0; margin: 14px 0 8px; }
.liste-balades li {
  background: var(--blanc); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
  box-shadow: 0 3px 12px rgba(28, 56, 49, 0.06); display: flex; flex-direction: column; gap: 3px;
}
.liste-balades li > a { text-decoration: none; color: var(--sapin-fonce); }
.liste-balades li > a:hover strong { text-decoration: underline; }
.meta-balade { font-size: 14px; color: var(--texte-doux); }
.acces-balade { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.acces-balade small { color: var(--texte-doux); font-size: 13px; }
.pastille-acces {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 8px; border-radius: 6px; background: var(--sauge-pale); color: var(--sapin);
}
.pastille-acces.fauteuil { background: var(--sapin); color: var(--blanc); }
.pastille-acces.verifier { background: #FCE7C8; color: #7A4B14; }
.liste-communes { font-size: 15px; color: var(--texte-doux); }

.page-departement p, .page-departement li, .page-departement summary { text-align: left; hyphens: manual; }
.page-texte .types-compte { list-style: none; padding: 0; margin: 14px 0 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.types-compte li { background: var(--blanc); border-radius: 12px; padding: 14px 16px; margin: 0; box-shadow: 0 3px 12px rgba(28, 56, 49, 0.06); line-height: 1.3; }
.types-compte strong { display: block; font-family: var(--titres); font-size: 26px; color: var(--sapin); }
.types-compte span { font-size: 15px; color: var(--texte-doux); font-weight: 600; }
.page-texte .coups-de-coeur { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.coups-de-coeur li { background: var(--blanc); border-radius: 12px; padding: 16px 18px; margin: 0; box-shadow: 0 3px 12px rgba(28, 56, 49, 0.06); border-top: 4px solid var(--soleil); }
.coups-de-coeur strong { display: block; font-family: var(--titres); font-size: 17px; color: var(--sapin-fonce); line-height: 1.3; }
.coups-de-coeur .commune-coup { display: block; font-size: 14px; font-weight: 600; color: var(--sauge); margin: 3px 0 6px; }
.coups-de-coeur p { font-size: 15px; color: var(--texte-doux); margin: 0; line-height: 1.5; }
.et-autres { font-weight: 600; color: var(--sapin); margin-bottom: 30px; }

/* ---------- Menu principal (ordinateur + mobile) ---------- */
.nav a.lien-nav { white-space: nowrap; }
.menu-mobile { display: none; position: relative; }
.menu-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; color: var(--sapin);
  border: 1.5px solid var(--bordure); background: var(--blanc);
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { border-color: var(--sapin); }
.menu-panneau {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px;
  background: var(--blanc); border-radius: 14px; box-shadow: var(--ombre); padding: 8px;
  display: flex; flex-direction: column;
}
.nav .menu-panneau a {
  display: block; padding: 12px 14px; font-size: 16px; border-radius: 10px; font-size: 16px; color: var(--sapin-fonce);
}
.nav .menu-panneau a:hover, .nav .menu-panneau a[aria-current="page"] { background: var(--sauge-pale); color: var(--sapin); }
@media (max-width: 900px) {
  .nav { gap: 10px; }
  .nav a.lien-nav { display: none; }
  .menu-mobile { display: block; }
}

/* ---------- Carnet de balade (balades/index.html) ---------- */
.nav a[aria-current="true"] { color: var(--sapin); }
.nav .menu-panneau a[aria-current="true"] { background: var(--sauge-pale); color: var(--sapin); }
.fil-ariane a + a, .fil-ariane a { color: var(--texte-doux); }
.page-texte .liste-departements { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.liste-departements li { margin: 0; }
.liste-departements a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none;
  background: var(--blanc); border-radius: 14px; padding: 18px 20px; box-shadow: var(--ombre);
  border-top: 4px solid var(--sapin); transition: transform .15s;
}
.liste-departements a:hover { transform: translateY(-2px); }
.liste-departements .num-dep { font-size: 13px; font-weight: 700; color: var(--sauge); }
.liste-departements strong { font-family: var(--titres); font-size: 26px; color: var(--sapin-fonce); line-height: 1.2; }
.liste-departements .chiffres-dep { font-size: 14px; color: var(--texte-doux); }
.liste-departements .voir-dep { margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--sapin); }

/* ---------- Vidéo de présentation (accueil) ----------
   Même grille que le bloc du haut (.accueil) et même cadre que le téléphone,
   pour que la vidéo tombe pile sous la capture, à toutes les largeurs. */
.video-presentation { padding: 8px 0 64px; }
.video-presentation .conteneur {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.video-texte h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
.video-texte p { font-size: 18px; color: var(--texte-doux); margin-bottom: 22px; max-width: 520px; }
.video-cadre {
  justify-self: center; width: 290px; padding: 10px; border-radius: 44px;
  background: var(--sapin-fonce); box-shadow: 0 28px 60px rgba(28, 56, 49, 0.28);
}
.video-ecran { aspect-ratio: 9 / 16; border-radius: 35px; overflow: hidden; background: #000; }
.video-ecran iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-lancer { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.video-lancer img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: filter .2s; }
.video-lancer:hover img { filter: brightness(.6); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--soleil);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.video-lancer:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 34px; height: 34px; fill: var(--sapin-fonce); margin-left: 4px; }
.video-duree {
  position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.6); color: #fff;
  font: 700 13px/1 var(--corps); padding: 5px 8px; border-radius: 6px;
}
@media (max-width: 900px) {
  .video-presentation .conteneur { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .video-texte p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .video-cadre { width: 250px; }
}


/* ---------- Page créateurs ---------- */
.page-texte .atouts-createurs { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.atouts-createurs li { background: var(--blanc); border-radius: 14px; padding: 20px; margin: 0; box-shadow: 0 3px 12px rgba(28, 56, 49, .06); }
.puce-createur { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soleil); color: var(--sapin-fonce); font: 700 16px/1 var(--titres); margin-bottom: 12px; }
.atouts-createurs strong { display: block; font-family: var(--titres); font-size: 17px; color: var(--sapin-fonce); line-height: 1.3; margin-bottom: 6px; }
.atouts-createurs p { font-size: 15px; color: var(--texte-doux); margin: 0; }
.page-texte .etapes-createurs { margin: 14px 0 18px; padding-left: 20px; }
.etapes-createurs li { margin-bottom: 10px; }
.page-createurs .bloc-formulaire { margin: 28px 0 40px; }
.page-createurs .stores { margin-top: 14px; }

.page-createurs p, .page-createurs li { text-align: left; hyphens: manual; }
