/* GREENTECHCOAT — Accueil signature. Palette de la charte, septembre 2026. */
.accueil-elegant {
    --green: #123f35;
    --green-dark: #10372e;
    --lime: #c5e663;
    --lime-hover: #d3ef8b;
    --soft: #f5f5ef;
    --text: #182723;
    --muted: #59675f;
    --font: "Inter", "Segoe UI", Arial, sans-serif;
    font-family: var(--font);
}
.accueil-elegant h1,
.accueil-elegant h2,
.accueil-elegant h3,
.accueil-elegant .brand-name { font-family: "Manrope", "Segoe UI", Arial, sans-serif; }
.accueil-elegant .button { border-radius: 10px; }

.roof-story { padding: 72px 0 56px; background: var(--soft); color: var(--green); }
.roof-story-inner { width: min(1440px, calc(100% - 96px)); }
.roof-section-label { display: flex; align-items: center; gap: 24px; margin-bottom: 34px; }
.roof-section-label > span:first-child { font-family: "Manrope", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -.025em; }
.roof-label-rule { flex: 1; height: 1px; background: #d9dfd5; }
.roof-section-index { flex-shrink: 0; font-size: 10px; font-weight: 600; letter-spacing: .17em; }
.roof-story-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.06fr) minmax(0, .55fr); gap: clamp(24px, 2.55vw, 42px); align-items: center; }
.roof-story-grid > * { min-width: 0; }

