/* ==========================================================================
   Vitrine jardibody - feuille de style
   Rangé dans l'ordre de la page : bandeau, nav, hero, sections, pied.
   ========================================================================== */

/* les couleurs et les mesures qui reviennent partout */
:root {
  --creme: #f5ead8;
  --creme-carte: #f9f4ed;
  --creme-fonce: #ebddc5;
  --beige: #eee7db;
  --beige-bord: #dcd3c4;

  --encre: #201e1d;
  --texte: #474238;
  --texte-doux: #645c50;
  --gris-etiquette: #82796a;

  --brun: #8c491a;
  --brun-clair: #b2622d;
  --orange: #c67139;
  --orange-clair: #d67f48;
  --abricot: #f6a06b;
  --peche: #ffe1d0;
  --peche-pale: #fff2eb;
  --peche-fonce: #ffc6a5;

  --vert-sombre: #3d472b;
  --vert-nuit: #272e1b;
  --vert-moyen: #56633f;
  --vert-olive: #728157;
  --vert-sauge: #7a8a5e;
  --vert-clair: #aebf92;
  --vert-pale: #e1eecc;
  --vert-pale-2: #ccdbb2;
  --vert-blanc: #f0fae1;

  /* largeur du contenu, partagée par toutes les sections */
  --largeur-page: min(1240px, 92vw);

  --ombre-carte: 0 3px 10px rgba(46, 43, 37, 0.16);
  --ombre-forte: 0 12px 32px rgba(46, 43, 37, 0.22);
  --ombre-legere: 0 1px 2px rgba(46, 43, 37, 0.14);

  --police: "Figtree", system-ui, sans-serif;
  --police-mono: "JetBrains Mono", monospace;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html,
body {
  margin: 0;
  padding: 0;
  background: var(--creme);
}

body {
  font-family: var(--police);
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--brun);
  text-decoration: none;
}

a:hover {
  color: var(--brun-clair);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

::selection {
  background: var(--peche);
}

/* faut le !important : sinon les display:flex des blocs cachés passent devant */
[hidden] {
  display: none !important;
}

/* le logo qui monte et descend doucement dans le hero */
@keyframes jb-float {
  0%,
  100% {
    transform: translateY(-60px);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* --------------------------------------------------------------------------
   Bandeau vert du haut
   -------------------------------------------------------------------------- */

.bandeau-logo {
  background: var(--vert-sombre);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mot-logo {
  font-family: var(--police);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--vert-blanc);
}

/* le "body" en abricot - sert aussi dans le "jb" de la nav et du hero */
.part-body {
  color: var(--abricot);
}

/* --------------------------------------------------------------------------
   Le corps de la page
   -------------------------------------------------------------------------- */

.page {
  background: var(--creme);
  /* clip et pas hidden : hidden casse le sticky de la nav */
  overflow-x: clip;
  padding-bottom: clamp(32px, 4vw, 80px);
}

/* --------------------------------------------------------------------------
   Barre de navigation
   -------------------------------------------------------------------------- */

.entete-site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  /* pleine largeur pour que le fond crème couvre tout, le contenu reste aligné sur la page */
  padding: clamp(20px, 2.4vw, 34px) calc((100% - var(--largeur-page)) / 2);
  /* crème transparent + flou sur ce qui passe dessous */
  background: rgba(245, 234, 216, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* reste collée en haut quand le bandeau vert est sorti de l'écran */
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* on scrolle vers le bas : la nav remonte et se cache */
.entete-site.nav-cachee {
  transform: translateY(-100%);
}

.lien-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
}

/* le logo bouge pas au survol */
.lien-logo:hover {
  color: var(--encre);
}

.pastille-jb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--encre);
  color: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police);
  font-weight: 800;
  font-size: 20px;
}

.nom-marque {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 27px);
  letter-spacing: -0.01em;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.6vw, 28px);
  margin-left: auto;
  align-items: center;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
}

.lien-menu {
  color: var(--texte-doux);
}

/* les liens du menu changent pas de couleur non plus */
.lien-menu:hover {
  color: var(--texte-doux);
}

