/* ==========================================================================
   Tomate & Basilic — site vitrine
   Mobile first : le style par défaut est celui du téléphone.
   Les media queries n'élargissent jamais vers le bas (aucun max-width).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */
:root {
  --vert-profond:   #1B7252;
  --vert-clair:     #B7EEDA;
  --vert-voile:     #F5FDFA;
  --terre:          #87591A;
  --sable:          #DEB986;
  --teal:           #1B7472;
  --teal-clair:     #CBF3F2;
  --rose-premium:   #E08B87;
  --texte:          #202020;
  --texte-doux:     #616161;
  --texte-tertiaire:#9E9E9E;
  --surface:        #F6F6F6;
  --bordure:        #D3D3D3;
  --blanc:          #FFFFFF;

  /* Rôles */
  --fond:           var(--blanc);
  --fond-alt:       var(--vert-voile);
  --carte:          var(--blanc);
  --accent:         var(--vert-profond);
  --sur-accent:     #FFFFFF;
  --verre:          rgba(255,255,255,.72);
  --cadre-tel:      #1A1A1A;

  /* Rayons : 4 / 8 / 16 / 32 uniquement */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 32px;

  /* Espacements : 8 / 16 / 24 / 32 / 64 / 96 */
  --e1: 8px;
  --e2: 16px;
  --e3: 24px;
  --e4: 32px;
  --e5: 64px;
  --e6: 96px;

  --ombre-douce: 0 2px 8px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --ombre-large: 0 8px 24px rgba(0,0,0,.06), 0 32px 64px rgba(0,0,0,.10);

  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;

  /* Hauteur de l'en-tête : le hero passe dessous */
  --h-entete: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --vert-profond:   #2AAF7E;
    --vert-clair:     #1E4638;
    --vert-voile:     #191E1C;
    --teal-clair:     #17403F;
    --texte:          #F1F1F1;
    --texte-doux:     #B4B4B4;
    --texte-tertiaire:#8A8A8A;
    --surface:        #2A2A2A;
    --bordure:        #343434;
    --blanc:          #202020;

    --fond:       #202020;
    --fond-alt:   #191E1C;
    --carte:      #262626;
    --accent:     #2AAF7E;
    --sur-accent: #0E1512;
    --verre:      rgba(32,32,32,.72);
    --cadre-tel:  #000000;

    --ombre-douce: 0 2px 8px rgba(0,0,0,.30), 0 12px 32px rgba(0,0,0,.36);
    --ombre-large: 0 8px 24px rgba(0,0,0,.34), 0 32px 64px rgba(0,0,0,.44);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--police);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 var(--e2);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 7.5vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 5.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.5rem); }

p { margin: 0 0 var(--e2); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

em.latin { font-family: ui-serif, Georgia, "Times New Roman", serif; font-style: italic; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.lede {
  max-width: 68ch;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--texte-doux);
}

.kicker {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--e2);
}

.section { padding: var(--e5) 0; }
.section--alt { background: var(--fond-alt); }

.saut { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lien d'évitement */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--sur-accent);
  padding: var(--e2); border-radius: 0 0 var(--r-sm) 0;
  z-index: 200; text-decoration: none;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */
.btn-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px var(--e3);
  border-radius: var(--r-md);
  background: var(--texte);
  color: var(--fond);
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}
.btn-store:hover { transform: translateY(-2px); opacity: .92; }
.btn-store:active { transform: translateY(0); }
.btn-store svg { flex: none; fill: currentColor; }
.btn-store span { display: block; line-height: 1.15; text-align: left; }
.btn-store .btn-store__small { font-size: .6875rem; font-weight: 300; letter-spacing: .01em; opacity: .85; }
.btn-store .btn-store__big { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }

.btn-store--clair {
  background: var(--carte);
  color: var(--texte);
  border: 1px solid var(--bordure);
}

.note-plateforme {
  margin-top: var(--e2);
  font-size: .875rem;
  color: var(--texte-tertiaire);
}

/* --------------------------------------------------------------------------
   4. En-tête
   -------------------------------------------------------------------------- */
