/* ==========================================================================
   HEtoiture — couche d'améliorations (audit du 25/10/2026)
   Chargée APRÈS style.css, theme.css et pro.css.
   Objectif : un seul jeu de couleurs, des contrastes conformes, une
   typographie plus affirmée et quelques détails de la maquette B.
   À terme, ces règles peuvent être fusionnées dans pro.css.
   ========================================================================== */

/* --- 1. Jetons : une seule source pour les couleurs ---------------------- */
:root{
  --nuit:#111e2b;
  --nuit-2:#1b2b3b;
  --ivoire:#f3efe7;
  --sable:#eae3d8;
  --carte:#fcf8f1;
  --ligne:#dcd3c6;
  --texte:#121a24;
  --texte-2:#53616b;
  --rouge:#ca302b;          /* fonds de boutons (texte blanc : 5,29:1) */
  --rouge-texte:#b3261e;    /* texte rouge sur fond clair (5,13:1 sur sable) */
  --rouge-clair:#ef8a8c;    /* texte rouge sur bleu nuit (6,98:1) */
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* Motif « ardoises » (SVG de 12 Ko) : pose rectangulaire, losange et rangs à bout rond.
     Volontairement discret : un détail qu'on découvre en regardant de près. */
  --ardoises:url(/images/motif-ardoises.svg?v=20261025) 0 0/336px 160px repeat;
  --frise:url(/images/frise-ardoises.svg?v=20261025) 0 0/336px 60px repeat-x;
}