.bouton-chaine {
  background: var(--orange);
  color: var(--peche-pale);
  padding: clamp(9px, 0.8vw, 14px) clamp(16px, 1.4vw, 26px);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(14px, 1vw, 18px);
  box-shadow: var(--ombre-legere);
}

.bouton-chaine:hover {
  background: var(--brun-clair);
  color: var(--peche-pale);
}

/* --------------------------------------------------------------------------
   Hero - texte à gauche, gros logo à droite
   -------------------------------------------------------------------------- */

.hero {
  width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 80px) 0 clamp(48px, 6vw, 120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.badge-construction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vert-pale);
  color: var(--vert-sombre);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pastille-verte {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--vert-olive);
}

.titre-hero {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: clamp(20px, 2vw, 34px) 0 0;
  text-wrap: pretty;
}

.morceau-brun {
  color: var(--brun);
}

.phrase-hero {
  font-size: clamp(17px, 1.35vw, 26px);
  line-height: 1.55;
  color: var(--texte);
  max-width: 30em;
  margin: clamp(20px, 2vw, 32px) 0 0;
  text-wrap: pretty;
}

.phrase-dispo {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.6;
  color: var(--texte-doux);
  max-width: 28em;
  margin: 14px 0 0;
}

.zone-bouton {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(26px, 2.6vw, 44px);
}

.bouton-abonner {
  background: var(--orange);
  color: var(--peche-pale);
  padding: clamp(13px, 1.1vw, 20px) clamp(24px, 2vw, 38px);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 21px);
  box-shadow: var(--ombre-carte);
}

.bouton-abonner:hover {
  background: var(--brun-clair);
  color: var(--peche-pale);
}

/* le visuel : position relative pour accrocher la carte méthode dedans */
.hero-visuel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(260px, 26vw, 480px);
  position: relative;
}

.grosse-pastille {
  width: clamp(240px, 24vw, 440px);
  aspect-ratio: 1;
  border-radius: 28%;
  corner-shape: squircle;
  background: var(--encre);
  color: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police);
  font-weight: 800;
  font-size: 170px;
  overflow: hidden;
  box-shadow: var(--ombre-forte);
  animation: jb-float 9s ease-in-out infinite;
}

.carte-methode {
  position: absolute;
  bottom: clamp(-4px, 1vw, 24px);
  left: 0;
  background: var(--creme-carte);
  border-radius: 28px;
  padding: clamp(14px, 1.2vw, 22px) clamp(18px, 1.6vw, 28px);
  box-shadow: var(--ombre-forte);
  max-width: 78%;
}

.etiquette-methode {
  font-family: var(--police-mono);
  font-size: clamp(11px, 0.75vw, 14px);
  color: var(--texte-doux);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phrase-methode {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(16px, 1.25vw, 24px);
  margin-top: 6px;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Titres qui reviennent dans plusieurs sections
   -------------------------------------------------------------------------- */

.surtitre {
  font-family: var(--police-mono);
  font-size: clamp(12px, 0.8vw, 15px);
  color: var(--gris-etiquette);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* version sur fond vert foncé */
.surtitre-clair {
  color: var(--vert-clair);
}

.gros-titre {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: clamp(14px, 1.4vw, 24px) 0 0;
}

.gros-titre-clair {
  color: var(--vert-blanc);
  max-width: 24em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Section "Le point de départ"
   -------------------------------------------------------------------------- */

.section-depart {
  background: var(--creme-fonce);
  border-radius: clamp(28px, 3vw, 56px);
  width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 88px);
}

.section-depart .gros-titre {
  max-width: 22em;
  text-wrap: pretty;
}

.deux-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 44px);
  margin-top: clamp(28px, 3vw, 56px);
}

.texte-colonne {
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.6;
  color: var(--texte);
  margin: 0;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Section "Ce que l'application fera"
   -------------------------------------------------------------------------- */

.section-fonctions {
  width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 120px) 0 0;
}

.section-fonctions .gros-titre {
  margin-bottom: clamp(28px, 3vw, 56px);
  max-width: 20em;
}

.cartes-fonctions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(18px, 1.8vw, 32px);
}