/* En haut de page l'en-tête est invisible : il flotte dans le dégradé du
   hero. Le verre dépoli n'apparaît qu'une fois le défilement lancé. */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease,
              -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease;
}
.entete.is-scrolled {
  background: var(--verre);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--bordure);
}

.entete__inner {
  display: flex;
  align-items: center;
  gap: var(--e2);
  min-height: 64px;
}

.marque {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
  color: var(--texte);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  margin-right: auto;
}
.marque img { width: 32px; height: 32px; }
.marque .esp { font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 400; }

.nav {
  display: none;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: .875rem;
  white-space: nowrap;
  padding: 10px 2px;
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent); }

.entete .btn-store {
  width: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  gap: 8px;
  border-radius: var(--r-sm);
}
.entete .btn-store .btn-store__small { display: none; }
.entete .btn-store .btn-store__big { font-size: .8125rem; font-weight: 500; }

/* Sur mobile, le sélecteur de langue vit dans le menu burger */
.entete__inner > .langues { display: none; }

/* Sélecteur de langue */
.langues {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--bordure);
  border-radius: var(--r-sm);
}
.langues a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--texte-doux);
  text-decoration: none;
  border-radius: var(--r-xs);
}
.langues a[aria-current="true"] { background: var(--accent); color: var(--sur-accent); }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--texte);
}
.burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-mobile {
  display: none;
  padding: var(--e2) 0 var(--e3);
  border-top: 1px solid var(--bordure);
}
.menu-mobile.is-open { display: block; }
.menu-mobile a.menu-mobile__lien {
  display: block;
  padding: 14px 0;
  min-height: 44px;
  color: var(--texte);
  text-decoration: none;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--bordure);
}
.menu-mobile .langues { margin-top: var(--e3); width: fit-content; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* remonte sous l'en-tête transparent : le dégradé passe derrière lui */
  margin-top: calc(-1 * var(--h-entete));
  padding: calc(var(--h-entete) + var(--e4)) 0 var(--e4);
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(183,238,218,.55), transparent 70%),
    radial-gradient(50% 45% at 85% 20%, rgba(203,243,242,.50), transparent 70%),
    radial-gradient(55% 50% at 60% 90%, rgba(222,185,134,.30), transparent 70%),
    var(--blanc);
}

@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(60% 50% at 15% 10%, rgba(42,175,126,.20), transparent 70%),
      radial-gradient(50% 45% at 85% 20%, rgba(27,116,114,.24), transparent 70%),
      radial-gradient(55% 50% at 60% 90%, rgba(135,89,26,.18), transparent 70%),
      #202020;
  }
}

/* Grain : casse le côté plastique du dégradé */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--e4);
}

.hero__texte { text-align: left; }
.hero__texte .lede { margin-top: var(--e3); }
.hero__actions { margin-top: var(--e4); max-width: 340px; }

/* Les objets 3D géants.
   Deux calques : .decor--arriere passe derrière le contenu, .decor--avant
   passe devant — y compris devant le titre et le téléphone.
   Chacun a son propre masque, qui efface le haut pour que rien ne vienne
   brouiller l'en-tête transparent. */
.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--h-entete) + 20px));
  mask-image: linear-gradient(to bottom, transparent 0, #000 calc(var(--h-entete) + 20px));
}
.decor--arriere { z-index: 0; }
.decor--avant   { z-index: 3; }

/* La traversée : chaque objet dérive d'un bord à l'autre, en boucle. */
.flot {
  position: absolute;
  left: 0;
  will-change: transform;
  animation: derive linear infinite;
}
.flot--gauche { --de: 100vw;  --vers: -100%; }   /* entre par la droite */
.flot--droite { --de: -100%;  --vers: 100vw; }   /* entre par la gauche  */

@keyframes derive {
  from { transform: translate3d(var(--de), 0, 0); }
  to   { transform: translate3d(var(--vers), 0, 0); }
}