/* Deux images complètes alignées. La photo sombre recouvre la photo blanche. */
.roof-comparison { align-self: center; }
.roof-comparison-frame { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; border: 1px solid #d7ded3; border-radius: 24px; overflow: hidden; background: #d7ddd5; box-shadow: 0 20px 48px -30px #123f3566; touch-action: pan-y; user-select: none; }
.roof-comparison-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; pointer-events: none; }
.roof-image-after { z-index: 0; }
.roof-image-before { z-index: 1; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.roof-image-label { position: absolute; top: 18px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 11px; pointer-events: none; font-size: 11px; font-weight: 600; line-height: 1.4; box-shadow: 0 4px 16px #10291b10; transition: opacity .16s ease; }
.roof-image-label small { display: block; margin-bottom: 2px; font-size: 8px; font-weight: 600; letter-spacing: .14em; opacity: .76; }
.roof-label-before { left: 18px; color: #fff; background: #233c35f0; }
.roof-label-after { right: 18px; color: var(--green); background: #fffffff5; }
.roof-label-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #ffc690; }
.roof-label-after .roof-label-dot { background: #5c8e40; }
.roof-comparison[data-view="after"] .roof-label-before,
.roof-comparison[data-view="before"] .roof-label-after { opacity: 0; }
.roof-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--reveal); width: 2px; background: #fff; box-shadow: 0 0 8px #18272355; transform: translateX(-50%); pointer-events: none; }
.roof-handle { position: absolute; z-index: 4; top: 48%; left: clamp(29px, var(--reveal), calc(100% - 29px)); display: grid; place-items: center; width: 54px; height: 54px; border: 5px solid #ffffff; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 5px 22px #123f3555; transform: translate(-50%, -50%); pointer-events: none; transition: box-shadow .2s; }
.roof-handle svg { width: 32px; height: 24px; }
.roof-comparison-frame:hover .roof-handle { box-shadow: 0 0 0 5px #ffffff35, 0 5px 24px #123f3577; }
.roof-comparison-frame:focus-within { outline: 3px solid var(--green); outline-offset: 5px; }
.roof-drag-hint { position: absolute; z-index: 3; bottom: 18px; left: 50%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border: 1px solid #ffffff30; border-radius: 30px; background: #163d33ed; color: #fff; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 500; pointer-events: none; }
.roof-drag-hint svg { width: 17px; height: 17px; }
.roof-hint-desktop { opacity: .72; }
.roof-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.roof-range:disabled { cursor: default; }
.roof-view-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; margin-top: 17px; border: 1px solid #dee3d9; border-radius: 12px; background: #ffffff80; }
.roof-view-controls button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #506057; font-size: 11px; font-weight: 600; transition: background .18s, color .18s; }
.roof-view-controls button[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: 0 3px 8px #123f3512; }
.roof-view-controls button:hover:not([aria-pressed="true"]) { background: #e8eddf; color: var(--green); }
.roof-view-controls button svg { width: 16px; height: 16px; }
.roof-comparison figcaption { margin-top: 12px; color: #606c61; font-size: 10px; line-height: 1.65; text-align: center; }
.roof-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Une hiérarchie éditoriale, une action principale. */
.roof-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; color: #4a624f; font-size: 9px; line-height: 1.6; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.roof-eyebrow > span { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #8ca954; box-shadow: 0 0 0 4px #c5e66326; }
.roof-copy h2 { color: var(--green); font-size: clamp(31px, 2.8vw, 43px); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; text-wrap: pretty; }
.roof-copy h2 > span { display: block; }
.roof-copy h2 > .roof-heading-end { margin-top: 10px; color: #56743b; font-size: .64em; font-weight: 600; letter-spacing: -.035em; }
.roof-copy sup, .roof-performance sup { position: relative; top: -.05em; margin-left: .1em; font-size: .48em; line-height: 0; }
.roof-copy sup a { padding: 3px; }
.roof-copy .roof-description { margin-top: 23px; color: #55655b; font-size: 13px; line-height: 1.85; }
.roof-description strong { font-weight: 600; color: #263f34; }
.roof-benefit-list { display: grid; gap: 12px; margin-top: 23px; }
.roof-benefit-list li { display: flex; align-items: start; gap: 10px; color: #2b473a; font-size: 12px; line-height: 1.7; font-weight: 500; }
.roof-benefit-list svg { width: 20px; height: 20px; padding: 2px; flex-shrink: 0; margin-top: 0; color: var(--green); background: #e5edd5; border-radius: 50%; }
.roof-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 18px; margin-top: 27px; padding-top: 22px; border-top: 1px solid #d8dfd1; }
.roof-cta > p { width: 100%; color: var(--green); font-size: 12px; font-weight: 600; }
.roof-primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 13px 19px; border-radius: 10px; background: var(--lime); color: var(--green-dark); font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.roof-primary-button:hover { background: #d1ed85; transform: translateY(-2px); }
.roof-primary-button svg { width: 20px; height: 20px; }
.roof-secondary-link { display: inline-flex; align-items: center; gap: 4px; padding-block: 8px; font-size: 10px; font-weight: 600; }
.roof-secondary-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.roof-secondary-link svg { width: 15px; height: 15px; }

/* Les trois bénéfices sélectionnés sur le croquis. */
.roof-performance { position: relative; padding: 16px 23px 25px; border: 1px solid #214f40; border-radius: 22px; background: #123f35; color: #fff; box-shadow: 0 22px 40px -28px #123f3555; }
.roof-performance-brand { padding-bottom: 22px; }
.roof-performance-brand img { width: 100%; height: 127px; object-fit: cover; object-position: 50% 58%; }
.roof-performance-brand p { color: #cddbc8; font-size: 9px; font-weight: 500; text-align: center; }
.roof-performance-list { display: grid; }
.roof-performance-list > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 13px; align-items: start; padding-block: 23px; border-top: 1px solid #ffffff26; }
.roof-performance-list > li:last-child { padding-bottom: 0; }
.roof-performance-icon { width: 28px; height: 30px; margin-top: 2px; color: var(--lime); }
.roof-performance-kicker { display: block; margin-bottom: 4px; color: #d3e0c9; font-size: 9px; line-height: 1.5; }
.roof-performance-temperature strong { display: block; white-space: nowrap; font-family: "Manrope", sans-serif; font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -.055em; color: #d5ed99; }
.roof-performance-temperature strong > span { font-size: .62em; }
.roof-performance-list h3 { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.55; letter-spacing: -.025em; }
.roof-performance-list p { margin-top: 7px; color: #c1d3c3; font-size: 10px; line-height: 1.7; }
.roof-performance-temperature p { margin-top: 4px; }
.roof-performance :focus-visible { outline-color: var(--lime); }

.roof-performance-details { max-width: 960px; margin: 32px auto 0; color: #637060; }
.roof-performance-details summary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px; list-style: none; cursor: pointer; font-size: 10px; line-height: 1.7; }
.roof-performance-details summary::-webkit-details-marker { display: none; }
.roof-performance-details summary svg { flex-shrink: 0; width: 15px; height: 15px; transition: transform .2s; }
.roof-performance-details[open] summary svg { transform: rotate(180deg); }
.roof-performance-details-content { display: grid; gap: 10px; padding: 20px; margin-top: 12px; border: 1px solid #dce2d4; border-radius: 12px; background: #ffffff75; }
.roof-performance-details-content p { color: #56634f; font-size: 11px; line-height: 1.8; }
.roof-performance-details-content a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1500px) {
    .roof-copy .roof-description { font-size: 14px; }
    .roof-benefit-list li { font-size: 13px; }
    .roof-performance { padding-inline: 27px; }
    .roof-performance-brand img { height: 137px; }
    .roof-performance-list > li { padding-block: 27px; }
    .roof-performance-list h3 { font-size: 16px; }
    .roof-performance-list p { font-size: 11px; }
}
@media (max-width: 1200px) {
    .roof-story-inner { width: calc(100% - 64px); }
    .roof-story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
    .roof-copy h2 { font-size: clamp(33px, 3.6vw, 42px); }
    .roof-performance { grid-column: 1 / -1; display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 30px; padding: 22px 30px; }
    .roof-performance-brand { padding: 0; align-self: center; }
    .roof-performance-brand img { height: 111px; }
    .roof-performance-brand p { font-size: 8px; }
    .roof-performance-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .roof-performance-list > li { grid-template-columns: 1fr; gap: 12px; border-top: 0; border-left: 1px solid #ffffff26; padding: 10px 20px; }
    .roof-performance-list > li:last-child { padding-bottom: 10px; }
    .roof-performance-list h3 { font-size: 14px; }
    .roof-performance-list p { font-size: 10px; }
}
@media (max-width: 760px) {
    .roof-story { padding-block: 45px 34px; }
    .roof-story-inner { width: calc(100% - 40px); }
    .roof-section-label { gap: 16px; margin-bottom: 25px; }
    .roof-section-label > span:first-child { max-width: 250px; font-size: 14px; }
    .roof-section-index { display: none; }
    .roof-story-grid { grid-template-columns: 1fr; gap: 32px; }
    .roof-comparison { width: 100%; max-width: 570px; margin-inline: auto; }
    .roof-comparison-frame { border-radius: 20px; }
    .roof-copy { max-width: 570px; margin-inline: auto; width: 100%; }
    .roof-copy h2 { max-width: 520px; font-size: clamp(33px, 5.8vw, 44px); }
    .roof-copy .roof-description { font-size: 14px; line-height: 1.8; }
    .roof-benefit-list li { font-size: 13px; }
    .roof-eyebrow { font-size: 9px; margin-bottom: 14px; }
    .roof-primary-button { font-size: 13px; }
    .roof-secondary-link { font-size: 11px; }
    .roof-performance { grid-column: auto; width: 100%; max-width: 570px; margin-inline: auto; display: block; padding: 21px 24px 25px; border-radius: 20px; }
    .roof-performance-brand { display: flex; align-items: center; justify-content: center; gap: 16px; padding-bottom: 16px; }
    .roof-performance-brand img { flex-shrink: 0; width: 115px; height: 91px; }
    .roof-performance-brand p { font-size: 11px; max-width: 130px; text-align: left; }
    .roof-performance-list { grid-template-columns: 1fr; }
    .roof-performance-list > li { grid-template-columns: 36px minmax(0, 1fr); gap: 18px; border-left: 0; border-top: 1px solid #ffffff26; padding: 22px 4px; }
    .roof-performance-list > li:last-child { padding-bottom: 0; }
    .roof-performance-icon { width: 32px; height: 34px; margin-top: 4px; }
    .roof-performance-list h3 { font-size: 17px; }
    .roof-performance-list h3 br, .roof-performance-list p br { display: none; }
    .roof-performance-list h3 br::after, .roof-performance-list p br::after { content: " "; }
    .roof-performance-list p { font-size: 12px; }
    .roof-performance-kicker { font-size: 11px; }
    .roof-performance-temperature strong { font-size: 42px; }
    .roof-performance-details { margin-top: 24px; }
}
@media (max-width: 390px) {
    .roof-story-inner { width: calc(100% - 32px); }
    .roof-image-label { top: 12px; padding: 8px 10px; gap: 6px; font-size: 10px; border-radius: 9px; }
    .roof-label-before { left: 12px; }
    .roof-label-after { right: 12px; }
    .roof-hint-desktop { display: none; }
    .roof-copy h2 { font-size: 32px; }
    .roof-cta { gap: 14px; }
    .roof-view-controls button { padding-inline: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .accueil-elegant *, .accueil-elegant *::before, .accueil-elegant *::after { animation: none !important; transition: none !important; }
}