.carte-fonction {
  background: var(--creme-carte);
  border-radius: 28px;
  padding: clamp(24px, 2.4vw, 44px);
  box-shadow: var(--ombre-carte);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.numero-rond {
  width: clamp(40px, 3.2vw, 60px);
  height: clamp(40px, 3.2vw, 60px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(18px, 1.4vw, 26px);
}

.numero-peche {
  background: var(--peche);
  color: var(--brun);
}

.numero-vert {
  background: var(--vert-pale);
  color: var(--vert-sombre);
}

.titre-carte {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(21px, 1.7vw, 32px);
  line-height: 1.15;
  margin: 0;
}

.texte-carte {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.6;
  color: var(--texte);
  margin: 0;
}

/* le bloc "plus tard" (caché par défaut) */
.bloc-plus-tard {
  margin-top: clamp(18px, 1.8vw, 32px);
  background: var(--vert-pale);
  border-radius: 28px;
  padding: clamp(22px, 2.2vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 1.6vw, 32px);
  align-items: center;
}

.texte-plus-tard {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.6;
  color: var(--vert-sombre);
  margin: 0;
  flex: 1 1 320px;
}

.etiquette-plus-tard {
  font-family: var(--police-mono);
  font-size: clamp(12px, 0.8vw, 15px);
  color: var(--vert-moyen);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--vert-clair);
  border-radius: 999px;
  padding: 8px 16px;
}

/* --------------------------------------------------------------------------
   Section vidéos
   -------------------------------------------------------------------------- */

.section-videos {
  width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 120px) 0 0;
}

.entete-videos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 32px);
  align-items: flex-end;
  justify-content: space-between;
}

.bouton-tout-voir {
  border: 2px solid var(--orange);
  color: var(--brun);
  padding: clamp(11px, 1vw, 16px) clamp(20px, 1.8vw, 32px);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(14px, 1.05vw, 19px);
}

.bouton-tout-voir:hover {
  background: var(--peche);
  color: var(--brun);
}

.grille-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 1.8vw, 32px);
  margin-top: clamp(26px, 3vw, 52px);
}

.carte-video {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--encre);
}

.carte-video:hover {
  color: var(--brun);
}

/* la vignette en attendant les vraies miniatures */
.vignette {
  aspect-ratio: 16/9;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: saturate(0.85);
}

.vignette-verte {
  background: repeating-linear-gradient(
    135deg,
    var(--vert-pale) 0 10px,
    var(--vert-pale-2) 10px 20px
  );
}

.vignette-peche {
  background: repeating-linear-gradient(
    135deg,
    var(--peche) 0 10px,
    var(--peche-fonce) 10px 20px
  );
}

.vignette-beige {
  background: repeating-linear-gradient(
    135deg,
    var(--beige) 0 10px,
    var(--beige-bord) 10px 20px
  );
}

.etiquette-vignette {
  font-family: var(--police-mono);
  font-size: clamp(11px, 0.8vw, 14px);
  border-radius: 999px;
  padding: 8px 16px;
}

.etiquette-verte {
  color: var(--vert-moyen);
  background: var(--vert-blanc);
}

.etiquette-peche {
  color: var(--brun);
  background: var(--peche-pale);
}

.etiquette-beige {
  color: var(--texte-doux);
  background: var(--creme-carte);
}

.titre-video {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(18px, 1.4vw, 27px);
  line-height: 1.2;
  margin: 0;
}

.sous-titre-video {
  font-family: var(--police-mono);
  font-size: clamp(12px, 0.85vw, 15px);
  color: var(--texte-doux);
}

/* --------------------------------------------------------------------------
   Section "La démarche" + le journal
   -------------------------------------------------------------------------- */

.section-demarche {
  width: var(--largeur-page);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 120px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 3.4vw, 64px);
  align-items: center;
}

.texte-demarche {
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.6;
  color: var(--texte);
  max-width: 32em;
  margin: clamp(18px, 1.8vw, 28px) 0 0;
  text-wrap: pretty;
}

.les-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 2vw, 30px);
}

