/* Site JMJ — climatisation programmée (BAT-TH-122). Charte commune avec toiture.jmj.corsica.
   Polices auto-hébergées sous licence SIL Open Font License 1.1 (textes dans polices/OFL-*.txt), aucun appel à un service tiers. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(polices/BricolageGrotesque-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(polices/Figtree-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(polices/Figtree-italic.woff2) format("woff2"); }
@font-face { font-family: "Marianne"; src: url(fonts/Marianne-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Marianne"; src: url(fonts/Marianne-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --encre: #1f2827; --encre2: #2a3533; --sable: #f6efe3; --sable2: #efe4d2; --creme: #fffaf2;
  --soleil: #e8892b; --miel: #f6b04a; --lagon: #2e6b66; --lagon2: #24524e; --gris: #56615f;
  --titre: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; --texte: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1160px; --gouttiere: clamp(16px, 5vw, 48px); --rayon: 24px;
  --ombre: 0 1px 2px rgba(31, 40, 39, .06), 0 12px 32px -12px rgba(31, 40, 39, .22);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font: 400 17px/1.6 var(--texte); color: var(--encre); background: var(--sable); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
h3 { letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; font-weight: 600; color: var(--lagon); }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 8px 12px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 6px; }
.sur { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--lagon); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.sur.clair { color: var(--miel); }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--soleil); box-shadow: 0 0 0 4px rgba(232, 137, 43, .2); flex: none; }
.section-tete { max-width: 760px; margin-bottom: 44px; }
.section-tete h2 { font-size: clamp(32px, 4.4vw, 52px); }
.intro { font-size: 19px; color: var(--gris); margin-top: 18px; }

/* Encart France Rénov' officiel : 150 px de haut au minimum, pleine largeur sur mobile et tablette (charte Anah p. 25) */
.france-renov { display: block; background: #fff; color: #161616; text-decoration: none; border-bottom: 1px solid rgba(31, 40, 39, .12); position: relative; z-index: 6; }
.fr-image { display: block; height: 150px; width: auto; margin: 0 auto; }
.fr-html { display: none; }
@media (max-width: 1024px) {
  .fr-image { display: none; }
  .fr-html { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 150px; border-top: 3px solid #000; border-bottom: 3px solid #000;
    padding: 12px; text-align: left; font: 400 12.5px/1.35 "Marianne", Arial, sans-serif; }
  .fr-html img { height: 46px; width: auto; flex: none; }
  .fr-texte { max-width: 460px; min-width: 0; }
  .fr-texte b { white-space: nowrap; font-weight: 700; }
}
/* Téléphones : 5 lignes (motif « 5 lignes » de la charte p. 9), tailles proportionnelles à l'écran */
@media (max-width: 599px) {
  .fr-html { gap: 2.6vw; padding: 12px 3vw; font-size: min(12.5px, 3.3vw); }
  .fr-html img { height: min(46px, 10vw); }
  .fr-texte .l { display: block; }
  .fr-texte b.l { white-space: normal; overflow-wrap: anywhere; }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .fr-html { gap: 28px; font-size: 17px; }
  .fr-html img { height: 90px; }
}

/* En-tête collant, flouté au défilement */
.entete { position: sticky; top: 0; z-index: 5; transition: background .3s, box-shadow .3s; }
.entete.defile { background: rgba(246, 239, 227, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(31, 40, 39, .08); }
.entete-int { max-width: var(--largeur); margin: 0 auto; padding: 16px var(--gouttiere); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque span { font: 800 20px/1 var(--texte); letter-spacing: .1em; display: grid; gap: 3px; }
.marque small { font: 600 10.5px/1 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.entete nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font-weight: 600; font-size: 15px; }
.entete nav a:not(.bouton) { text-decoration: none; position: relative; }
.entete nav a:not(.bouton)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--soleil); transition: right .25s; }
.entete nav a:not(.bouton):hover::after { right: 0; }
@media (max-width: 760px) { .entete nav a:not(.bouton) { display: none; } .marque small { display: none; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 10px; background: var(--encre); color: var(--sable); text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px var(--texte); padding: 14px 24px; box-shadow: 0 0 0 0 var(--miel); transition: transform .2s, box-shadow .2s, background .2s; }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--miel); }
.bouton.petit { padding: 10px 18px; font-size: 14px; }
.bouton.grand { padding: 18px 30px; font-size: 17px; }
.bouton.miel { background: var(--miel); color: var(--encre); }
.bouton.miel:hover { box-shadow: 0 6px 0 0 var(--soleil); }
.bouton span { transition: transform .2s; }
.bouton:hover span { transform: translateX(4px); }
.lien { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* Accueil */
.hero { position: relative; overflow: hidden; padding-bottom: 56px; background: radial-gradient(1200px 560px at 85% 0%, rgba(246, 176, 74, .32), transparent 62%), var(--sable); }
.hero-int { max-width: var(--largeur); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--gouttiere) 0; display: grid; grid-template-columns: 1.1fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.8vw, 62px); }
.hero h1 em { display: block; }
.chapo { font-size: 19.5px; color: var(--gris); margin: 24px 0 34px; max-width: 32em; }
.appel { color: var(--soleil); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.ciel { position: relative; border-radius: 32px; background: linear-gradient(180deg, #fff6e4 0%, #fbe7c6 60%, #f3ddb9 100%); box-shadow: var(--ombre), inset 0 0 0 1px rgba(31, 40, 39, .06); padding: 18px 10px 0; }
.ciel::after { content: ""; position: absolute; inset: auto 24px -14px; height: 28px; border-radius: 50%; background: rgba(31, 40, 39, .14); filter: blur(14px); z-index: -1; }
.ciel .zero { font: 800 60px var(--titre); fill: var(--encre); letter-spacing: -2px; }
.ciel .rac { font: 700 12.5px var(--texte); letter-spacing: .1em; fill: var(--encre); }
.ciel .halo { transform-origin: 450px 110px; animation: pulse 6s ease-in-out infinite; }
.ciel .rayonnement { transform-origin: 450px 110px; animation: tourne 40s linear infinite; }
.ciel .palmier { transform-origin: 62px 420px; animation: brise 7s ease-in-out infinite; }
.ciel .helice { animation: tourne 1.6s linear infinite; }
.ciel .h1 { transform-origin: 236px 166px; }
.ciel .h2 { transform-origin: 274px 166px; animation-duration: 1.9s; }
.ciel .frais path { animation: brille 3s ease-in-out infinite; }
.ciel .frais path:nth-child(2) { animation-delay: 1s; }
.ciel .frais path:nth-child(3) { animation-delay: 2s; }
.ciel .aiguille-m { transform-origin: 356px 268px; animation: tourne 12s linear infinite; }
.ciel .aiguille-h { transform-origin: 356px 268px; animation: tourne 144s linear infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes brise { 50% { transform: rotate(-2deg); } }
@keyframes brille { 50% { opacity: .35; } }
.confiance { list-style: none; padding: 0; max-width: calc(var(--largeur) - 2 * var(--gouttiere)); width: calc(100% - 2 * var(--gouttiere)); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--creme); border-radius: var(--rayon); box-shadow: var(--ombre); }
.confiance li { display: flex; gap: 14px; align-items: center; padding: 22px 26px; font-size: 14.5px; color: var(--gris); }
.confiance li + li { border-left: 1px solid rgba(31, 40, 39, .09); }
.confiance b { display: block; color: var(--encre); font-size: 16px; }
.ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(232, 137, 43, .13); display: grid; place-items: center; }
.ico svg, .pastille-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--soleil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .hero-int { grid-template-columns: 1fr; }
  .hero-visuel { max-width: 560px; }
  .confiance { grid-template-columns: 1fr; }
  .confiance li + li { border-left: 0; border-top: 1px solid rgba(31, 40, 39, .09); }
}

/* Pied de page */
.pied { background: var(--encre); color: #c9d0ce; margin-top: 112px; padding: 64px var(--gouttiere) 40px; font-size: 14px; }
.pied-int { max-width: var(--largeur); margin: 0 auto 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.pied-marque { display: flex; gap: 16px; align-items: flex-start; }
.pied-marque img { flex: none; }
.pied-marque b { display: block; font: 800 20px var(--texte); letter-spacing: .1em; color: var(--sable); margin-bottom: 4px; }
.pied h3 { font: 700 12px var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--miel); margin-bottom: 12px; }
.pied a { text-decoration: none; line-height: 2; }
.pied a:hover { color: var(--sable); text-decoration: underline; }
.mentions, .identite { max-width: var(--largeur); margin: 0 auto; font-size: 12.5px; color: #9aa5a2; padding-top: 18px; border-top: 1px solid rgba(246, 239, 227, .1); }
.identite { border: 0; padding-top: 8px; }
@media (max-width: 760px) { .pied-int { grid-template-columns: 1fr; gap: 24px; } }

/* Bouton d'appel mobile */
.appel-mobile { display: none; }
@media (max-width: 760px) {
  /* Masqué = hors écran ET hors navigation clavier (visibility), pour ne jamais laisser un lien invisible focalisable */
  .appel-mobile { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 8; text-align: center; background: var(--miel); color: var(--encre); font-weight: 700; text-decoration: none;
    padding: 16px; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(31, 40, 39, .45); transform: translateY(140%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .appel-mobile.visible { transform: none; visibility: visible; transition: transform .3s, visibility 0s; }
  .pied { padding-bottom: 96px; }
}

/* Pages légales */
.page-legale { max-width: 780px; margin: 0 auto; padding: 48px var(--gouttiere) 0; }
.page-legale h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 28px; }
.page-legale h2 { font-size: 24px; margin: 34px 0 10px; }
.page-legale p, .page-legale li { color: var(--gris); margin-bottom: 8px; }
.page-legale ul { padding-left: 20px; }
.page-legale a { color: var(--lagon); }

/* Apparition au défilement */
.revele { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