/* Le balancement, superposé à la dérive. */
.objet {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  filter: drop-shadow(0 26px 36px rgba(0,0,0,.16));
  animation: respire ease-in-out infinite alternate;
}
.decor--avant .objet {
  /* ombre plus dense et plus basse : c'est elle qui crée la profondeur */
  filter: drop-shadow(0 46px 56px rgba(0,0,0,.30));
}

@keyframes respire {
  from { transform: translateY(var(--y-a, 0)) rotate(var(--r-a, -6deg)); }
  to   { transform: translateY(var(--y-b, -34px)) rotate(var(--r-b, 7deg)); }
}

/* Mobile : tailles déjà énormes rapportées à l'écran. */
.f1 { /* citrouille, premier plan */
  width: 300px; top: 50%;
  --y-a: 8px; --y-b: -30px; --r-a: -7deg; --r-b: 5deg;
  animation-duration: 34s; animation-delay: -6s;
}
.f1 .objet { animation-duration: 8s; }

.f2 { /* tomate, arrière-plan */
  width: 250px; top: -10%;
  --y-a: -8px; --y-b: 28px; --r-a: 6deg; --r-b: -7deg;
  animation-duration: 46s; animation-delay: -24s;
}
.f2 .objet { animation-duration: 10.5s; }

.f3 { /* arrosoir, premier plan */
  width: 200px; top: 74%;
  --y-a: 0; --y-b: -36px; --r-a: 7deg; --r-b: -6deg;
  animation-duration: 28s; animation-delay: -17s;
}
.f3 .objet { animation-duration: 7.5s; }

.f4 { /* courgette, arrière-plan */
  width: 270px; top: 38%;
  --y-a: 6px; --y-b: -26px; --r-a: -5deg; --r-b: 8deg;
  animation-duration: 54s; animation-delay: -39s;
}
.f4 .objet { animation-duration: 12s; }

/* Cadre iPhone dessiné en CSS */
.telephone {
  position: relative;
  width: 100%;
  max-width: 268px;
  margin: 0 auto;
  border: 8px solid var(--cadre-tel);
  border-radius: 44px;
  background: var(--cadre-tel);
  box-shadow: var(--ombre-large);
  overflow: hidden;
  isolation: isolate;
}
.telephone img {
  width: 100%;
  border-radius: 36px;
  display: block;
}
.telephone::after { /* reflet */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 26%, transparent 46%);
}
.telephone::before { /* encoche */
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 20px;
  background: var(--cadre-tel);
  border-radius: 16px;
  z-index: 3;
}
.telephone--sm { max-width: 232px; }

.legende-tel {
  margin-top: var(--e2);
  text-align: center;
  font-size: .8125rem;
  color: var(--texte-tertiaire);
}

/* --------------------------------------------------------------------------
   6. Blocs génériques
   -------------------------------------------------------------------------- */
.bloc {
  display: grid;
  gap: var(--e4);
  align-items: center;
}

.ancre-3d {
  position: absolute;
  width: 120px; height: 120px;
  opacity: .9;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.10));
}

.section--relative { position: relative; overflow: hidden; }

