/*
Theme Name: Rêve Habitat
Theme URI: https://reve-habitat.com
Author: Rêve Habitat
Description: Thème custom moderne pour Rêve Habitat — couvreur professionnel Côtes-d'Armor (22). SEO-first, conversion-oriented.
Version: 2.0.0
License: GPL-2.0-or-later
Text Domain: reve-habitat
*/

/* === FONTS (self-hosted Satoshi) === */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Variable.ttf') format('truetype-variations');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-VariableItalic.ttf') format('truetype-variations');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

/* === DESIGN TOKENS === */
:root {
    --c-ink:        #0b0d0f;
    --c-ink-2:      #1a1d21;
    --c-text:       #2b2f35;
    --c-muted:      #6b7178;
    --c-line:       #e4e6ea;
    --c-bg:         #ffffff;
    --c-bg-alt:     #f6f5f2;
    --c-bg-dark:    #0f1114;
    --c-accent:     #c9533b;       /* terre-cuite */
    --c-accent-2:   #a23e2a;
    --c-gold:       #b8925c;
    --c-success:    #1e8049;

    --ff-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ff-display: 'Satoshi', sans-serif;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 34px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.06);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.12);

    --container: 1240px;
    --header-h: 84px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; padding: 0; }

/* === TYPE === */
h1, h2, h3, h4 {
    font-family: var(--ff-display);
    color: var(--c-ink);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.3; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--c-accent);
    border-radius: 2px;
}
.lead {
    font-size: 1.1rem;
    color: var(--c-muted);
    max-width: 62ch;
}

/* === LAYOUT === */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section.dense { padding: 64px 0; }
section.dark { background: var(--c-bg-dark); color: #d5d7db; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.alt { background: var(--c-bg-alt); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(201, 83, 59, 0.6);
}
.btn-primary:hover { background: var(--c-accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(201, 83, 59, 0.7); }
.btn-dark {
    background: var(--c-ink);
    color: #fff;
}
.btn-dark:hover { background: var(--c-ink-2); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: var(--c-ink);
    border: 1.5px solid var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-ink); }
.btn-phone {
    background: var(--c-success);
    color: #fff;
    padding: 18px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 28px -10px rgba(30, 128, 73, 0.6);
}
.btn-phone:hover { background: #156638; transform: translateY(-2px) scale(1.02); }
.btn-phone .ping {
    position: relative; display: inline-flex; width: 9px; height: 9px;
}
.btn-phone .ping::before, .btn-phone .ping::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #7ee0a3;
}
.btn-phone .ping::after { animation: ping 1.6s var(--ease) infinite; }
@keyframes ping {
    0% { transform: scale(1); opacity: 0.9; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #fff; padding: 2px; box-shadow: var(--shadow-sm); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-size: 1.05rem; }
.brand-name span { font-size: 0.72rem; color: var(--c-muted); font-weight: 500; margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--c-text);
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    background: var(--c-ink);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.header-phone:hover { background: var(--c-accent); transform: translateY(-1px); }
.header-phone svg { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero-section { padding: 48px 0 60px; }
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
}
.hero-content { position: relative; z-index: 2; padding-right: 20px; }
.hero-content h1 span.accent { color: var(--c-accent); }
.hero-content .lead { margin-top: 22px; font-size: 1.18rem; line-height: 1.6; }
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 22px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--c-text); }
.trust-item svg { width: 18px; height: 18px; color: var(--c-success); flex-shrink: 0; }
.hero-visual {
    position: relative;
    min-height: 560px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-bg-alt), #e8e6e1);
}
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-visual::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.4));
}
.hero-badge {
    position: absolute;
    z-index: 3;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-badge.top { top: 26px; right: 26px; }
.hero-badge.bottom { bottom: 26px; left: 26px; }
.hero-badge .dot { width: 10px; height: 10px; background: var(--c-success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(30, 128, 73, 0.2); }
.hero-badge strong { display: block; font-size: 0.95rem; color: var(--c-ink); }
.hero-badge small { font-size: 0.78rem; color: var(--c-muted); }
.hero-rating { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-ink); }
.hero-rating .stars { color: var(--c-gold); letter-spacing: 2px; }

/* === STATS STRIP === */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 36px;
    border-radius: var(--r-xl);
    background: var(--c-ink);
    color: #fff;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.stats .stat { text-align: center; padding: 12px; border-right: 1px solid rgba(255,255,255,0.1); }
.stats .stat:last-child { border-right: 0; }
.stats .stat b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.stats .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* === SERVICES === */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    padding: 30px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--c-accent);
    transition: width 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-num { font-size: 0.8rem; color: var(--c-muted); font-weight: 700; letter-spacing: 0.12em; margin-bottom: 14px; }
