/* ============================================================
   AppScouts — site officiel
   Palette tirée de l'icône de l'application : vert forêt,
   crème de la fleur de lys, bleu marine du foulard.
   ============================================================ */

:root {
  --vert-fonce: #1b4a2b;
  --vert: #2e7d32;
  --vert-clair: #4caf50;
  --vert-pale: #e6f2e7;
  --vert-brume: #f3f8f3;
  --creme: #f1e8cf;
  --creme-pale: #faf6ea;
  --marine: #1f3a6b;
  --ambre: #b7791f;
  --ambre-pale: #fdf3e0;
  --orange: #d9711c;
  --violet: #6a3fb5;
  --rouge: #c0392b;
  --bleu: #1e6fb8;
  --encre: #1d2a20;
  --encre-douce: #4a5a4e;
  --gris: #7b877e;
  --blanc: #ffffff;
  --ligne: #d7e3d8;

  --rayon: 22px;
  --rayon-petit: 12px;
  --ombre: 0 10px 30px rgba(27, 74, 43, 0.12);
  --ombre-douce: 0 4px 14px rgba(27, 74, 43, 0.08);
  --largeur: 1140px;
  --police: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--police);
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--vert); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; color: var(--vert-fonce); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.conteneur {
  width: min(100% - 2rem, var(--largeur));
  margin-inline: auto;
}

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800; text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; font-size: 1rem; font-family: inherit;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-plein { background: var(--vert); color: var(--blanc); box-shadow: var(--ombre-douce); }
.bouton-plein:hover { background: var(--vert-fonce); }
.bouton-contour { border-color: var(--vert); color: var(--vert); background: transparent; }
.bouton-contour:hover { background: var(--vert-pale); }
.bouton-creme { background: var(--creme); color: var(--vert-fonce); }
.bouton-creme:hover { background: var(--blanc); }
.bouton-blanc-contour { border-color: rgba(255,255,255,0.6); color: var(--blanc); }
.bouton-blanc-contour:hover { background: rgba(255,255,255,0.12); }
.bouton svg { width: 20px; height: 20px; flex: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.marque {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--vert-fonce); font-weight: 900; font-size: 1.25rem;
}
.marque img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  text-decoration: none; color: var(--encre-douce); font-weight: 700;
  padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.95rem;
}
.nav a:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.nav .bouton { margin-left: 0.5rem; padding: 0.55rem 1.1rem; color: var(--blanc); }
.nav .bouton:hover { background: var(--vert-fonce); }
.bouton-menu {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--vert-fonce);
}
.bouton-menu svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .bouton-menu { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--blanc); border-bottom: 1px solid var(--ligne);
    padding: 0.75rem 1rem 1rem; box-shadow: var(--ombre);
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 0.8rem 1rem; }
  .nav .bouton { margin: 0.5rem 0 0; justify-content: center; }
}

/* ---------- Héros ---------- */
.heros {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(76,175,80,0.35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(31,58,107,0.35), transparent 60%),
    linear-gradient(160deg, var(--vert-fonce) 0%, #22603a 60%, #2e7d32 100%);
  color: var(--blanc);
  padding-block: clamp(3rem, 8vw, 6rem) 0;
}
.heros::after {
  /* vaguelettes discrètes, comme sur l'icône */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: repeating-radial-gradient(circle at 30% 120%, transparent 0 38px, #fff 38px 40px);
}
.heros .conteneur {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.heros h1 { color: var(--blanc); }
.heros h1 em { font-style: normal; color: var(--creme); }
.heros .accroche { font-size: 1.2rem; color: rgba(255,255,255,0.88); max-width: 34rem; }
.etiquette {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.14); color: var(--creme);
  border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.heros-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.heros-note { margin-top: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.heros-visuel { display: flex; justify-content: center; align-items: flex-end; align-self: end; }
.heros-visuel .telephone { margin-bottom: -60px; }

/* ---------- Téléphone ---------- */
.telephone {
  width: min(300px, 80vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: #101613;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), inset 0 0 0 2px #2b3530;
  position: relative;
}
.telephone::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 999px; background: #101613; z-index: 2;
}
.telephone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 30px;
}
.telephone-petit { width: min(220px, 70vw); border-radius: 30px; padding: 7px; }
.telephone-petit::before { width: 66px; height: 18px; top: 13px; }
.telephone-petit img { border-radius: 24px; }

/* ---------- Chiffres ---------- */
.chiffres { background: var(--vert-brume); padding-block: 5.5rem 2.5rem; }
.chiffres .conteneur {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.chiffre {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-petit);
  padding: 1.2rem 1.4rem; text-align: center;
}
.chiffre strong { display: block; font-size: 2rem; font-weight: 900; color: var(--vert); line-height: 1.1; }
.chiffre span { color: var(--encre-douce); font-weight: 700; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--vert-brume); }
.section-creme { background: var(--creme-pale); }
.section-sombre { background: var(--vert-fonce); color: var(--blanc); }
.section-sombre h2, .section-sombre h3 { color: var(--blanc); }
.section-sombre p { color: rgba(255,255,255,0.85); }

.en-tete-section { max-width: 42rem; margin-bottom: 2.5rem; }
.en-tete-section.centre { margin-inline: auto; text-align: center; }
.surtitre {
  display: inline-block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--vert); margin-bottom: 0.6rem;
}
.section-sombre .surtitre { color: var(--creme); }
.chapo { font-size: 1.1rem; color: var(--encre-douce); }
.section-sombre .chapo { color: rgba(255,255,255,0.85); }

/* ---------- Tuiles (comme l'accueil de l'app) ---------- */
.tuiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.tuile {
  background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: var(--rayon);
  padding: 1.6rem; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.tuile:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: var(--vert-clair); }
.tuile-icone {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--vert-pale); color: var(--vert);
  display: grid; place-items: center;
}
.tuile-icone svg { width: 30px; height: 30px; }
.tuile h3 { margin: 0; }
.tuile p { margin: 0; color: var(--encre-douce); font-size: 0.97rem; }