/* Liste à puces illustrées */
.puces { list-style: none; margin: var(--e3) 0 0; padding: 0; }
.puces li {
  display: flex;
  align-items: flex-start;
  gap: var(--e2);
  padding: var(--e2) 0;
  border-top: 1px solid var(--bordure);
}
.puces li:first-child { border-top: 0; }
.puces img { flex: none; width: 36px; height: 36px; margin-top: 2px; }
.puces strong { display: block; font-weight: 700; }
.puces span { color: var(--texte-doux); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   8. Parcelle animée (SVG)
   -------------------------------------------------------------------------- */
.parcelle {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: var(--e3);
  box-shadow: var(--ombre-douce);
}
.parcelle svg { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.parcelle .sol  { fill: #EFE6D5; }
.parcelle .rang { fill: #E4D6BB; }
@media (prefers-color-scheme: dark) {
  .parcelle .sol  { fill: #2B2924; }
  .parcelle .rang { fill: #35322B; }
}
.parcelle .plante {
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
  transform-origin: center;
  transform-box: fill-box;
}
.parcelle .plante[data-on="0"] { opacity: 0; transform: scale(.35); }
.parcelle .plante[data-on="1"] { opacity: 1; transform: scale(1); }

.mois {
  display: flex;
  align-items: center;
  gap: var(--e2);
  margin-top: var(--e3);
}
.mois__label {
  flex: none;
  min-width: 84px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.mois input[type="range"] {
  flex: 1;
  min-height: 44px;
  accent-color: var(--vert-profond);
  background: transparent;
}
.mois__aide {
  margin-top: var(--e1);
  font-size: .8125rem;
  color: var(--texte-tertiaire);
}

/* --------------------------------------------------------------------------
   9. Démo des associations
   -------------------------------------------------------------------------- */
.duo {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: var(--e3);
  box-shadow: var(--ombre-douce);
}

.duo__choix {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e2);
}
.duo__champ label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-tertiaire);
  margin-bottom: 6px;
}
.duo__champ select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--r-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9E9E' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.duo__scene {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--e1);
  margin-top: var(--e3);
  padding: var(--e3) 0;
}
.duo__plante { text-align: center; }
.duo__plante img {
  width: 72px; height: 72px;
  margin: 0 auto var(--e1);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
}
.duo__plante span { font-size: .875rem; font-weight: 500; }
/* Repli quand la plante n'a pas d'illustration 3D dans le dossier */
.duo__disque {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto var(--e1);
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert-profond);
}
.duo__disque svg { width: 34px; height: 34px; }

.duo__fleches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--texte-tertiaire);
  transition: color .3s ease;
}
.duo__fleches svg { width: 44px; height: 12px; }
.duo[data-verdict="bonne"] .duo__fleches { color: var(--vert-profond); }
.duo[data-verdict="mauvaise"] .duo__fleches { color: #C25A4E; }
@media (prefers-color-scheme: dark) {
  .duo[data-verdict="mauvaise"] .duo__fleches { color: #E08B87; }
}

.duo__verdict {
  border-radius: var(--r-md);
  padding: var(--e3);
  border: 1px solid var(--bordure);
  background: var(--surface);
}
.duo__verdict h3 { margin-bottom: 6px; font-size: 1.125rem; }
.duo__verdict p { color: var(--texte-doux); font-size: .9375rem; }

.duo[data-verdict="bonne"] .duo__verdict {
  background: var(--vert-clair);
  border-color: transparent;
}
.duo[data-verdict="bonne"] .duo__verdict h3 { color: #0F4A35; }
.duo[data-verdict="bonne"] .duo__verdict p { color: #1B4A3B; }

.duo[data-verdict="mauvaise"] .duo__verdict {
  background: #FBE9E7;
  border-color: transparent;
}
.duo[data-verdict="mauvaise"] .duo__verdict h3 { color: #8A2E22; }
.duo[data-verdict="mauvaise"] .duo__verdict p { color: #7A3A32; }

@media (prefers-color-scheme: dark) {
  .duo[data-verdict="bonne"] .duo__verdict h3 { color: #B7EEDA; }
  .duo[data-verdict="bonne"] .duo__verdict p { color: #9CD9C4; }
  .duo[data-verdict="mauvaise"] .duo__verdict { background: #3A211E; }
  .duo[data-verdict="mauvaise"] .duo__verdict h3 { color: #F0B3AF; }
  .duo[data-verdict="mauvaise"] .duo__verdict p { color: #D6A29E; }
}

.duo__source {
  margin-top: var(--e3);
  font-size: .875rem;
  color: var(--texte-tertiaire);
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Cartes
   -------------------------------------------------------------------------- */
.cartes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e3);
  margin-top: var(--e4);
}
.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: var(--e3);
}
.carte img.carte__objet { width: 64px; height: 64px; margin-bottom: var(--e2); }
.carte h3 { margin-bottom: var(--e1); }
.carte p { color: var(--texte-doux); font-size: .9375rem; }
.carte ul { margin: var(--e2) 0 0; padding-left: 1.1em; color: var(--texte-doux); font-size: .9375rem; }
.carte li { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   11. Confiance
   -------------------------------------------------------------------------- */
.confiance {
  /* teinte un peu plus marquée que --fond-alt : c'est la rupture du site */
  background-color: var(--fond);
  background-image: linear-gradient(0deg, var(--vert-clair), var(--vert-clair));
  background-blend-mode: normal;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .confiance { background-image: none; background-color: color-mix(in srgb, var(--vert-clair) 38%, var(--fond)); }
}
.confiance__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e3);
  margin-top: var(--e4);
}
.confiance__bloc {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  padding: var(--e3);
}
.confiance__bloc svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: var(--e2); }
.confiance__bloc h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.confiance__bloc p { font-size: .9375rem; color: var(--texte-doux); }

.citation {
  margin: var(--e4) 0 0;
  padding: var(--e3);
  border-left: 3px solid var(--accent);
  background: var(--carte);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1rem;
  color: var(--texte-doux);
}

/* --------------------------------------------------------------------------
   12. Permaculture+
   -------------------------------------------------------------------------- */
.premium {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  padding: var(--e4) var(--e3);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(224,139,135,.16), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(183,238,218,.30), transparent 70%),
    var(--carte);
}
.premium__titre {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.premium__titre .plus { color: var(--rose-premium); }

.tableau-enveloppe { overflow-x: auto; margin-top: var(--e4); -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: .9375rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 14px var(--e2);
  border-bottom: 1px solid var(--bordure);
  vertical-align: top;
}
table.compare thead th {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-tertiaire);
  font-weight: 700;
}
table.compare thead th:last-child { color: var(--accent); }
table.compare td:first-child { color: var(--texte-doux); }
table.compare td:last-child { font-weight: 500; }
table.compare tbody tr:last-child td { border-bottom: 0; }

.premium__resume {
  margin-top: var(--e4);
  font-size: 1.0625rem;
  font-weight: 500;
}
.premium__actions { margin-top: var(--e3); max-width: 340px; }
.premium__pied {
  margin-top: var(--e3);
  font-size: .875rem;
  color: var(--texte-tertiaire);
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 800px; margin: var(--e4) 0 0; }
.faq details {
  border-bottom: 1px solid var(--bordure);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  min-height: 56px;
  padding: var(--e2) 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--texte-tertiaire);
  border-bottom: 2px solid var(--texte-tertiaire);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p {
  padding: 0 0 var(--e3);
  color: var(--texte-doux);
  max-width: 68ch;
}

.filigrane {
  position: absolute;
  width: 200px; height: 200px;
  opacity: .15;
  pointer-events: none;
  bottom: -24px; left: -40px;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--fond-alt);
  border-top: 1px solid var(--bordure);
  padding: var(--e5) 0 var(--e4);
  font-size: .9375rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e4);
}
.pied .marque { color: var(--texte-doux); font-size: .9375rem; margin-right: 0; }
.pied .marque img { width: 24px; height: 24px; opacity: .75; }
.pied h4 {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-tertiaire);
  margin-bottom: var(--e2);
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 4px; }
.pied a { color: var(--texte-doux); text-decoration: none; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 10px 0; }
.pied a:hover { color: var(--accent); text-decoration: underline; }
.pied__bas {
  margin-top: var(--e4);
  padding-top: var(--e3);
  border-top: 1px solid var(--bordure);
  color: var(--texte-tertiaire);
  font-size: .8125rem;
  display: flex;
  flex-direction: column;
  gap: var(--e2);
}

/* --------------------------------------------------------------------------
   15. Pages légales
   -------------------------------------------------------------------------- */
.legal { padding: var(--e5) 0 var(--e6); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.85rem, 6vw, 2.75rem); margin-bottom: var(--e2); }
.legal h2 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); margin-top: var(--e4); }
.legal h3 { font-size: 1.0625rem; margin-top: var(--e3); }
.legal p, .legal li { color: var(--texte-doux); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: var(--e1); }
.legal .maj { color: var(--texte-tertiaire); font-size: .875rem; }
.legal .encadre {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  padding: var(--e3);
  margin: var(--e3) 0;
}
.legal .encadre p:last-child { margin-bottom: 0; }
.legal .retour { display: inline-block; margin-bottom: var(--e3); font-size: .9375rem; text-decoration: none; }