.tag {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: clamp(13px, 0.95vw, 17px);
  font-weight: 600;
}

.tag-vert {
  background: var(--vert-pale);
  color: var(--vert-sombre);
}

.tag-peche {
  background: var(--peche);
  color: var(--brun);
}

.tag-beige {
  background: var(--beige);
  color: var(--texte);
}

.carte-journal {
  background: var(--creme-carte);
  border-radius: 28px;
  padding: clamp(24px, 2.4vw, 44px);
  box-shadow: var(--ombre-carte);
}

.liste-journal {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(16px, 1.6vw, 26px);
}

.ligne-journal {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

/* le petit rond devant chaque étape - remonté de 2px pour aligner sur le texte */
.puce {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: none;
  transform: translateY(-2px);
}

.puce-verte {
  background: var(--vert-sauge);
}

.puce-orange {
  background: var(--orange);
}

.puce-grise {
  background: var(--beige-bord);
}

.texte-journal {
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.5;
  color: var(--texte);
}

/* l'étape pas encore commencée, en plus clair */
.texte-journal-gris {
  color: var(--texte-doux);
}

/* --------------------------------------------------------------------------
   Section "Suivre le projet" (le gros bloc vert)
   -------------------------------------------------------------------------- */

.section-suivre {
  width: var(--largeur-page);
  margin: clamp(48px, 6vw, 120px) auto 0;
  background: var(--vert-sombre);
  border-radius: clamp(28px, 3vw, 56px);
  padding: clamp(32px, 4vw, 88px);
  color: var(--vert-blanc);
}

.texte-suivre {
  font-family: var(--police);
  font-size: clamp(15px, 1.1vw, 21px);
  line-height: 1.55;
  max-width: 40em;
  margin: clamp(14px, 1.4vw, 22px) 0 0;
  color: var(--vert-pale);
}

.cartes-reseaux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 1.4vw, 24px);
  margin-top: clamp(28px, 3vw, 52px);
}

.carte-reseau {
  border-radius: 24px;
  padding: clamp(20px, 2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reseau-orange {
  background: var(--orange);
  color: var(--peche-pale);
}

.reseau-orange:hover {
  background: var(--orange-clair);
  color: var(--peche-pale);
}

.reseau-vert {
  background: var(--vert-moyen);
  color: var(--vert-blanc);
}

.reseau-vert:hover {
  background: var(--vert-olive);
  color: var(--vert-blanc);
}

.nom-reseau {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(19px, 1.5vw, 28px);
  line-height: 1.15;
}

.sous-nom-reseau {
  font-size: clamp(14px, 1vw, 18px);
  opacity: 0.9;
}

.sous-nom-vert {
  opacity: 0.85;
}

/* le bloc mail (caché par défaut) */
.bloc-newsletter {
  margin-top: clamp(24px, 2.4vw, 44px);
  background: var(--vert-nuit);
  border-radius: 24px;
  padding: clamp(20px, 2vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.4vw, 24px);
  align-items: center;
}

.texte-newsletter {
  margin: 0;
  flex: 1 1 280px;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.5;
  color: var(--vert-pale);
}

.zone-mail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.champ-mail {
  border: 2px solid var(--vert-moyen);
  background: var(--vert-sombre);
  color: var(--vert-blanc);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--police);
  font-size: clamp(14px, 1vw, 18px);
  min-width: 220px;
}

.bouton-prevenir {
  background: var(--orange);
  color: var(--peche-pale);
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--police);
  font-weight: 700;
  font-size: clamp(14px, 1vw, 18px);
  cursor: pointer;
}

.bouton-prevenir:hover {
  background: var(--orange-clair);
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.pied-de-page {
  width: var(--largeur-page);
  margin: clamp(36px, 4vw, 72px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.6vw, 28px);
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(20px, 2vw, 32px);
  border-top: 2px solid var(--beige-bord);
}

.nom-site {
  font-family: var(--police);
  font-weight: 800;
  font-size: clamp(17px, 1.3vw, 24px);
}

.mention-pied {
  font-size: clamp(13px, 0.95vw, 17px);
  color: var(--texte-doux);
}