/* ---------- Bloc texte + capture ---------- */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.duo.inverse > .duo-visuel { order: -1; }
.duo-visuel { display: flex; justify-content: center; gap: 1.2rem; }
.duo-visuel .telephone { flex: none; }
.duo ul { padding-left: 1.2rem; }
.duo li { margin-bottom: 0.5rem; }

.liste-coches { list-style: none; padding: 0; margin: 1rem 0 0; }
.liste-coches li {
  position: relative; padding-left: 2rem; margin-bottom: 0.7rem;
}
.liste-coches li::before {
  content: ''; position: absolute; left: 0; top: 0.35em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.section-sombre .liste-coches li::before { background-color: var(--creme); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b4a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

/* ---------- Cartes de fonctionnalités ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.carte {
  background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: var(--rayon);
  padding: 1.5rem; border-left-width: 6px;
}
.carte h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; }
.carte h3 svg { width: 24px; height: 24px; flex: none; }
.carte p { margin: 0; color: var(--encre-douce); font-size: 0.97rem; }
.carte .compte {
  display: inline-block; margin-top: 0.8rem; font-size: 0.8rem; font-weight: 800;
  padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--vert-pale); color: var(--vert-fonce);
}
.carte-violet { border-left-color: var(--violet); } .carte-violet h3 { color: var(--violet); }
.carte-bleu { border-left-color: var(--bleu); } .carte-bleu h3 { color: var(--bleu); }
.carte-orange { border-left-color: var(--orange); } .carte-orange h3 { color: var(--orange); }
.carte-rouge { border-left-color: var(--rouge); } .carte-rouge h3 { color: var(--rouge); }
.carte-vert { border-left-color: var(--vert); } .carte-vert h3 { color: var(--vert); }
.carte-marine { border-left-color: var(--marine); } .carte-marine h3 { color: var(--marine); }
.carte-ambre { border-left-color: var(--ambre); } .carte-ambre h3 { color: var(--ambre); }

/* ---------- Galerie de captures ---------- */
.galerie {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem;
}
.galerie figure { margin: 0; }
.galerie button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 18px; overflow: hidden; box-shadow: var(--ombre-douce);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.galerie button:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.galerie img { aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }
.galerie figcaption { font-size: 0.85rem; font-weight: 700; color: var(--encre-douce); text-align: center; margin-top: 0.5rem; }

.defilement {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.defilement figure { margin: 0; flex: 0 0 180px; scroll-snap-align: start; }
.defilement button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 18px; overflow: hidden; box-shadow: var(--ombre-douce);
}
.defilement img { aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }
.defilement figcaption { font-size: 0.85rem; font-weight: 700; color: var(--encre-douce); text-align: center; margin-top: 0.5rem; }

/* ---------- Visionneuse ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 20, 14, 0.9); padding: 2rem;
  align-items: center; justify-content: center;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img {
  max-height: 90vh; max-width: 90vw; width: auto; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.visionneuse-fermer {
  position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.15); color: #fff;
  border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 1.5rem;
}
.visionneuse-legende {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: var(--creme); font-weight: 800;
}

/* ---------- Frise VC(i)PREF ---------- */
.frise {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; margin-top: 2rem;
  counter-reset: etape;
}
.frise > div {
  background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: var(--rayon-petit);
  padding: 1rem 0.8rem; text-align: center; position: relative;
}
.frise > div::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 0.5rem;
  border-radius: 50%; background: var(--vert); color: var(--blanc); font-weight: 900;
}
.frise strong { display: block; font-size: 1.05rem; color: var(--vert-fonce); }
.frise span { font-size: 0.85rem; color: var(--encre-douce); }

/* ---------- Deux colonnes (parents / animateurs) ---------- */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panneau {
  border-radius: var(--rayon); padding: 2rem;
  background: var(--blanc); border: 1.5px solid var(--ligne);
}
.panneau-marine { background: var(--marine); color: var(--blanc); border-color: var(--marine); }
.panneau-marine h2, .panneau-marine h3 { color: var(--blanc); }
.panneau-marine p, .panneau-marine li { color: rgba(255,255,255,0.88); }
.panneau-marine .surtitre { color: var(--creme); }
.panneau-marine .liste-coches li::before { background-color: var(--creme); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

/* ---------- Bandeau ambre ---------- */
.bandeau-ambre {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--ambre-pale); border: 1.5px solid #ecd2a0; border-radius: var(--rayon-petit);
  padding: 1rem 1.2rem; color: #6b4a10; margin-top: 1.5rem;
}
.bandeau-ambre svg { width: 24px; height: 24px; flex: none; color: var(--ambre); margin-top: 2px; }
.bandeau-ambre p { margin: 0; font-size: 0.95rem; }

/* ---------- Appel final ---------- */
.appel {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(241,232,207,0.25), transparent 60%),
    linear-gradient(160deg, var(--vert-fonce), var(--vert));
  color: var(--blanc); padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.appel .conteneur {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.appel h2 { color: var(--blanc); }
.appel p { color: rgba(255,255,255,0.85); max-width: 36rem; }
.appel .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Badge Google Play ---------- */
.badge-store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 10px; padding: 0.55rem 1rem 0.55rem 0.8rem; border: 1px solid #555;
  line-height: 1.1; transition: transform 0.15s ease;
}
.badge-store:hover { transform: translateY(-2px); }
.badge-store svg { width: 28px; height: 28px; }
.badge-store small { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-store strong { font-size: 1.15rem; font-weight: 700; }
.badge-store.desactive { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- Pied de page ---------- */
.pied {
  background: #0f2a18; color: rgba(255,255,255,0.75); padding-block: 3rem 2rem; font-size: 0.95rem;
}
.pied .conteneur { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.pied h4 { color: var(--creme); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.5rem; }
.pied a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pied a:hover { color: var(--creme); text-decoration: underline; }
.pied .marque { color: var(--blanc); margin-bottom: 0.8rem; }
.pied-bas {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Page Fonctionnalités ---------- */
.bandeau-page {
  background: linear-gradient(160deg, var(--vert-fonce), var(--vert)); color: var(--blanc);
  padding-block: 3.5rem 3rem;
}
.bandeau-page h1 { color: var(--blanc); font-size: clamp(2rem, 4vw, 3rem); }
.bandeau-page p { color: rgba(255,255,255,0.85); max-width: 40rem; font-size: 1.1rem; }
.sommaire {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem;
}
.sommaire a {
  color: var(--vert-fonce); background: var(--creme); text-decoration: none; font-weight: 800;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.9rem;
}
.sommaire a:hover { background: var(--blanc); }

.tableau { width: 100%; border-collapse: collapse; margin: 1rem 0 0; font-size: 0.97rem; background: var(--blanc); border-radius: var(--rayon-petit); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { background: var(--vert-pale); color: var(--vert-fonce); font-weight: 800; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau-enveloppe { overflow-x: auto; border: 1.5px solid var(--ligne); border-radius: var(--rayon-petit); }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Réactif ---------- */
@media (max-width: 960px) {
  .heros .conteneur { grid-template-columns: 1fr; text-align: center; }
  .heros .accroche { margin-inline: auto; }
  .heros-actions { justify-content: center; }
  .heros-visuel .telephone { margin-bottom: -40px; }
  .chiffres .conteneur { grid-template-columns: repeat(2, 1fr); }
  .tuiles { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .duo.inverse > .duo-visuel { order: 0; }
  .frise { grid-template-columns: repeat(4, 1fr); }
  .deux-colonnes { grid-template-columns: 1fr; }
  .appel .conteneur { grid-template-columns: 1fr; }
  .pied .conteneur { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tuiles { grid-template-columns: 1fr; }
  .chiffres .conteneur { grid-template-columns: 1fr 1fr; }
  .chiffre strong { font-size: 1.6rem; }
  .frise { grid-template-columns: repeat(2, 1fr); }
  .pied .conteneur { grid-template-columns: 1fr; }
  .duo-visuel { flex-wrap: wrap; }
  .telephone-petit { width: min(160px, 42vw); }
}