/* --------------------------------------------------------------------------
   16. Apparition au défilement
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. ≥ 768 px — on élargit
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root { --h-entete: 72px; }

  body { font-size: 18px; }

  .wrap { padding: 0 var(--e4); }

  .section { padding: var(--e6) 0; }

  .nav { display: flex; }
  .burger { display: none; }
  .menu-mobile { display: none !important; }
  .entete__inner > .langues { display: flex; }
  .entete__inner { min-height: 72px; gap: var(--e2); flex-wrap: nowrap; }
  /* Entre 768 et 1200, la place manque : le logo garde la marque, le mot
     « Tomate & Basilic » et le libellé du bouton réapparaissent plus large. */
  .marque span { display: none; }
  .entete .btn-store { padding: 8px 12px; }
  .entete .btn-store .btn-store__big { display: none; }

  .hero { padding: var(--e6) 0; }
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--e5);
    align-items: center;
  }
  .hero__actions { margin-top: var(--e4); }
  .btn-store { width: auto; display: inline-flex; }

  .f1 { width: 520px; top: 34%; }
  .f2 { width: 420px; top: -10%; }
  .f3 { width: 320px; top: 56%; }
  .f4 { width: 460px; top: 10%; }

  .telephone { max-width: 300px; }
  .telephone--sm { max-width: 264px; }

  .bloc { grid-template-columns: 1fr 1fr; gap: var(--e5); }
  .bloc--inverse .bloc__visuel { order: -1; }

  .ancre-3d { width: 170px; height: 170px; }

  .duo__choix { grid-template-columns: 1fr 1fr; gap: var(--e3); }
  .duo { padding: var(--e4); }
  .duo__plante img { width: 96px; height: 96px; }
  .duo__disque { width: 96px; height: 96px; }
  .duo__disque svg { width: 44px; height: 44px; }
  .duo__fleches svg { width: 72px; }

  .cartes { grid-template-columns: repeat(3, 1fr); }
  .confiance__grille { grid-template-columns: repeat(3, 1fr); }

  .premium { padding: var(--e5); }
  .premium__actions .btn-store { width: auto; }

  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--e5); }
  .pied__bas { flex-direction: row; align-items: center; justify-content: space-between; }

  .legal { padding: var(--e6) 0; }
}