.service-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--c-bg-alt);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--c-accent);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 18px; flex: 1; }
.service-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-ink); font-weight: 600; font-size: 0.9rem;
    margin-top: auto;
}
.service-link::after { content: "→"; transition: transform 0.2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* === URGENCE BANNER === */
.urgence-banner {
    background:
        linear-gradient(95deg, rgba(11,13,15,0.95) 0%, rgba(26,29,33,0.85) 60%, rgba(26,29,33,0.65) 100%),
        url('images/reparation-urgence-fuite.webp') center right / cover no-repeat,
        linear-gradient(95deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
    border-radius: var(--r-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.6fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.urgence-banner::before {
    content: "";
    position: absolute;
    right: -100px; top: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201, 83, 59, 0.35) 0%, transparent 70%);
    pointer-events: none;
}
.urgence-banner h2 { color: #fff; margin-bottom: 10px; position: relative; }
.urgence-banner p { color: rgba(255,255,255,0.75); max-width: 48ch; position: relative; }
.urgence-banner .urgence-pulse {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6d4d;
    margin-bottom: 16px;
}
.urgence-banner .urgence-pulse::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6d4d;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* === PROJECTS === */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project {
    grid-column: span 6;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--c-bg-alt);
    cursor: pointer;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project:nth-child(1) { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; }
.project:nth-child(3) { grid-column: span 12; aspect-ratio: 21/9; }
.project-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
    color: #fff;
}
.project-info h3 { color: #fff; margin-bottom: 6px; max-width: 40ch; }
.project-info p { color: rgba(255,255,255,0.8); font-size: 0.92rem; max-width: 60ch; }
.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* === ZONES === */
.zones { background: var(--c-bg-alt); }
.zones-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.zones-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.zones-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.98rem; color: var(--c-text); padding: 8px 0;
}
.zones-list li::before { content: "◆"; color: var(--c-accent); font-size: 0.7rem; }

/* === AVIS === */
.avis.dark { background: var(--c-ink); }
.avis-head { text-align: center; max-width: 60ch; margin: 0 auto 50px; }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.avis-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    padding: 32px;
}
.avis-card .stars { color: var(--c-gold); letter-spacing: 2px; margin-bottom: 16px; font-size: 1.1rem; }
.avis-card blockquote { font-size: 1.05rem; line-height: 1.6; color: #e5e7eb; margin-bottom: 22px; }
.avis-card blockquote::before { content: "“"; font-size: 3rem; font-family: Georgia, serif; color: var(--c-accent); line-height: 0; display: block; margin-bottom: 18px; }
.avis-card cite { display: flex; align-items: center; gap: 12px; font-style: normal; }
.avis-card cite .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--c-accent), var(--c-gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }
.avis-card cite b { color: #fff; display: block; font-size: 0.95rem; }
.avis-card cite small { color: rgba(255,255,255,0.5); font-size: 0.82rem; }

/* === FAQ === */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
.faq-list details {
    border-bottom: 1px solid var(--c-line);
    padding: 22px 0;
}
.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--c-ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--c-bg-alt);
    font-size: 1.4rem; color: var(--c-ink);
    transition: transform 0.3s, background 0.3s;
    flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--c-accent); color: #fff; }
.faq-list details p { margin-top: 14px; color: var(--c-muted); font-size: 0.97rem; line-height: 1.7; max-width: 68ch; }