/* --- 2. Typographie : une sans-serif + une serif d'accent ---------------- */
body,.full-review summary{font-family:var(--sans)}
h1 em,h2 em,.pro-hero h1 em,.hero h1 em{
  font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.01em;
}
.pro-hero h1 em{color:var(--rouge-clair)}
h2 em{color:var(--rouge-texte)}
.pro-featured h2 em{color:#c0cdd7}
.client-review blockquote{font-family:var(--serif)}

/* --- 3. Contrastes corrigés (rouge sur fond sable) ------------------------ */
.reviews-section .eyebrow,
.related-projects .eyebrow,
.service-material-panel .eyebrow,
.reviews-panel .pill{color:var(--rouge-texte)}
/* Sur fond sable, la couleur d’accent existante (#ca302b) passe sous 4,5:1 : on la fonce localement */
.reviews-section,.related-projects,.service-material-panel{--accent:var(--rouge-texte)}
.reviews-panel .pill{border-color:var(--rouge-texte)}
.reviews-panel .pill:hover{background:var(--rouge-texte);color:#fff}

/* --- 4. Détail de métier : motif d'ardoises sur les fonds bleu nuit ------ */
/* Limité à 3 zones pour rester un détail : réalisations de l'accueil, bandeau final, pied de page */
.pro-featured,footer{background:var(--ardoises),#0f1b27}
.cta-band{background:linear-gradient(115deg,rgba(17,30,43,0) 30%,rgba(27,48,65,.55)),var(--ardoises),#0f1b27}

/* Frise d'ardoises à bout rond : la transition entre la photo d'accueil et le bandeau d'engagements */
.trust-strip{background:var(--frise),var(--night,#111e2b);padding-top:calc(28px + 60px);border-top:0}
@media (max-width:800px){.trust-strip{padding-top:calc(27px + 60px)}}

/* Héros (ordinateur) : à gauche, sous le texte, les ardoises remplacent le voile sombre uni,
   puis se fondent dans la photo. Sur téléphone, le voile d'origine est conservé pour laisser voir la toiture. */
@media (min-width:801px){
  .pro-hero .hero-photo{z-index:0} /* contexte d'empilement : photo < ardoises < voile < texte */
  .pro-hero .hero-photo::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--ardoises),#0f1b27;
    -webkit-mask-image:linear-gradient(90deg,#000 0,#000 32%,rgba(0,0,0,.45) 48%,transparent 64%);
            mask-image:linear-gradient(90deg,#000 0,#000 32%,rgba(0,0,0,.45) 48%,transparent 64%)}
  .pro-hero .hero-photo::after{z-index:2;background:linear-gradient(90deg,rgba(7,19,33,.35) 0%,rgba(7,19,33,.5) 42%,rgba(7,19,33,.12) 100%),linear-gradient(0deg,#0713219e,transparent 30%)}
}

/* --- 5. Héros : sceau « Garantie 10 ans » --------------------------------- */
.pro-hero .hero-photo img{object-position:60% 60%}
.hero-seal{
  position:absolute;z-index:3;right:clamp(20px,6vw,96px);top:clamp(28px,8vh,96px);
  width:126px;height:126px;border-radius:50%;background:var(--nuit);
  box-shadow:0 14px 34px rgba(7,19,33,.35);color:#fff;
  display:grid;place-items:center;animation:sceau-flotte 6s ease-in-out infinite;
}
.hero-seal svg{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);animation:sceau-tourne 26s linear infinite}
.hero-seal text{fill:#fff;font:700 10.5px var(--sans);letter-spacing:2.4px}
.hero-seal span{position:relative;display:flex;flex-direction:column;align-items:center;line-height:1;font:600 11px var(--sans);letter-spacing:2px;text-transform:uppercase;color:var(--rouge-clair)}
.hero-seal strong{font:500 34px/1 var(--serif);letter-spacing:0;color:#fff;margin-bottom:2px}
@keyframes sceau-tourne{to{transform:rotate(360deg)}}
@keyframes sceau-flotte{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
/* Sur téléphone, le sceau gênerait les boutons : la garantie reste citée ailleurs (FAQ, savoir-faire) */
@media (max-width:800px){.hero-seal,.hero-garantie{display:none}}

/* --- 6. Section équipe : signature --------------------------------------- */
.team-signature{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:6px 0 26px;
  font:italic 400 clamp(26px,2.6vw,34px)/1.1 var(--serif);color:var(--nuit)}
.team-signature span{font:600 12px/1.4 var(--sans);letter-spacing:1.6px;text-transform:uppercase;color:var(--texte-2);
  padding-left:16px;border-left:1px solid var(--ligne)}

/* --- 7. Marques : traitement uniforme, couleurs au survol ---------------- */
/* Niveaux de gris (et non blanc pur) : les logos sur fond plein, comme VELUX, restent lisibles */
.brand-wheel .brand-window .brand-tile img{filter:grayscale(1) brightness(1.15) drop-shadow(0 6px 8px rgba(0,0,0,.25));opacity:.8}
.brand-wheel .brand-window .brand-tile.brand-1 img,.brand-wheel .brand-window .brand-tile.brand-4 img,.brand-wheel .brand-window .brand-tile.brand-8 img{filter:grayscale(1) brightness(1.9) drop-shadow(0 6px 8px rgba(0,0,0,.25))}
.brand-wheel .brand-window .brand-tile:hover img,.brand-wheel .brand-window .brand-tile:focus-visible img{opacity:1}
/* Polices : toujours une police de secours générique */
.reviews-panel h3{font-family:var(--sans)}

/* --- 8. Navigation : cibles plus confortables, en-tête mobile fixe ------- */
@media (min-width:801px){.nav a:not(.contact-link){padding-top:8px;padding-bottom:8px}}
/* Téléphone : en-tête FIXE en permanence (comme la barre du bas). Le mode « collant » (sticky)
   tressaute sur certains téléphones pendant le défilement au doigt. Même hauteur réservée en haut de page. */
@media (max-width:800px){
  body>header{position:fixed;top:0;left:0;right:0;z-index:95}
  body{padding-top:74px}
}
/* Téléphone : bandeaux du haut et du bas amincis pour laisser plus de place au contenu
   (en-tête 74 → 56 px, barre d'appel 69 → 54 px ; boutons toujours confortables au doigt) */
@media (max-width:800px){
  body>header{height:56px}
  body{padding-top:56px}
  html{scroll-padding-top:70px}
  .nav{top:56px;max-height:calc(100svh - 56px - 60px)}
  .logo img{width:168px!important}
  .menu{min-height:40px;padding-top:8px;padding-bottom:8px}
  .pro-hero{min-height:min(760px,calc(100svh - 56px))}
  .mobile-contact{padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom));gap:8px}
  .mobile-contact a{min-height:42px;padding-top:8px;padding-bottom:8px}
  body{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
}

/* --- 9. Formulaire ------------------------------------------------------- */
.hp-field{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.field-hint{margin:4px 0 14px;font-size:14px;line-height:1.5;color:var(--texte-2)}
.form-phone{margin:14px 0 0;font-size:15px;color:var(--texte-2)}
.form-phone a{color:var(--rouge-texte);font-weight:700;text-decoration:none}
.form-phone a:hover{text-decoration:underline}
/* La barre « Appeler / Demander un devis » n'a pas d'utilité sur la page de devis */
body:has(#project-form) .mobile-contact{display:none}
@media (max-width:800px){body:has(#project-form){padding-bottom:env(safe-area-inset-bottom)}}

/* --- 10. Animations : respect du réglage système ------------------------- */
@media (prefers-reduced-motion:reduce){
  .hero-seal,.hero-seal svg{animation:none}
}

/* --- 11. Sur-titre placé dans le H1 (référencement : métier + ville) ------
   Même rendu que l'ancien sur-titre, mais lu par Google comme partie du titre. */
h1 .h1-kicker{display:block;font-family:var(--sans);font-size:13px;font-weight:600;font-style:normal;letter-spacing:2px;line-height:1.6;text-transform:uppercase;margin:0 0 22px}
.page-intro h1:has(>.h1-kicker){margin-top:0}
.page-intro h1 .h1-kicker::before{content:'';display:inline-block;width:25px;height:2px;background:var(--accent);vertical-align:middle;margin-right:12px}
.pro-hero h1 .h1-kicker{color:#f1f4f7;line-height:1.7;margin-bottom:24px;animation:pro-rise .6s var(--ease) both}
@media (max-width:800px){.pro-hero h1 .h1-kicker{font-size:11px;margin-bottom:22px}}

/* --- 12. Zone d'intervention (accueil + contact) et carte de la page contact */
.service-area{background:var(--sable);border-top:1px solid var(--ligne)}
.service-area-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 12px;max-width:980px}
.service-area-list li{background:var(--carte);border:1px solid var(--ligne);border-radius:999px;padding:8px 16px;font-size:15px;font-weight:600;color:var(--nuit)}
.service-area-note{margin:26px 0 0;color:var(--texte-2)}
.contact-map{margin-top:26px;border:1px solid var(--ligne);border-radius:6px;overflow:hidden;background:var(--sable);aspect-ratio:4/3;max-height:340px;width:100%}
.contact-map iframe{display:block;width:100%;height:100%;border:0}
.contact-reviews{margin-top:18px}
.contact-directions{display:inline-block;vertical-align:middle;margin:18px 0 0 22px}
@media (max-width:800px){.service-area-list li{font-size:14px;padding:7px 13px}.contact-map{aspect-ratio:1/1}}
.reviews-panel .review-leave{display:inline-block;vertical-align:middle;margin:0 0 0 22px}
@media (max-width:800px){.reviews-panel .review-leave{display:table;margin:18px 0 0}}
@media (max-width:800px){.contact-directions{display:table;margin:18px 0 0}}

/* --- 13. Pages services (toiture plate, zinguerie, isolation, VELUX, réparation) */
.service-landing-materials{margin:34px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;color:var(--texte-2)}
.service-landing-link{display:inline-flex;align-items:center;gap:8px;margin-top:18px}
.service-landing-link svg{width:18px;height:18px}

/* --- 14. Plateforme : la photo de garde est un avant/après, on montre le résultat (moitié basse) */
.detail-cover img[src*="plateforme-9-agrandie"]{object-position:50% 100%}
