/* =========================================================================
   Arbre de témoignages — styles de <arbre-temoignages>

   1. CHARTE — reprise telle quelle de la carte d'équipe (index.html) :
      couleurs et typographie du Courant pour une écologie humaine
      (ecologiehumaine.eu). Rangée sous .ceh-arbre et non sous .ceh, pour
      que l'arbre et la carte puissent cohabiter sur la même page.
   ========================================================================= */
.ceh-arbre{
  --jaune:        #d9e01f;   /* la couleur signature : feuilles, sol      */
  --jaune-fonce:  #b6bd18;   /* reliefs, survols                         */
  --jaune-pale:   #f6f8e4;   /* fonds très clairs                        */
  --magenta:      #960084;   /* titres, lecture en cours                 */
  --violet:       #78256c;   /* le bois, traits, texte accentué          */
  --bleu-vert:    #2e8b96;   /* accent secondaire (issu du logo)         */
  --encre:        #282f36;   /* texte courant                            */
  --encre-pale:   #6f7680;   /* texte secondaire                         */
  --papier:       #ffffff;
  --papier-alt:   #f7f8f2;
  --bord:         #e3e6d4;

  --rayon: 18px;
  --ease-pop: cubic-bezier(.34,1.56,.64,1);

  /* Manuscrite d'appoint : les phrases de l'arbre, les annotations. La
     structure reste en Roboto, comme sur le site. */
  --manuscrit: 'Caveat','Segoe Print',cursive;
}

/* =========================================================================
   2. BASE — remises à zéro contre les styles génériques du thème
   ========================================================================= */
.ceh-arbre, .ceh-arbre *,
.ceh-arbre *::before,
.ceh-arbre *::after{ box-sizing:border-box; }

.ceh-arbre{
  display:block;
  font-family:'Roboto',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
  color:var(--encre);
  text-align:left;
}
.ceh-arbre p, .ceh-arbre section{ margin:0; padding:0; }
.ceh-arbre button{
  margin:0; min-width:0; min-height:0; width:auto;
  font:inherit; line-height:inherit;
  text-transform:none; letter-spacing:normal; text-shadow:none;
  box-shadow:none; border-radius:0;
}
.ceh-arbre svg{ max-width:none; }
.ceh-arbre svg text{ font-family:'Roboto',system-ui,sans-serif; letter-spacing:normal; text-transform:none; }

.ceh-arbre__papier{
  padding:clamp(16px,3vw,28px) clamp(8px,2vw,20px) clamp(12px,2vw,20px);
  border-radius:var(--rayon);
  /* Papier : blanc cassé et grain fin, comme la carte d'équipe */
  background-color:#fbfaf3;
  background-image:
    radial-gradient(rgba(120,37,108,.038) 1px, transparent 1px),
    radial-gradient(rgba(120,37,108,.028) 1px, transparent 1px);
  background-size:7px 7px, 11px 11px;
  background-position:0 0, 3px 4px;
}

.ceh-arbre__scene{ position:relative; width:100%; min-height:120px; }
.ceh-arbre__svg{ display:block; width:100%; height:auto; overflow:visible; }

.ceh-arbre__etat{
  padding:48px 12px; text-align:center;
  font-family:var(--manuscrit); font-weight:600; font-size:24px;
  color:var(--violet);
}

/* =========================================================================
   3. L'ARBRE
   ========================================================================= */
.ceh-arbre__sol{ fill:var(--jaune); }