/* --------------------------------------------------------------------------
   18. ≥ 1200 px
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .entete__inner { gap: var(--e3); }
  .marque { font-size: 1.0625rem; }
  .marque span { display: inline; }
  .nav { gap: var(--e3); }
  .nav a { font-size: .9375rem; }
  .entete .btn-store { padding: 8px 18px; }
  .entete .btn-store .btn-store__big { display: block; font-size: .9375rem; }

  .hero { padding: 120px 0 var(--e6); }
  .hero__inner { gap: var(--e6); }
  .telephone { max-width: 330px; }

  .bloc { gap: var(--e6); }
  .ancre-3d { width: 190px; height: 190px; }

  .f1 { width: 720px; top: 30%; }
  .f2 { width: 560px; top: -14%; }
  .f3 { width: 420px; top: 54%; }
  .f4 { width: 600px; top: 6%; }
}

/* --------------------------------------------------------------------------
   19. Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .flot { animation: none; transform: translate3d(var(--repos, 30vw), 0, 0); }
  .objet { animation: none; transform: none; }
  .f1 { --repos: 52vw; } .f2 { --repos: 4vw; }
  .f3 { --repos: -6vw; } .f4 { --repos: 62vw; }
  .js .reveal { opacity: 1; transform: none; }
  .parcelle .plante[data-on="0"] { opacity: 0; transform: scale(.35); }
}