/* === CONTACT / FINAL CTA === */
.final-cta {
    background: var(--c-ink);
    color: #fff;
    border-radius: var(--r-xl);
    padding: 70px 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute;
    left: -120px; bottom: -120px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 83, 59, 0.3) 0%, transparent 70%);
}
.final-cta h2 { color: #fff; position: relative; }
.final-cta p { color: rgba(255,255,255,0.7); margin-top: 16px; position: relative; }
.final-cta .ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; }
.final-cta .ctas .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.final-cta .ctas .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.contact-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-lg);
    padding: 30px;
    position: relative;
}
.contact-card .ci { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.contact-card .ci:last-child { border-bottom: 0; }
.contact-card .ci .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .ci .icon svg { width: 18px; height: 18px; color: var(--c-accent); }
.contact-card .ci small { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-card .ci b { color: #fff; font-size: 1.02rem; }

/* === FOOTER === */
.site-footer { background: #0a0b0d; color: #9aa0a7; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand img { background: #fff; }
.site-footer .about-text { font-size: 0.92rem; line-height: 1.6; max-width: 36ch; }
.site-footer ul li { padding: 6px 0; }
.site-footer ul a { font-size: 0.92rem; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.social a:hover { background: var(--c-accent); color: #fff; }
.social svg { width: 16px; height: 16px; }

/* === FLOATING CALL BUTTON === */
.call-fab {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 95;
    background: var(--c-success);
    color: #fff;
    padding: 14px 22px 14px 18px;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700;
    box-shadow: 0 18px 40px -12px rgba(30, 128, 73, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}
.call-fab:hover { transform: translateY(-2px) scale(1.03); }
.call-fab svg { width: 20px; height: 20px; }
.call-fab .ping-dot { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: #ff6d4d; border: 2px solid #fff; }
.call-fab .ping-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ff6d4d; animation: ping-fab 1.6s var(--ease) infinite; }
@keyframes ping-fab {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* === BREADCRUMBS === */
.breadcrumbs { font-size: 0.85rem; color: var(--c-muted); padding: 18px 0; }
.breadcrumbs a { color: var(--c-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--c-ink); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* === LANNION PAGE === */
.landing-hero {
    padding: 70px 0 60px;
    background: linear-gradient(180deg, var(--c-bg-alt), #fff);
}
.landing-hero h1 { margin-bottom: 22px; }
.landing-hero .lead { margin-bottom: 32px; }
.landing-hero .hero-ctas { margin-bottom: 40px; }
.local-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.local-grid .sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.local-aside {
    background: var(--c-ink);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 32px;
}
.local-aside h3 { color: #fff; margin-bottom: 14px; }
.local-aside .btn-phone { width: 100%; justify-content: center; margin-top: 18px; }
.local-aside ul li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.local-aside ul li:last-child { border-bottom: 0; }
.local-aside ul li::before { content: "✓"; color: #7ee0a3; font-weight: 700; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 40px; margin-bottom: 18px; }
.prose h3 { margin-top: 26px; margin-bottom: 12px; font-size: 1.2rem; }
.prose p { margin-bottom: 16px; color: var(--c-text); }
.prose ul { margin: 16px 0; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--c-text); }
.prose ul li::before { content: "◆"; position: absolute; left: 0; color: var(--c-accent); top: 3px; font-size: 0.8rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root { --header-h: 64px; }
    section { padding: 72px 0; }
    .hero-section { padding: 24px 0 48px; }

    /* Hero : photo AVANT le texte sur mobile (plus visuel) */
    .hero { grid-template-columns: 1fr; gap: 36px; }
    .hero-content { padding-right: 0; order: 2; }
    .hero-visual { min-height: 420px; order: 1; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px; }
    .stats .stat { border-right: 0; }
    .services-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .urgence-banner { grid-template-columns: 1fr; padding: 36px; }
    .projects-grid .project { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
    .zones-grid { grid-template-columns: 1fr; gap: 40px; }
    .avis-grid { grid-template-columns: 1fr; }
    .faq-wrap { grid-template-columns: 1fr; gap: 30px; }
    .final-cta { grid-template-columns: 1fr; padding: 48px 28px; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .local-grid { grid-template-columns: 1fr; }
    .local-grid .sticky { position: static; }

    /* Header mobile : burger + téléphone icône (on garde le push-to-call visible) */
    .site-header .wrap { gap: 10px; justify-content: space-between; }
    .main-nav { display: none; }
    .header-phone {
        padding: 10px 14px;
        font-size: 0.92rem;
        margin-left: auto;
    }
    .header-phone span { display: none; }
    .header-phone svg { width: 18px; height: 18px; }
    .burger { display: flex; }

    /* Mobile nav full-screen overlay */
    .main-nav.open {
        display: flex; position: fixed; inset: var(--header-h) 0 0 0;
        background: #fff; flex-direction: column; padding: 24px 20px 100px;
        gap: 2px; overflow-y: auto; z-index: 99;
        animation: navIn 0.25s var(--ease);
    }
    .main-nav.open a {
        padding: 18px 20px; font-size: 1.1rem; font-weight: 600;
        border-radius: 12px; background: var(--c-bg-alt);
    }
    @keyframes navIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: none; }
    }
}

@media (max-width: 640px) {
    :root { --header-h: 60px; }
    body { font-size: 16px; }
    section { padding: 64px 0; }
    .wrap { padding: 0 18px; }

    /* Hero : titre GROS, photo visuelle en haut */
    h1 { font-size: clamp(2.6rem, 9.5vw, 3.6rem) !important; letter-spacing: -0.035em; }
    h2 { font-size: clamp(1.85rem, 6.5vw, 2.4rem); }
    .eyebrow { font-size: 0.72rem; }
    .lead { font-size: 1.02rem; }

    .hero-section { padding: 18px 0 40px; }
    .hero { gap: 28px; }
    .hero-visual {
        min-height: 380px;
        border-radius: var(--r-lg);
        margin: 0 -4px;
    }
    .hero-badge.top { top: 16px; right: 16px; padding: 12px 16px; }
    .hero-badge.bottom { bottom: 16px; left: 16px; padding: 12px 16px; }
    .hero-badge strong { font-size: 0.85rem; }
    .hero-badge small { font-size: 0.72rem; }
    .hero-content .lead { font-size: 1.05rem; margin-top: 18px; }

    .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
    .hero-ctas .btn { justify-content: center; padding: 18px 22px; }
    .hero-ctas .btn-phone { padding: 20px 24px; font-size: 1.05rem; }

    .hero-trust {
        margin-top: 32px; gap: 10px;
        padding: 18px; border-radius: var(--r-md);
        background: var(--c-bg-alt);
        flex-direction: column; align-items: flex-start;
    }
    .hero-trust .trust-item { font-size: 0.9rem; }

    /* Stats strip */
    .stats { grid-template-columns: repeat(2, 1fr); gap: 4px 18px; padding: 24px 20px; margin-top: 0; border-radius: var(--r-lg); }
    .stats .stat { padding: 10px 6px; }
    .stats .stat b { font-size: 2rem; }
    .stats .stat span { font-size: 0.78rem; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 26px 22px; }
    .service-card p { font-size: 0.97rem; }

    /* Urgence */
    .urgence-banner { padding: 32px 24px; gap: 22px; text-align: left; }
    .urgence-banner h2 { font-size: 1.7rem; }
    .urgence-banner .btn-phone { width: 100%; justify-content: center; }

    /* Projets */
    .projects-grid { gap: 14px; }
    .project-info { padding: 20px; }
    .project-info h3 { font-size: 1.15rem; }
    .project-info p { font-size: 0.88rem; }

    /* Zones */
    .zones-list { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
    .zones-list li { font-size: 0.92rem; padding: 6px 0; }

    /* Avis */
    .avis-head { margin-bottom: 36px; }
    .avis-grid { gap: 14px; }
    .avis-card { padding: 26px 22px; }
    .avis-card blockquote { font-size: 1rem; }

    /* FAQ */
    .faq-list summary { font-size: 1rem; gap: 14px; }
    .faq-list summary::after { width: 28px; height: 28px; font-size: 1.2rem; }
    .faq-list details { padding: 18px 0; }

    /* Contact final */
    .final-cta { padding: 40px 22px; border-radius: var(--r-lg); }
    .final-cta h2 { font-size: 1.8rem; }
    .final-cta .ctas { flex-direction: column; align-items: stretch; gap: 10px; }
    .final-cta .ctas .btn { justify-content: center; }
    .contact-card { padding: 24px 20px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 34px; margin-bottom: 40px; }
    .site-footer { padding: 56px 0 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; font-size: 0.78rem; }

    /* FAB appel mobile : plus gros, pouce-friendly */
    .call-fab {
        bottom: 16px; right: 16px;
        padding: 16px 22px 16px 18px;
        font-size: 1rem;
        box-shadow: 0 20px 45px -10px rgba(30,128,73,0.7);
    }

    /* Landing Lannion */
    .landing-hero { padding: 40px 0 48px; }
    .local-grid { gap: 36px; }
    .local-aside { padding: 28px 24px; }
    .prose h2 { font-size: 1.6rem; margin-top: 32px; }
    .prose h3 { font-size: 1.12rem; margin-top: 22px; }
    .breadcrumbs { font-size: 0.8rem; padding: 12px 0; }

    /* Brand : nom visible condensé */
    .brand img { width: 40px; height: 40px; }
    .brand-name strong { font-size: 0.98rem; }
    .brand-name span { display: none; }
}

@media (max-width: 380px) {
    .hero-visual { min-height: 320px; }
    .stats .stat b { font-size: 1.75rem; }
    h1 { font-size: 2.3rem !important; }
    .brand-name { display: none; }
}

/* === UTILITIES === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--c-ink); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { top: 0; }

/* Entrance animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
}