.ceh-arbre__tronc,
.ceh-arbre__branche{ fill:var(--violet); }
.ceh-arbre__ecorce{ fill:none; stroke:rgba(255,255,255,.16); stroke-width:1.4; stroke-linecap:round; }
.ceh-arbre__creux{ fill:#4b1543; stroke:rgba(255,255,255,.18); stroke-width:1.5; }
.ceh-arbre__racine{ fill:none; stroke:var(--violet); stroke-width:4; stroke-linecap:round; }
.ceh-arbre__rameau{ fill:none; stroke:var(--violet); stroke-width:2.4; stroke-linecap:round; }

.ceh-arbre__petite--fonce{ fill:var(--jaune-fonce); }
.ceh-arbre__petite--bleu{ fill:var(--bleu-vert); }

.ceh-arbre__note--violet{ fill:var(--violet); }
.ceh-arbre__note--bleu{ fill:var(--bleu-vert); }
.ceh-arbre__note--magenta{ fill:var(--magenta); }
.ceh-arbre__note--fonce{ fill:var(--jaune-fonce); }
/* Les notes dansent pendant qu'un vocal est joué */
.ceh-arbre.est-en-musique .ceh-arbre__notes > g:nth-child(odd) > g{ animation:ceh-arbre-danse 1.4s ease-in-out infinite; }
.ceh-arbre.est-en-musique .ceh-arbre__notes > g:nth-child(even) > g{ animation:ceh-arbre-danse 1.4s ease-in-out .7s infinite; }
@keyframes ceh-arbre-danse{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%    { transform:translateY(-7px) rotate(-8deg); }
}

.ceh-arbre .ceh-arbre__consigne{
  font-family:var(--manuscrit); font-weight:600; font-size:21px;
  fill:var(--violet);
}
.ceh-arbre .ceh-arbre__compte{
  font-family:'Roboto',system-ui,sans-serif;
  font-size:11px; font-weight:500; letter-spacing:.12em;
  text-transform:uppercase; fill:var(--encre-pale);
}

/* ---- une feuille = un témoignage ---- */
.ceh-arbre .feuille{ cursor:pointer; outline:none; -webkit-tap-highlight-color:transparent; }

.ceh-arbre .feuille__forme{
  fill:var(--jaune);
  stroke:var(--jaune-fonce); stroke-width:1.5; stroke-linejoin:round;
  transition:fill .2s, stroke .2s, stroke-width .2s;
}
.ceh-arbre .feuille--clair .feuille__forme{ fill:#e8ec7a; }
.ceh-arbre .feuille--pale  .feuille__forme{ fill:var(--jaune-pale); stroke:var(--jaune); stroke-width:2; }
.ceh-arbre .feuille--bleu  .feuille__forme{ fill:#d6eaec; stroke:#9ccbd0; }

/* La progression du vocal fait le tour de la feuille */
.ceh-arbre .feuille__progres{
  fill:none; stroke:var(--magenta); stroke-width:3.5; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:1 1; stroke-dashoffset:1;
  pointer-events:none;
}
.ceh-arbre .feuille__texte{
  font-family:var(--manuscrit); font-weight:600;
  fill:var(--encre);
  pointer-events:none;
  transition:fill .2s;
}

/* Survol : la feuille se soulève depuis sa base */
.ceh-arbre .feuille__bouge{
  transform-box:fill-box; transform-origin:0 50%;
  transition:transform .3s var(--ease-pop);
}
.ceh-arbre .feuille--gauche .feuille__bouge,
.ceh-arbre .feuille--gauche .feuille__pop{ transform-origin:100% 50%; }
.ceh-arbre .feuille:hover .feuille__bouge{ transform:scale(1.05) rotate(-2deg); }
.ceh-arbre .feuille--gauche:hover .feuille__bouge{ transform:scale(1.05) rotate(2deg); }
.ceh-arbre .feuille:hover .feuille__forme{ stroke:var(--violet); }

.ceh-arbre .feuille:focus-visible .feuille__forme{ stroke:var(--magenta); stroke-width:3; stroke-dasharray:6 4; }

.ceh-arbre .feuille.est-ecoute .feuille__texte{ fill:var(--violet); }

.ceh-arbre .feuille.est-actif .feuille__forme{ fill:#fff; stroke:var(--magenta); stroke-width:1.5; }
.ceh-arbre .feuille.est-actif .feuille__texte{ fill:var(--magenta); }
.ceh-arbre .feuille.est-en-lecture .feuille__bouge{ animation:ceh-arbre-bruisse 2.2s ease-in-out infinite; }
.ceh-arbre .feuille--gauche.est-en-lecture .feuille__bouge{ animation-name:ceh-arbre-bruisse-g; }
.ceh-arbre .feuille.est-en-chargement .feuille__forme{ animation:ceh-arbre-attente .8s ease-in-out infinite alternate; }

@keyframes ceh-arbre-bruisse{
  0%,100%{ transform:rotate(0deg); }
  50%    { transform:rotate(-3deg); }
}
@keyframes ceh-arbre-bruisse-g{
  0%,100%{ transform:rotate(0deg); }
  50%    { transform:rotate(3deg); }
}
@keyframes ceh-arbre-attente{ to{ fill-opacity:.55; } }

/* ---- pousse : une seule fois, quand l'arbre entre à l'écran ---- */
.ceh-arbre .a-trait{ stroke-dasharray:1 1; stroke-dashoffset:1; }
.ceh-arbre .a-fondu{ opacity:0; }
.ceh-arbre .a-tronc{ transform-box:fill-box; transform-origin:50% 100%; transform:scaleY(0); }
.ceh-arbre .a-pop{ transform-box:fill-box; transform-origin:0 50%; transform:scale(0); }
.ceh-arbre [class*="ceh-arbre__note"].a-pop{ transform-origin:50% 100%; }

.ceh-arbre.est-pousse .a-trait{ animation:ceh-arbre-trait .9s cubic-bezier(.3,.6,.3,1) var(--delai,0s) forwards; }
.ceh-arbre.est-pousse .a-fondu{ animation:ceh-arbre-fondu .7s ease var(--delai,0s) forwards; }
.ceh-arbre.est-pousse .a-tronc{ animation:ceh-arbre-tronc 1.1s cubic-bezier(.2,.7,.3,1) var(--delai,0s) forwards; }
.ceh-arbre.est-pousse .a-pop{ animation:ceh-arbre-pop .55s var(--ease-pop) var(--delai,0s) forwards; }

@keyframes ceh-arbre-trait{ to{ stroke-dashoffset:0; } }
@keyframes ceh-arbre-fondu{ to{ opacity:var(--opacite,1); } }
@keyframes ceh-arbre-tronc{ to{ transform:scaleY(1); } }
@keyframes ceh-arbre-pop{ to{ transform:scale(1); } }

/* Pousse terminée (ou mouvement réduit) : tout est en place, sans
   animation, y compris après un redessin au changement de largeur */
.ceh-arbre.est-pousse-fini .a-trait{ animation:none; stroke-dasharray:none; stroke-dashoffset:0; }
.ceh-arbre.est-pousse-fini .a-fondu{ animation:none; opacity:var(--opacite,1); }
.ceh-arbre.est-pousse-fini .a-tronc,
.ceh-arbre.est-pousse-fini .a-pop{ animation:none; transform:none; }

/* =========================================================================
   4. LE LECTEUR — collé en bas de l'écran tant que l'arbre est visible
   ========================================================================= */
.ceh-arbre .lecteur{
  position:sticky; bottom:12px; z-index:5;
  display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:start;
  width:min(560px,100%);
  margin:8px auto 0;
  padding:16px 12px 8px;
  /* Papier de carnet : crème et lignes très pâles, comme la fiche membre */
  background:
    repeating-linear-gradient(180deg, transparent 0 29px,
                              rgba(120,37,108,.07) 29px 30px),
    #fdfcf4;
  border-radius:20px;
  box-shadow:0 18px 44px rgba(40,47,54,.28);
  opacity:0;
  transform:translateY(18px) scale(.96);
  transition:transform .42s var(--ease-pop), opacity .3s ease;
}
.ceh-arbre .lecteur[hidden]{ display:none; }
/* Témoignage reçu par écrit : la fiche sans bouton ni barre de lecture */
.ceh-arbre .lecteur.est-texte-seul{ grid-template-columns:1fr auto; padding-left:20px; }
.ceh-arbre .lecteur.est-texte-seul .lecteur__bouton,
.ceh-arbre .lecteur.est-texte-seul .lecteur__piste{ display:none; }
.ceh-arbre .lecteur.est-visible{ opacity:1; transform:none; }

/* Bandeau jaune en haut, rappel de la fiche */
.ceh-arbre .lecteur::before{
  content:""; position:absolute; top:0; left:0; right:0; height:8px;
  background:var(--jaune);
  border-radius:20px 20px 0 0;
}

.ceh-arbre .lecteur__bouton{
  display:grid; place-items:center;
  width:44px; height:44px; padding:0;
  color:#fff; background:var(--magenta);
  border:0; border-radius:50%;
  cursor:pointer;
  transition:transform .2s var(--ease-pop), background .2s;
}
.ceh-arbre .lecteur__bouton:hover{ transform:scale(1.07); background:var(--violet); }
.ceh-arbre .lecteur__bouton svg{ width:22px; height:22px; fill:currentColor; }
.ceh-arbre .lecteur__attente{ animation:ceh-arbre-tourne .9s linear infinite; }
@keyframes ceh-arbre-tourne{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .ceh-arbre .lecteur__attente{ animation:none; } }

.ceh-arbre .lecteur__corps{ display:grid; grid-template-columns:minmax(0,max-content) minmax(0,1fr); column-gap:12px; align-items:center; min-width:0; }
.ceh-arbre .lecteur__texte, .ceh-arbre .lecteur__plus, .ceh-arbre .lecteur__erreur{ grid-column:1 / -1; }
.ceh-arbre .lecteur__plus{ justify-self:start; }

.ceh-arbre .lecteur__prenom{
  font-weight:300; font-size:19px; line-height:1.2;
  color:var(--magenta);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Le texte complet : sous-titre du vocal */
.ceh-arbre .lecteur__texte{
  margin:4px 0 0;
  padding:3px 10px;
  max-height:calc(2.5em + 6px); overflow:hidden;
  font-family:var(--manuscrit); font-weight:500;
  font-size:18px; line-height:1.25; color:var(--encre);
  background:rgba(255,255,255,.75);
  border-left:4px solid var(--jaune);
  border-radius:0 12px 12px 0;
}

/* Déplié : une vraie plage de lecture. Avec 9,6em (sept lignes), un texte de
   4 600 caractères se lisait par une fente ; il prend maintenant jusqu'à 60 %
   de la hauteur de la fenêtre, un cran plus gros, paragraphes conservés. */
.ceh-arbre .lecteur.est-deplie .lecteur__texte{
  max-height:min(60vh,30em); overflow-y:auto;
  padding:8px 14px;
  font-size:21px; line-height:1.32;
  white-space:pre-line;
  overscroll-behavior:contain;
}
.ceh-arbre .lecteur__plus{
  padding:4px 0 0; font-size:15px; font-weight:500;
  color:var(--violet); background:none; border:0;
  text-decoration:underline; cursor:pointer;
}
.ceh-arbre .lecteur__plus[hidden]{ display:none; }
.ceh-arbre .lecteur__plus:focus-visible{ outline:3px solid var(--magenta); outline-offset:2px; }

.ceh-arbre .lecteur__piste{ display:flex; align-items:center; gap:12px; }
.ceh-arbre .lecteur__barre{
  position:relative; flex:1;
  height:22px; cursor:pointer; touch-action:none;
  outline:none;
}
.ceh-arbre .lecteur__barre::before{
  content:""; position:absolute; left:0; right:0; top:9px; height:4px;
  background:var(--bord); border-radius:2px;
}
.ceh-arbre .lecteur__rempli{
  position:absolute; left:0; top:9px; height:4px; width:0;
  background:var(--magenta); border-radius:2px;
}
.ceh-arbre .lecteur__rempli::after{
  content:""; position:absolute; right:-7px; top:-5px;
  width:14px; height:14px; border-radius:50%;
  background:var(--violet); box-shadow:0 0 0 3px #fdfcf4;
}
.ceh-arbre .lecteur__barre:focus-visible{ outline:3px solid var(--magenta); outline-offset:3px; border-radius:6px; }
.ceh-arbre .lecteur__temps{
  font-size:12px; font-weight:500; font-variant-numeric:tabular-nums;
  color:var(--encre-pale); white-space:nowrap;
}
.ceh-arbre .lecteur__erreur{
  margin-top:8px; font-size:14px; color:var(--magenta);
}

.ceh-arbre .lecteur__fermer{
  width:30px; height:30px; padding:0; line-height:1;
  font-size:16px; font-family:inherit;
  color:var(--violet); background:var(--papier-alt);
  border:0; border-radius:50%;
  cursor:pointer;
  transition:transform .2s var(--ease-pop), background .2s, color .2s;
}
.ceh-arbre .lecteur__fermer:hover{ transform:rotate(90deg); background:var(--magenta); color:#fff; }

.ceh-arbre .lecteur__bouton:focus-visible,
.ceh-arbre .lecteur__fermer:focus-visible{ outline:3px solid var(--magenta); outline-offset:3px; }

@media (max-width:420px){
  .ceh-arbre .lecteur{ gap:8px; padding:14px 8px 8px; bottom:8px; }
  .ceh-arbre .lecteur__bouton{ width:40px; height:40px; }
}

/* Téléphone : le lecteur se lit à bout de bras, tout y passe un cran plus
   gros (le texte replié 18 → 21 px, déplié 21 → 24 px ; le temps, le prénom,
   « Tout lire » et la croix suivent) et la croix a la taille d'un doigt. */
@media (max-width:600px){
  /* Le prénom et la barre ne tiennent plus côte à côte à 390 px (la barre
     tombait à quelques pixels) : la barre passe sur sa propre ligne. */
  .ceh-arbre .lecteur__corps{ display:contents; }
  /* Corps « transparent » : prénom, barre et texte deviennent des cases du
     lecteur lui-même. Bouton, prénom et croix sur la première ligne ; la barre
     et le texte prennent ensuite toute la largeur du lecteur, au lieu de la
     colonne à droite du bouton (230 px sur 342, soit un tiers de perdu). */
  .ceh-arbre .lecteur__bouton, .ceh-arbre .lecteur__prenom, .ceh-arbre .lecteur__fermer{ grid-row:1; align-self:center; }
  .ceh-arbre .lecteur__prenom{ grid-column:2; }
  .ceh-arbre .lecteur__fermer{ grid-column:-2; }
  .ceh-arbre .lecteur__piste{ grid-column:1 / -1; }
  .ceh-arbre .lecteur.est-texte-seul .lecteur__prenom{ grid-column:1; }
  .ceh-arbre .lecteur__prenom{ font-size:22px; }
  .ceh-arbre .lecteur__temps{ font-size:15px; }
  .ceh-arbre .lecteur__texte{ font-size:21px; line-height:1.28; max-height:calc(3 * 1.28em + 6px); }
  .ceh-arbre .lecteur.est-deplie .lecteur__texte{ font-size:24px; line-height:1.34; max-height:min(62vh,30em); }
  .ceh-arbre .lecteur__plus{ font-size:17px; padding:8px 0 4px; }
  .ceh-arbre .lecteur__erreur{ font-size:16px; }
  .ceh-arbre .lecteur__fermer{ width:40px; height:40px; font-size:20px; }
}

/* =========================================================================
   5. LE FORMULAIRE DE DÉPÔT — <depot-temoignage>
   ========================================================================= */
.ceh-depot .depot{ padding:clamp(20px,4vw,36px) clamp(16px,4vw,36px); }
.ceh-depot h2, .ceh-depot fieldset, .ceh-depot legend,
.ceh-depot label, .ceh-depot input, .ceh-depot textarea{
  margin:0; padding:0; border:0; min-width:0;
  font:inherit; letter-spacing:normal; text-transform:none; color:inherit;
  background:none; box-shadow:none;
}
.ceh-depot [hidden]{ display:none !important; }

.ceh-depot .depot__formulaire, .ceh-depot .depot__merci{
  display:grid; gap:22px; max-width:560px; margin:0 auto;
}
.ceh-depot .depot__titre{
  font-weight:300; font-size:clamp(26px,5vw,32px); line-height:1.15;
  color:var(--magenta);
}
.ceh-depot .depot__intro{ margin-top:-12px; color:var(--encre-pale); }

/* Chaque étape : une fiche blanche à bandeau jaune, comme le lecteur */
.ceh-depot .depot__bloc{
  position:relative;
  display:grid; gap:10px;
  padding:26px 18px 20px;
  background:#fff;
  border-radius:var(--rayon);
  box-shadow:0 6px 22px rgba(40,47,54,.08);
}
.ceh-depot .depot__bloc::before{
  content:""; position:absolute; top:0; left:0; right:0; height:6px;
  background:var(--jaune); border-radius:var(--rayon) var(--rayon) 0 0;
}
.ceh-depot .depot__etape{
  float:left; width:100%;      /* sinon la légende chevauche le bord */
  display:flex; align-items:center; gap:10px;
  margin-bottom:4px;
  font-family:var(--manuscrit); font-weight:700; font-size:26px; line-height:1.1;
  color:var(--violet);
}
.ceh-depot .depot__etape span{
  display:grid; place-items:center;
  width:30px; height:30px; border-radius:50%;
  font-family:'Roboto',system-ui,sans-serif; font-size:15px; font-weight:700;
  color:var(--encre); background:var(--jaune);
}

/* -- le micro -- */
.ceh-depot .depot__micro{ display:flex; align-items:center; gap:18px 24px; flex-wrap:wrap; }
.ceh-depot .depot__enregistrer{
  display:flex; align-items:center; gap:22px;
  padding:0; color:var(--magenta); background:none; border:0;
  font-weight:500; font-size:18px;
  cursor:pointer;
}
.ceh-depot .depot__rond{
  --niveau:0;
  position:relative;
  display:grid; place-items:center;
  width:68px; height:68px; border-radius:50%;
  color:#fff; background:var(--magenta);
  transition:transform .2s var(--ease-pop), background .2s;
}
.ceh-depot .depot__rond svg{ width:30px; height:30px; fill:currentColor; }
/* La bague de niveau : invisible au repos, gonfle avec la voix */
.ceh-depot .depot__rond::after{
  content:""; position:absolute; inset:-6px; border-radius:50%;
  border:3px solid var(--jaune);
  opacity:0;
  transform:scale(calc(1 + var(--niveau) * .2));
  transition:transform .08s linear, opacity .2s;
}
.ceh-depot .depot__enregistrer:hover .depot__rond{ transform:scale(1.06); background:var(--violet); }
.ceh-depot .depot__enregistrer:focus-visible{ outline:none; }
.ceh-depot .depot__enregistrer:focus-visible .depot__rond{ outline:3px solid var(--magenta); outline-offset:6px; }
.ceh-depot.est-en-enregistrement .depot__rond::after{ opacity:1; }
.ceh-depot.est-en-enregistrement .depot__libelle{ color:var(--violet); }

.ceh-depot .depot__mesure{ flex:1; min-width:150px; }
.ceh-depot .depot__temps{
  font-family:var(--manuscrit); font-weight:600; font-size:24px; line-height:1.2;
  color:var(--encre-pale); font-variant-numeric:tabular-nums;
}
.ceh-depot .depot__temps span{ color:var(--encre); }
.ceh-depot .depot__jauge{ height:4px; margin-top:6px; background:var(--bord); border-radius:2px; overflow:hidden; }
.ceh-depot .depot__jauge span{ display:block; width:0; height:100%; background:var(--magenta); }

/* -- l'aperçu -- */
.ceh-depot .depot__apercu{ display:grid; gap:8px; }
.ceh-depot .depot__apercu audio{ width:100%; height:44px; }
.ceh-depot .depot__info{ font-size:14px; color:var(--encre-pale); overflow-wrap:anywhere; }

/* -- le fichier -- */
.ceh-depot .depot__choix{ display:grid; gap:8px; justify-items:start; }
.ceh-depot .depot__ou{
  font-family:var(--manuscrit); font-weight:600; font-size:20px; color:var(--encre-pale);
}
.ceh-depot .depot__fichier{ position:relative; cursor:pointer; }
/* Le vrai champ est masqué (mais focalisable) : c'est l'étiquette qui
   l'ouvre, au clic comme au toucher */
.ceh-depot .depot__fichier input{
  position:absolute; left:0; top:0; width:1px; height:1px; opacity:0;
  overflow:hidden; clip-path:inset(50%);
}
.ceh-depot .depot__fichier span,
.ceh-depot .depot__refaire,
.ceh-depot .depot__autre{
  display:inline-block;
  padding:10px 18px;
  font-weight:500; font-size:15px; line-height:1.3;
  color:var(--violet); background:var(--jaune-pale);
  border:1.5px solid var(--jaune-fonce); border-radius:999px;
  cursor:pointer;
  transition:background .2s, transform .2s var(--ease-pop);
}
.ceh-depot .depot__refaire{ justify-self:start; }
.ceh-depot .depot__fichier:hover span,
.ceh-depot .depot__refaire:hover,
.ceh-depot .depot__autre:hover{ background:var(--jaune); transform:translateY(-1px); }
.ceh-depot .depot__fichier input:focus-visible + span,
.ceh-depot .depot__refaire:focus-visible,
.ceh-depot .depot__autre:focus-visible{ outline:3px solid var(--magenta); outline-offset:3px; }

.ceh-depot .depot__aide{ font-size:14px; line-height:1.45; color:var(--encre-pale); }

/* -- les champs -- */
.ceh-depot .depot__champ{ margin-top:4px; font-weight:500; font-size:15px; }
.ceh-depot .depot__champ span{ font-weight:400; color:var(--encre-pale); }
.ceh-depot .depot__saisie{
  display:block; width:100%;
  padding:10px 14px;
  font-size:17px; line-height:1.4;
  background:var(--papier-alt);
  border:1.5px solid var(--bord); border-radius:12px;
  transition:border-color .2s, background .2s;
}
.ceh-depot textarea.depot__saisie{
  resize:vertical; min-height:110px;
  font-family:var(--manuscrit); font-weight:500; font-size:21px; line-height:1.3;
}
.ceh-depot .depot__saisie:focus{ outline:none; border-color:var(--magenta); background:#fff; }
.ceh-depot .depot__saisie[aria-invalid="true"]{ border-color:var(--magenta); }

.ceh-depot .depot__accord{
  display:flex; align-items:flex-start; gap:12px;
  margin-top:6px; font-size:15px; line-height:1.45;
  cursor:pointer;
}
.ceh-depot .depot__accord input{
  flex:none; width:22px; height:22px; margin-top:1px;
  accent-color:var(--magenta);
}
.ceh-depot .depot__accord input:focus-visible{ outline:3px solid var(--magenta); outline-offset:2px; }
.ceh-depot .depot__accord input[aria-invalid="true"]{ outline:2px solid var(--magenta); outline-offset:2px; }

/* Pot de miel : hors de l'écran, pas display:none (certains robots le
   reconnaissent) */
.ceh-depot .depot__pot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* -- l'envoi -- */
.ceh-depot .depot__envoyer{
  justify-self:center;
  padding:14px 30px;
  font-weight:500; font-size:17px;
  color:#fff; background:var(--magenta);
  border:0; border-radius:999px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(150,0,132,.25);
  transition:transform .2s var(--ease-pop), background .2s;
}
.ceh-depot .depot__envoyer:hover{ transform:translateY(-2px); background:var(--violet); }
.ceh-depot .depot__envoyer:focus-visible{ outline:3px solid var(--magenta); outline-offset:4px; }
.ceh-depot .depot__envoyer:disabled{ opacity:.7; cursor:progress; transform:none; }
.ceh-depot .depot__progres{ height:6px; margin-top:-10px; background:var(--bord); border-radius:3px; overflow:hidden; }
.ceh-depot .depot__progres span{ display:block; width:0; height:100%; background:var(--jaune-fonce); transition:width .2s; }
.ceh-depot .depot__message{ min-height:1.5em; text-align:center; font-size:15px; color:var(--encre-pale); }
.ceh-depot .depot__message.est-erreur{ color:var(--magenta); font-weight:500; }

/* -- merci -- */
.ceh-depot .depot__merci{ justify-items:center; text-align:center; padding:24px 0; outline:none; }
.ceh-depot .depot__merci-titre{
  font-family:var(--manuscrit); font-weight:700; font-size:44px; line-height:1;
  color:var(--magenta);
}

/* =========================================================================
   6. ACCESSIBILITÉ : on coupe tout le mouvement si l'OS le demande
   ========================================================================= */
@media (prefers-reduced-motion:reduce){
  .ceh-arbre, .ceh-arbre *,
  .ceh-arbre *::before,
  .ceh-arbre *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}
