/* ============================================================
   Signature visuelle de l'accueil — 25/11/2026
   Purement décoratif : aucune règle ne touche au formulaire
   ni au moteur. Pour l'enlever : retirer signature.css et
   signature.js de index.html.
   ============================================================ */

/* ── Lignes de relief (courbes de niveau) en fond ── */
body{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 600 600' fill='none' stroke='%23345245' stroke-opacity='.075' stroke-width='1.1'%3E%3Cpath d='M300 110c95 0 178 52 182 148s-72 168-178 172-192-58-192-156 92-164 188-164z'/%3E%3Cpath d='M300 150c74 0 137 42 140 110s-57 127-136 130-146-44-146-118 69-122 142-122z'/%3E%3Cpath d='M302 192c50 0 93 29 95 74s-39 85-91 87-99-29-99-79 46-82 95-82z'/%3E%3Cpath d='M304 234c27 0 50 17 51 42s-21 46-48 47-54-16-54-43 24-46 51-46z'/%3E%3Cpath d='M-20 520c120-42 205 12 322-18s222-82 318-42'/%3E%3Cpath d='M-20 562c124-40 212 20 330-10s208-72 310-30'/%3E%3Cpath d='M-20 50c104 32 184-18 262 12s120 6 170-20'/%3E%3Cpath d='M430 610c22-64 84-96 190-84'/%3E%3C/svg%3E");background-size:900px}
.engag,.zone,footer{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 600 600' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.1'%3E%3Cpath d='M300 110c95 0 178 52 182 148s-72 168-178 172-192-58-192-156 92-164 188-164z'/%3E%3Cpath d='M300 150c74 0 137 42 140 110s-57 127-136 130-146-44-146-118 69-122 142-122z'/%3E%3Cpath d='M302 192c50 0 93 29 95 74s-39 85-91 87-99-29-99-79 46-82 95-82z'/%3E%3Cpath d='M304 234c27 0 50 17 51 42s-21 46-48 47-54-16-54-43 24-46 51-46z'/%3E%3Cpath d='M-20 520c120-42 205 12 322-18s222-82 318-42'/%3E%3Cpath d='M-20 562c124-40 212 20 330-10s208-72 310-30'/%3E%3C/svg%3E");background-size:900px}

/* ── Hero cinéma ── */
.hero h1 span{font-style:italic;font-weight:600;padding-bottom:.08em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C60 6 140 3 297 9' fill='none' stroke='%23E9A07F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left 100%/100% .28em no-repeat}
.puces svg{stroke:#E9A07F}
@media(min-width:821px){
  .hero .wrap{min-height:720px}
  .hero h1{font-size:clamp(48px,6.2vw,84px);letter-spacing:-.02em;line-height:1}
  .hero::after{content:'';position:absolute;inset:0;z-index:0;background-image:inherit;background-size:cover;background-position:center 40%;animation:sig-kb 26s ease-out both}
  .hero::before{z-index:1}
  .hero .wrap{z-index:2}
}
@keyframes sig-kb{from{transform:scale(1.14)}to{transform:scale(1)}}

/* ── Ruban des communes ── */
.ruban{background:var(--vert-fonce);color:#F4F2ED;overflow:hidden;white-space:nowrap;padding:18px 0;border-top:1px solid rgba(255,255,255,.06)}
.ruban-piste{display:inline-flex;animation:sig-defile 60s linear infinite}
.ruban span{font-family:var(--disp);font-style:italic;font-weight:500;font-size:clamp(22px,3vw,34px);padding:0 22px;display:inline-flex;align-items:center;gap:44px}
.ruban span::after{content:'';width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9A07F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14-1 9-6 14-14 14z'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E") center/contain no-repeat}
@keyframes sig-defile{to{transform:translateX(-50%)}}

/* ── Collines entre les sections ── */
.engag,.zone,footer{position:relative}
.colline{position:absolute;left:0;right:0;top:-58px;height:60px;pointer-events:none;color:var(--vert-fonce)}
.zone>.colline{color:var(--vert)}
footer>.colline{color:var(--nuit)}
.colline svg{display:block;width:100%;height:100%}
/* ── Atouts du hero (ordinateur), 26/11 : filet fin + coches terre cuite claire ── */
.atouts{display:none}
@media(min-width:821px){
  .hero .atouts{display:flex;flex-direction:column;gap:16px;list-style:none;margin:34px 0 0;padding:30px 0 0;border-top:1px solid rgba(255,255,255,.2);max-width:560px}
  .hero .atouts li{display:flex;align-items:center;gap:16px;color:#fff;font:500 21px/1.3 var(--ui);text-shadow:0 1px 10px rgba(0,0,0,.35)}
  .hero .atouts li::before{content:'';flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#E9A07F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322372E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/17px no-repeat}
}
/* place réservée sous la section précédente : la colline ne chevauche plus les boutons (26/11) */
section:has(+ .engag)::after,section:has(+ .zone)::after,section:has(+ footer)::after{content:'';display:block;height:52px}

/* ── Titres de section ── */
.kicker::before{width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B95F3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14-1 9-6 14-14 14z'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E") center/contain no-repeat}
.engag .kicker::before,.zone .kicker::before{filter:brightness(1.5)}
@media(min-width:821px){.sec-titre{font-size:clamp(34px,4.4vw,58px);line-height:1.08}}

/* ── Cartes prestations ── */
.svc{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
@media(hover:hover){.svc:hover{transform:translateY(-6px);box-shadow:0 30px 60px -30px rgba(43,70,59,.5)}.svc:hover .ph img{transform:scale(1.07)}}
.svc h3{font-style:italic;font-weight:600}
.eng .ico svg{stroke:#E9A07F}
.regle .ico svg{stroke:var(--vert)}

/* ── Bande photo en parallaxe (ordinateur) ── */
@media(min-width:821px) and (hover:hover){.bande-photo{background-attachment:fixed}}
.bande-photo p em{font-style:italic}

/* ── Méthode : grands chiffres ── */
.etape .num{font-style:italic;font-weight:600;color:transparent;-webkit-text-stroke:1.4px var(--accent)}
@media(min-width:821px){.etape{grid-template-columns:90px 1fr}.etape .num{font-size:64px}}

/* ── Grande signature en pied de page ── */
/* la colline dépasse en haut, la signature est coupée en bas et sur les côtés */
footer{clip-path:inset(-70px 0 0 0);overflow-x:clip}
footer .wrap{position:relative;z-index:1}
footer::after{content:'Élagage 42';position:absolute;left:50%;bottom:-.22em;transform:translateX(-50%);font-family:var(--disp);font-style:italic;font-weight:600;font-size:clamp(64px,15vw,230px);white-space:nowrap;color:rgba(255,255,255,.045);pointer-events:none;line-height:1}

/* ── Apparition au défilement ── */
html.sig-anim .sig{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
html.sig-anim .sig.vu{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .hero::after,.ruban-piste{animation:none!important}
  html.sig-anim .sig{opacity:1;transform:none;transition:none}
  .bande-photo{background-attachment:scroll}
}

/* ── Avant / après : même présentation que le site de référence ──
   une transformation par ligne, numéro + titre au-dessus, les deux photos côte à côte,
   une flèche ronde entre les deux. Sur téléphone, les photos vont d'un bord à l'autre. */
.paires{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:44px!important;counter-reset:paire}
.paire{background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important;margin:0;display:flex;flex-direction:column;counter-increment:paire}
.paire figcaption{order:-1;display:flex!important;align-items:center;justify-content:flex-start!important;gap:16px;margin:0 0 14px;padding:0!important}
.paire figcaption::before{content:counter(paire,decimal-leading-zero);flex:0 0 auto;min-width:36px;height:36px;display:grid;place-items:center;font-family:var(--disp);font-style:italic;font-weight:600;font-size:16px;color:var(--accent);background:#EFE4D9;border-radius:10px;padding:0 10px}
.paire figcaption b{font-size:21px;line-height:1.15}
.paire figcaption span{display:none!important}
.paire .duo{position:relative;display:grid!important;grid-template-columns:1fr 1fr;gap:12px}
.paire .shot{border-radius:18px;overflow:hidden;background:#ddd}
.paire .shot img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:0!important}
.paire .tag{top:14px;left:14px;font-family:var(--ui);font-size:12.5px;font-weight:800;letter-spacing:.07em;padding:5px 12px;border-radius:99px}
/* étiquettes aux couleurs de la charte Élagage 42 */
.paire .tag.avant{background:var(--avant);color:#fff}
.paire .tag.apres{background:var(--apres);color:#fff}
.paire .duo::after{content:'';position:absolute;left:50%;top:50%;width:52px;height:52px;transform:translate(-50%,-50%);border-radius:50%;z-index:3;box-shadow:0 8px 20px rgba(0,0,0,.2);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23345245' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat}
@media(max-width:820px){
  .paires{gap:30px!important;margin:0 -16px}
  .paire figcaption{padding:0 16px!important}
  .paire figcaption b{font-size:18px}
  .paire .duo{gap:2px;background:#fff}
  .paire .shot{border-radius:0}
  .paire .tag{top:8px;left:8px;font-size:10.5px;padding:3px 8px}
  .paire .duo::after{width:28px;height:28px;background-size:14px}
}

/* ── Accueil sur téléphone : le formulaire ENTIER dans le premier écran ──
   (l'appel reste dans le bouton vert de l'en-tête, toujours visible) */
.ou-sep{display:none}
@media(max-width:820px){
  .hero{padding-top:34px!important}
  .hero .b-appel{display:none!important}
  .hero h1{font-size:29px;margin-bottom:8px}
  .accroche{font-size:18px;margin-bottom:12px}
  .hero .wrap{gap:12px;padding-bottom:20px}
  .form-card{padding:14px 12px 14px}
  .form-card .question{font-size:18px;margin:0 0 6px}
  .form-card .prog{margin:0 0 8px}
  .form-card .prog-piste{height:7px}
  .form-card .prog-txt{display:none}
  .form-card .consigne{font-size:14px;margin:0 0 10px}
  .form-card .consigne svg{width:17px;height:17px;flex-basis:17px}
  /* cases compactes : petite photo à gauche, texte à droite — les 5 tiennent à l'écran */
  .form-card .choix{gap:8px}
  .form-card .choix .tuile,.form-card .choix .tuile:has(img){flex-direction:row;align-items:center;gap:8px;padding:6px 26px 6px 6px!important;min-height:58px;text-align:left;overflow:hidden}
  .form-card .choix .tuile:has(img) img{width:44px;height:44px;border-radius:9px;flex:0 0 44px}
  .form-card .choix .tuile:has(img) span,.form-card .choix .tuile>span{display:block;padding:0;font-size:14px;line-height:1.2}
  .form-card .choix .tuile::after{width:20px;height:20px;top:50%!important;right:5px;transform:translateY(-50%)!important;background-size:12px}
  .form-card .choix .tuile:last-child:nth-child(odd){justify-content:center;padding-right:30px!important;text-align:center}
  .form-card .tuile small{font-size:12.5px}
}

/* ── Accueil sur ordinateur : simple, clair, tout le formulaire visible d'un coup ── */
@media(min-width:821px){
  .hero .wrap{min-height:0;padding-top:56px;padding-bottom:64px;gap:48px;align-items:start}
  .hero::before{background:linear-gradient(95deg,rgba(14,30,23,.88) 0%,rgba(14,30,23,.7) 45%,rgba(14,30,23,.3) 100%)}
  /* titre sur 2 lignes */
  .hero h1{font-size:clamp(36px,3.4vw,52px);line-height:1.08;margin:18px 0 22px}
  .hero h1 span{font-style:italic}
  .accroche{font-size:clamp(20px,1.7vw,24px);max-width:24ch;margin-bottom:24px}
  .hero .sous{display:none}
  /* l'appel, gros et visible tout de suite */
  .hero .b-appel{min-height:64px;padding:0 34px;font-size:20px;border-radius:14px;box-shadow:0 14px 30px -16px rgba(0,0,0,.7)}
  .hero .b-appel svg{color:var(--apres);width:22px;height:22px}
  /* garanties retirées du haut de page (jugées superflues, 25/11) : elles restent dans le formulaire et plus bas */
  .hero .puces{display:none}

  /* formulaire : titre, barre, question, puis TOUS les boutons */
  .form-card{display:flex;flex-direction:column;padding:28px 28px 24px}
  .form-card h2{order:1;font-size:26px;margin-bottom:12px}
  .form-card .fsous{display:none}
  .form-card .prog{order:2;margin:0 0 14px}
  .form-card .prog-txt{display:none}
  .form-card .question{order:3;margin:0 0 4px;font-size:20px}
  .form-card .consigne{order:4;margin:0 0 12px;font-size:14.5px}
  .form-card .choix{order:5}
  .form-card .confiance{order:6}
  .form-card .appel-alt{order:7}
  /* cartes verticales, 3 par ligne, photo en haut */
  .form-card .choix{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .form-card .choix .tuile{flex-direction:column;align-items:stretch;gap:0;padding:0!important;overflow:hidden;text-align:center;min-height:0}
  .form-card .choix .tuile img{width:100%;height:92px;border-radius:0}
  .form-card .choix .tuile>span{display:flex;align-items:center;justify-content:center;flex:1;padding:9px 8px 11px;font-size:15px;line-height:1.25}
  .form-card .choix .tuile::after{top:7px!important;right:7px;transform:none!important}
  /* « Demande personnalisée » = 6e case, comme les autres */
  .form-card .choix .tuile:last-child:nth-child(odd){grid-column:auto;border-style:dashed;justify-content:center;background:#F4EFE7}
  .form-card .choix .tuile:last-child>span{flex-direction:column;padding:14px 8px;gap:4px}
  .form-card .choix .tuile:last-child::before{content:'';display:block;width:30px;height:30px;margin:18px auto 0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B95F3D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16 5l3 3L8 19z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E") center/contain no-repeat}
  .form-card .choix .tuile:last-child::after{display:none}
}



/* ── Carte de la zone d'intervention ── */
.zone-plan{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:18px 10px 10px;margin:8px 0 28px}
.zone-svg{display:block;width:100%;max-width:720px;height:auto;margin:0 auto}
.zone-svg .z35{fill:rgba(185,95,61,.12);stroke:#E9A07F;stroke-width:2;stroke-dasharray:7 6}
.zone-svg .z15{fill:rgba(255,255,255,.05);stroke:rgba(255,255,255,.28);stroke-width:1.2;stroke-dasharray:3 5}
.zone-svg .zkm{fill:#E9A07F;font:700 12px var(--ui);letter-spacing:.08em}
.zone-svg .zp{fill:#fff;stroke:var(--vert);stroke-width:2}
.zone-svg .zq{fill:#E9A07F;stroke:#fff;stroke-width:3}
.zone-svg .zt{fill:#E8EEE9;font:600 17px var(--ui)}
.zone-svg .zqt{fill:#fff;font:italic 700 26px var(--disp)}
.zone-plan p{text-align:center;color:#C9D8CC;font-size:14px;margin-top:6px}
@media(max-width:820px){.zone-svg .zt{font-size:20px}.zone-svg .zqt{font-size:30px}.zone-svg .zkm{font-size:17px}.zone-plan{margin:4px -6px 20px;padding:12px 2px 6px}}
@media(max-width:820px){.communes li:nth-child(n+9){display:block!important}}

/* ── Haut de page : format exact demandé (titre gras, 2 pastilles, gros bouton d'appel) ── */
.hero h1{font-family:var(--ui)!important;font-weight:800!important;letter-spacing:-.025em}
.hero h1 span{font-style:normal!important;background:none!important;padding:0!important;color:#E9A07F}
.garanties{list-style:none;display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin:0 0 28px;padding:0}
.garanties li{display:inline-flex;align-items:center;gap:12px;background:#FBFAF7;color:var(--texte);border-radius:99px;padding:8px 24px 8px 8px;font:700 19px/1.2 var(--ui)}
.garanties li::before{content:'';flex:0 0 34px;width:34px;height:34px;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='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/17px no-repeat}
@media(min-width:821px){
  .hero h1{font-size:clamp(40px,4vw,58px);line-height:1.1;margin:10px 0 26px}
  .hero .b-appel{background:var(--accent)!important;color:#fff!important;min-height:76px;padding:0 44px;border-radius:16px;font:700 22px var(--ui);gap:14px;box-shadow:0 14px 30px -16px rgba(0,0,0,.6)}
  .hero .b-appel svg{color:#fff!important;width:24px;height:24px}
  .hero .b-appel:hover{background:var(--accent-clair)!important}
}
@media(max-width:820px){
  .hero h1{font-size:28px;line-height:1.12;margin-bottom:12px}
  .garanties{flex-direction:row;flex-wrap:wrap;gap:8px;margin:0 0 4px}
  .garanties li{font-size:14px;gap:7px;padding:5px 12px 5px 5px}
  .garanties li::before{flex-basis:24px;width:24px;height:24px;background-size:13px}
}

/* ── Téléphone : « Votre devis gratuit en 30 secondes » + grandes cartes lisibles (public âgé) ── */
@media(max-width:820px){
  .form-card h2{display:block!important;order:0;font-size:21px;line-height:1.2;margin:0 0 10px}
  .form-card .question{font-size:17px}
  .form-card .choix{gap:10px}
  .form-card .choix .tuile:has(img){flex-direction:column!important;align-items:stretch;gap:0;padding:0!important;text-align:center;min-height:0}
  .form-card .choix .tuile:has(img) img{width:100%!important;height:100px!important;border-radius:0!important;flex:none}
  .form-card .choix .tuile:has(img) span{display:flex!important;align-items:center;justify-content:center;min-height:52px;padding:8px 8px 10px!important;font-size:16px!important;line-height:1.2}
  .form-card .choix .tuile::after{width:28px;height:28px;top:8px!important;right:8px;transform:none!important;background-size:15px}
  .form-card .choix .tuile:last-child:nth-child(odd){padding:14px 40px!important;min-height:64px}
  .form-card .choix .tuile:last-child:nth-child(odd)::after{top:50%!important;transform:translateY(-50%)!important}
  .form-card .tuile:last-child span{font-size:16px}
  .form-card .tuile small{font-size:14px}
}

/* ── Menu déroulant « Prestations » (ordinateur) ── */
.deroulant{position:relative;display:flex;align-items:center}
.deroulant>.ancre{display:inline-flex;align-items:center;gap:6px}
.deroulant .chevron{transition:transform .2s}
.deroulant:hover .chevron,.deroulant:focus-within .chevron{transform:rotate(180deg)}
.deroulant::after{content:'';position:absolute;left:-20px;right:-20px;top:100%;height:18px}
.deroulant-menu{position:absolute;top:calc(100% + 14px);left:50%;width:360px;transform:translate(-50%,8px);background:#FBFAF7;border:1px solid var(--ligne);border-radius:18px;box-shadow:0 24px 50px -20px rgba(20,35,29,.45);padding:8px;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s;z-index:50}
.deroulant:hover .deroulant-menu,.deroulant:focus-within .deroulant-menu{opacity:1;visibility:visible;transform:translate(-50%,0)}
.deroulant-menu a{display:flex;align-items:center;gap:14px;padding:9px 10px;border-radius:12px;color:var(--texte)!important}
.deroulant-menu a:hover{background:#F0EAE0}
.deroulant-menu img{width:46px;height:46px;border-radius:10px;object-fit:cover;flex:0 0 46px}
.deroulant-menu b{display:block;font-family:var(--disp);font-size:16px;font-weight:700;color:var(--vert-fonce)}
.deroulant-menu small{display:block;font-size:13px;font-weight:500;color:var(--doux);margin-top:1px}
.deroulant-menu .tout{justify-content:center;margin-top:4px;border-top:1px solid var(--ligne);border-radius:0 0 12px 12px;padding:12px;font-size:14px;font-weight:700;color:var(--accent)!important}
@media(max-width:1020px){.deroulant{display:none}}
