/* ==========================================================================
   Theme par defaut - Atelier CMS
   Site vitrine d'artisan : sobre, solide, rassurant. Mobile-first, sans
   dependance, sans police externe. L'accent du client (--accent, injecte par
   le layout) est l'unique couleur d'accentuation : le theme reste recolorable.
   ========================================================================== */

:root {
    --accent: #c2703d;
    --accent-ink: #ffffff;

    --ink: #191e25;
    --ink-soft: #515b67;
    --ink-faint: #828c98;

    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --line: #e4e8ee;
    --line-strong: #d2d8e2;

    --dark: #151a21;
    --dark-soft: #1f2730;

    --ok: #1f8a52;
    --ok-bg: #e8f5ee;
    --err: #c5403a;
    --err-bg: #fbeae9;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.05), 0 4px 14px rgba(20, 30, 50, 0.05);
    --shadow: 0 10px 30px -10px rgba(20, 30, 50, 0.16);
    --shadow-lg: 0 30px 70px -25px rgba(15, 24, 42, 0.4);

    --maxw: 1180px;
    --gap: clamp(20px, 4vw, 40px);
    --section-y: clamp(40px, 1vw, 104px);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 750; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.container-narrow { max-width: 1170px; }

.eyebrow { display: inline-block; margin: 0 0 0.7em; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow.light { color: color-mix(in srgb, var(--accent) 60%, #ffffff); }

/* ==========================================================================
   Boutons et liens d'action
   ========================================================================== */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
    font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
    padding: 15px 26px; border-radius: 999px; cursor: pointer; text-align: center;
    transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.16s ease;
}
.button:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.button:active { transform: translateY(0); }
.button-ghost { background: transparent; color: currentColor; border-color: color-mix(in srgb, currentColor 45%, transparent); }
.button-ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--accent); }
.text-link span { transition: transform 0.18s ease; }
.text-link:hover { text-decoration: none; }
.text-link:hover span { transform: translateX(4px); }

/* ==========================================================================
   En-tete
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.preview-banner { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 9px 16px; font-size: 0.9rem; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); padding-block: clamp(12px, 1.6vw, 18px); transition: padding-block 0.2s; }
.site-header.is-scrolled .header-inner { padding-block: 10px; }
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: clamp(54px, 5vw, 56px); width: auto; }

.nav-wrap { margin-left: auto; }
.main-nav, .main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 550; font-size: 0.98rem; color: var(--ink); }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.main-nav .submenu { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 7px; display: none; z-index: 20; }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { display: block; }
.main-nav .submenu a { font-size: 0.94rem; }

.header-phone { display: inline-flex; flex-direction: column; line-height: 1.1; padding: 9px 18px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); flex-shrink: 0; }
.header-phone:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.header-phone span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.header-phone strong { font-size: 1.05rem; color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; margin-left: auto; padding: 0; background: none; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */
.breadcrumbs { padding: 0px 0px 8px 30px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 0.88rem; color: var(--ink-faint); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ==========================================================================
   Sections generiques
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section:nth-of-type(even) { background: var(--bg-soft); }
.section-heading { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-heading p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.section-heading.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.richtext > :first-child { margin-top: 0; }
.richtext > :last-child { margin-bottom: 0; }
.richtext h2, .richtext h3 { margin-top: 1.4em; }
.richtext ul, .richtext ol { padding-left: 1.3em; margin: 0 0 1em; }
.richtext li { margin-bottom: 0.4em; }
.richtext img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.richtext a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-block { position: relative; display: flex; align-items: center; min-height: clamp(440px, 70vh, 660px); padding-block: clamp(60px, 10vw, 120px); background-image: var(--hero-image, none); background-color: var(--dark); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 20, 28, 0.45) 0%, rgba(15, 20, 28, 0.78) 100%); }
.hero-content { position: relative; max-width: 760px; }
.hero-block h1 { color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: rgba(255, 255, 255, 0.88); max-width: 60ch; }
.hero-block .button-ghost { color: #fff; }

/* ==========================================================================
   Texte
   ========================================================================== */
.text-block.align-center { text-align: center; }
.text-block.align-center .richtext { margin-inline: auto; }
.text-block.align-right { text-align: right; }

/* ==========================================================================
   Texte + image
   ========================================================================== */
.text-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.text-image-grid.image_right .text-image-media { order: 2; }
.text-image-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.text-image-copy h2 { margin-top: 0.1em; }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.service-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-number { font-size: 2.1rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 26%, var(--bg-soft)); letter-spacing: -0.03em; }
.service-icon { width: 100%; height: auto; margin: 8px 0 14px; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h3 { margin-bottom: 0.3em; }
.service-card p { color: var(--ink-soft); margin-bottom: 1em; }
.service-card a { font-weight: 650; }

/* ==========================================================================
   Realisations (grille + modale)
   ========================================================================== */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.achievement-card { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.achievement-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.achievement-card:hover img { transform: scale(1.06); }
.achievement-card span { position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px; text-align: left; color: #fff; font-weight: 600; font-size: 0.95rem; background: linear-gradient(transparent, rgba(15, 20, 28, 0.82)); opacity: 0; transition: opacity 0.25s; }
.achievement-card:hover span, .achievement-card:focus-visible span { opacity: 1; }

.media-dialog { border: 0; padding: 0; max-width: 880px; width: 92vw; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.media-dialog::backdrop { background: rgba(15, 20, 28, 0.72); }
.media-dialog img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--bg); margin: 0 auto; }
.media-dialog > div { padding: 20px 24px 26px; }
.media-dialog h3 { margin-bottom: 0.2em; }
.media-dialog p { color: var(--ink-soft); margin: 0; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { padding: 11px 14px; font-size: 0.9rem; color: var(--ink-soft); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.25s; flex-shrink: 0; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list .richtext { padding: 0 22px 20px; color: var(--ink-soft); }

/* ==========================================================================
   Appel a l'action
   ========================================================================== */
.cta-card { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(36px, 6vw, 64px); border-radius: var(--radius-lg); background-image: var(--cta-image, none); background-color: var(--dark); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 80%, #000) 0%, rgba(15, 20, 28, 0.82) 100%); opacity: 0.92; }
.cta-card h2 { color: #fff; margin: 0; }
.cta-card p { color: rgba(255, 255, 255, 0.86); margin: 0.5em 0 0; max-width: 52ch; }
.cta-card .button { background: #fff; color: var(--ink); border-color: #fff; flex-shrink: 0; }
.cta-card .button:hover { background: rgba(255, 255, 255, 0.9); }

/* ==========================================================================
   Carte
   ========================================================================== */
.map-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.address { font-style: normal; color: var(--ink-soft); white-space: pre-line; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-placeholder { display: grid; place-items: center; min-height: 320px; color: var(--ink-faint); padding: 24px; text-align: center; }

/* ==========================================================================
   Carrousels (slider generique + avis)
   ========================================================================== */
.slider-viewport, .testimonial-viewport { overflow: hidden; }
.slider-track, .testimonial-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.slide, .testimonial-card { flex: 0 0 auto; }

.generic-slider .slide { width: 100%; }
.slide { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.slide-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.slide-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.slide-copy p { color: var(--ink-soft); }

.testimonial-track { gap: 20px; }
.testimonial-card { width: calc((100% - 40px) / 3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial-card blockquote { margin: 14px 0 18px; font-size: 1.05rem; line-height: 1.6; }
.testimonial-card footer { display: flex; flex-direction: column; }
.testimonial-card footer strong { color: var(--ink); }
.testimonial-card footer span { color: var(--ink-faint); font-size: 0.9rem; }
.testimonial-card footer time { color: var(--ink-faint); font-size: 0.85rem; margin-top: 2px; }

.stars { color: #e0a32b; letter-spacing: 2px; font-size: 1rem; }
.stars span { color: var(--line-strong); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.slider-controls button[data-prev], .slider-controls button[data-next] { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background 0.16s, color 0.16s, border-color 0.16s; }
.slider-controls button[data-prev]:hover, .slider-controls button[data-next]:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-dots] { display: flex; gap: 8px; }
[data-dots] button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: background 0.16s, transform 0.16s; }
[data-dots] button.active { background: var(--accent); transform: scale(1.3); }

/* ==========================================================================
   Avis (liste) et formulaires publics
   ========================================================================== */
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 40px; }
.review-row { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review-row p { font-size: 1.02rem; margin: 12px 0; }
.review-row footer { color: var(--ink-faint); font-size: 0.9rem; }
.review-row footer strong { color: var(--ink); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a { min-width: 42px; padding: 9px 12px; text-align: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.public-form-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.public-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.public-form .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.public-form input, .public-form textarea { width: 100%; margin-top: 7px; font: inherit; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.public-form input:focus, .public-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.public-form textarea { resize: vertical; min-height: 120px; }
.public-form .check { display: flex; align-items: flex-start; gap: 11px; font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }
.public-form .check input { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.public-form .button { margin-top: 8px; }

.form-message { padding: 13px 17px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.95rem; border-left: 4px solid var(--ink-soft); }
.form-message.success { background: var(--ok-bg); border-left-color: var(--ok); color: #14613a; }
.form-message.error { background: var(--err-bg); border-left-color: var(--err); color: #8f2520; }

.rating-field { border: 0; padding: 0; margin: 0 0 16px; }
.rating-field legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-picker label { font-size: 2.1rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 0 2px; transition: color 0.12s; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #e0a32b; }
.star-picker input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact-aside h2 { margin-bottom: 0.4em; }
.contact-aside .richtext { color: var(--ink-soft); }
.contact-phone { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 20px; padding: 16px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.contact-phone:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.contact-phone small { color: var(--ink-soft); font-size: 0.85rem; }
.contact-phone strong { font-size: 1.5rem; color: var(--accent); letter-spacing: -0.01em; }
.obfuscated-email { margin-top: 0px; color: var(--ink-soft); }
.obfuscated-email.is-revealed { display: flex; flex-direction: column; gap: 8px; }
.email-link { width: fit-content; max-width: 100%; font-size: 1.05rem; font-weight: 600; color: var(--accent); text-decoration: none; word-break: break-word; }
.email-link:hover { text-decoration: underline; }
.email-copy-block { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.copy-email-button { font: inherit; font-size: 0.85rem; line-height: 1; cursor: pointer; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-soft); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.copy-email-button:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.email-copy-confirmation { font-size: 0.85rem; font-weight: 600; color: #1f8a4c; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.email-copy-confirmation.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-listing, .blog-post { padding-block: var(--section-y); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(18px, 3vw, 30px); margin-block: clamp(28px, 4vw, 44px); }
.post-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card > a { display: block; overflow: hidden; }
.post-card > a img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s; }
.post-card:hover > a img { transform: scale(1.05); }
.post-card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-category { align-self: flex-start; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.post-card-body h2 { font-size: 1.25rem; margin: 0; }
.post-card-body h2 a { color: var(--ink); }
.post-card-body time { color: var(--ink-faint); font-size: 0.85rem; }
.post-card-link { margin-top: auto; align-self: flex-start; font-weight: 650; color: var(--accent); padding-top: 4px; }
.post-card-link:hover { text-decoration: none; opacity: 0.85; }
.post-card-body h2 a:hover { color: var(--accent); text-decoration: none; }
.post-card-body p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.post-card-body time { margin-top: auto; color: var(--ink-faint); font-size: 0.85rem; }

.post-meta { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 24px; }
.post-hero { margin: 8px 0 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-content { font-size: 1.08rem; }
.post-content h2, .post-content h3 { margin-top: 1.6em; }

/* ==========================================================================
   Page d'erreur
   ========================================================================== */
.error-page { padding-block: clamp(80px, 16vw, 160px); text-align: center; }
.error-page .button { margin-top: 12px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--dark); color: #c4ccd6; padding-block: clamp(44px, 6vw, 72px) 0; margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); padding-bottom: 40px; }
.footer-brand { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.site-footer p { color: #97a2af; margin: 0 0 0.5em; }
.site-footer h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 16px; }
.footer-nav, .footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a, .site-footer a { color: #b7c0cb; }
.footer-nav a:hover, .site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: #8c97a4; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: #8c97a4; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   Bouton d'appel flottant (mobile)
   ========================================================================== */
.sticky-phone { display: none; }

/* ==========================================================================
   Bandeau et fenetre de gestion des cookies (neutre, sobre)
   ========================================================================== */
.cookie-panel { position: fixed; right: 22px; bottom: 22px; z-index: 300; width: min(440px, calc(100% - 36px)); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
.cookie-panel[hidden] { display: none; }
.cookie-panel.is-visible { opacity: 1; visibility: visible; transform: none; }
.cookie-card { background: #fff; border: 1px solid #e4e8ee; border-radius: 18px; padding: 24px; box-shadow: 0 26px 60px -20px rgba(10, 16, 28, 0.45); }
.cookie-title { font-weight: 750; font-size: 1.05rem; color: #11151b; margin: 0 0 8px; letter-spacing: -0.01em; }
.cookie-text { color: #4a5562; font-size: 0.92rem; line-height: 1.55; margin: 0 0 18px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cookie-btn { flex: 1; min-width: 96px; border: 1px solid transparent; border-radius: 999px; padding: 12px 16px; font: inherit; font-weight: 650; font-size: 0.9rem; cursor: pointer; transition: transform 0.16s, background 0.16s, color 0.16s, border-color 0.16s; }
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn-primary { background: #11151b; color: #fff; border-color: #11151b; }
.cookie-btn-primary:hover { background: #000; }
.cookie-btn-outline { background: #fff; color: #11151b; border-color: #d2d8e2; }
.cookie-btn-outline:hover { border-color: #11151b; }
.cookie-btn-light { background: #f2f4f7; color: #4a5562; }
.cookie-btn-light:hover { background: #e7ebf0; color: #11151b; }
.cookie-policy-link { display: inline-block; color: #11151b; font-weight: 600; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }

.cookie-modal { position: fixed; inset: 0; z-index: 310; display: flex; align-items: center; justify-content: center; padding: 22px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 28, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-modal-box { position: relative; z-index: 1; width: min(600px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 38px); box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.6); }
.cookie-modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f4f7; color: #11151b; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cookie-modal-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #828c98; margin: 0 0 6px; }
.cookie-modal-box h2 { font-size: 1.5rem; color: #11151b; margin-bottom: 10px; }
.cookie-modal-box > p { color: #4a5562; font-size: 0.95rem; margin-bottom: 20px; }
.cookie-pref { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e4e8ee; border-radius: 14px; padding: 16px 18px; margin-bottom: 11px; }
.cookie-pref strong { display: block; color: #11151b; font-size: 0.98rem; margin-bottom: 3px; }
.cookie-pref span { display: block; color: #6a7480; font-size: 0.86rem; line-height: 1.45; }
.cookie-pref em { font-style: normal; font-weight: 650; font-size: 0.78rem; color: #1f8a52; white-space: nowrap; }
.cookie-pref input[type=checkbox] { width: 44px; height: 24px; flex: none; accent-color: #11151b; cursor: pointer; }
.cookie-modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.cookie-modal-actions .cookie-btn { flex: 0 1 auto; }

body.cookies-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .text-image-grid, .map-grid, .contact-grid, .slide { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .text-image-grid.image_right .text-image-media { order: 0; }
    .testimonial-card { width: calc((100% - 20px) / 2); }
    .section-heading.split { align-items: flex-start; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav-toggle { display: flex; }
    .nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px clamp(18px, 4vw, 32px) 18px; }
    .nav-wrap.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 13px 12px; }
    .main-nav .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
    .header-phone { display: none; }
    .testimonial-card { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { justify-content: flex-start; }
    .sticky-phone { display: inline-flex; align-items: center; gap: 9px; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; justify-content: center; padding: 15px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
    .sticky-phone:hover { text-decoration: none; }
    .cookie-panel { right: 12px; left: 12px; bottom: 12px; width: auto; }
    .cookie-card { padding: 18px; }
    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-actions .cookie-btn-primary { grid-column: 1 / -1; order: -1; }
    .cookie-modal { align-items: flex-end; padding: 12px; }
    .cookie-modal-box { border-radius: 18px; }
    .cookie-modal-actions { width: 100%; }
    .cookie-modal-actions .cookie-btn { flex: 1; }
    /* laisser de la place au bouton d'appel flottant */
    .site-footer { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== 1.0.9 : cartes de contact + reseaux sociaux ===== */
.contact-cards { display: grid; gap: 14px; margin-top: 22px; }
.contact-card { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
a.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.contact-card-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.contact-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-faint); }
.contact-card-body strong { color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.contact-card-note { color: var(--ink-faint); font-size: 0.9rem; margin-top: 1px; }

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: var(--bg); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.social-icons a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.contact-social { margin-top: 20px; }
.footer-social { margin-top: 16px; }
.footer-social a { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.82); background: transparent; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ==========================================================================
   Bloc Demande de devis
   ========================================================================== */
.section.devis-block { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.devis-wrap { max-width: 900px; margin-inline: auto; }
.devis-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.devis-head h2 { margin: 0 0 12px; }
.devis-intro { color: var(--ink-soft); max-width: 640px; margin-inline: auto; }
.devis-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: clamp(26px, 4vw, 40px); }
.devis-step { display: flex; align-items: center; gap: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 600; box-shadow: var(--shadow-sm); }
.devis-step-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.devis-form .devis-fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.devis-form .devis-fieldset > legend { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 0; margin-bottom: 14px; }
.devis-form select { width: 100%; margin-top: 7px; font: inherit; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.devis-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.devis-choice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.devis-choice > legend { font-weight: 600; font-size: 0.95rem; padding: 0 6px; }
.devis-choice .check { margin-bottom: 8px; }
.devis-choice .check:last-child { margin-bottom: 0; }
.devis-hint { font-size: 0.86rem; color: var(--ink-faint); margin: -6px 0 4px; }
.devis-trust { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.devis-trust h3 { margin: 0 0 18px; font-size: 1.15rem; }
.devis-trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.devis-trust-list li { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; box-shadow: var(--shadow-sm); }
.devis-trust-check { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 0.85rem; font-weight: 800; }
.devis-steps-title { text-align: center; font-size: 1.05rem; margin: 0 0 16px; color: var(--ink-soft); }

.devis-files { display: flex; flex-direction: column; gap: 10px; }
.devis-file-row { display: flex; align-items: center; gap: 10px; }
.devis-file-row input[type="file"] { flex: 1 1 auto; min-width: 0; padding: 10px 12px; }
.devis-file-remove { flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-soft); border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer; font: inherit; }
.devis-file-remove:hover { border-color: #c0392b; color: #c0392b; }
.devis-file-add { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: var(--radius-sm); padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 600; transition: background 0.15s; }
.devis-file-add:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.devis-file-add:disabled { opacity: 0.45; cursor: not-allowed; }
.devis-file-add + .devis-hint { margin-top: 14px; }

/* ==========================================================================
   Bloc Video YouTube
   ========================================================================== */
.video-title { text-align: center; margin: 0 0 clamp(20px, 3vw, 30px); }
.video-center .video-main { max-width: 760px; margin-inline: auto; }
.video-full .video-main { max-width: 100%; }
.video-side .video-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.3s ease; }
.video-play:hover .video-thumb, .video-play:focus-visible .video-thumb { transform: scale(1.04); filter: brightness(0.92); }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.video-play:hover .video-play-btn, .video-play:focus-visible .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-play-bg { fill: #212121; opacity: 0.85; transition: fill 0.2s ease, opacity 0.2s ease; }
.video-play:hover .video-play-bg, .video-play:focus-visible .video-play-bg { fill: #cc0000; opacity: 1; }
.video-iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-caption { margin: 12px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }
.video-side .video-caption { text-align: left; }
.video-empty { padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.video-aside { color: var(--ink-soft); }
@media (max-width: 720px) {
  .video-side .video-layout { grid-template-columns: 1fr; }
  .video-side .video-caption { text-align: center; }
}

/* Navigation dans la modale d'image (Realisations) */
.dialog-figure { position: relative; background: var(--bg); }
.dialog-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #1a1a1a; cursor: pointer; z-index: 2; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); transition: background 0.15s ease, transform 0.15s ease; }
.dialog-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.dialog-prev { left: 12px; }
.dialog-next { right: 12px; }
@media (max-width: 560px) {
  .dialog-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .dialog-prev { left: 6px; }
  .dialog-next { right: 6px; }
}

/* ==========================================================================
   Bloc Lecteur audio
   ========================================================================== */
.audio-block-title { text-align: center; margin: 0 0 10px; }
.audio-block-intro { text-align: center; max-width: 640px; margin: 0 auto clamp(20px, 3vw, 32px); color: var(--ink-soft); }
.audio-player { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; max-width: 720px; margin: 0 auto; }
.audio-stage { display: flex; gap: clamp(16px, 3vw, 24px); padding: clamp(18px, 3vw, 26px); background: var(--bg-soft); align-items: center; }
.audio-cover { flex: 0 0 auto; width: 128px; height: 128px; border-radius: var(--radius); overflow: hidden; background: var(--dark-soft); display: flex; align-items: center; justify-content: center; }
.audio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audio-cover-fallback { font-size: 3rem; color: var(--accent); }
.audio-meta { flex: 1 1 auto; min-width: 0; }
.audio-now-title { font-weight: 700; font-size: 1.15rem; margin: 0; line-height: 1.3; }
.audio-now-sub { color: var(--ink-soft); margin: 2px 0 14px; font-size: 0.95rem; }
.audio-progress { position: relative; height: 8px; border-radius: 999px; background: var(--line-strong); cursor: pointer; touch-action: none; }
.audio-progress-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: var(--accent); }
.audio-progress:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.audio-times { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-faint); margin: 7px 0 12px; font-variant-numeric: tabular-nums; }
.audio-controls { display: flex; align-items: center; gap: 8px; }
.audio-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.audio-btn:hover { background: var(--bg); }
.audio-btn-play { width: 54px; height: 54px; background: var(--accent); color: var(--accent-ink); }
.audio-btn-play:hover { background: var(--accent); transform: scale(1.05); box-shadow: var(--shadow-sm); }
.audio-btn-play .ic-pause { display: none; }
.is-playing .audio-btn-play .ic-play { display: none; }
.is-playing .audio-btn-play .ic-pause { display: block; }
.audio-volume { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.audio-volume input[type=range] { width: 90px; accent-color: var(--accent); cursor: pointer; }
.audio-btn-mute .ic-muted { display: none; }
.is-muted .audio-btn-mute .ic-vol { display: none; }
.is-muted .audio-btn-mute .ic-muted { display: block; }
.audio-list { list-style: none; margin: 0; padding: 8px; }
.audio-track { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; background: transparent; border-radius: var(--radius); cursor: pointer; text-align: left; transition: background 0.15s ease; }
.audio-track:hover { background: var(--bg-soft); }
.audio-track.is-active { background: var(--bg-soft); }
.audio-track.is-active .audio-track-title { color: var(--accent); }
.audio-track-num { flex: 0 0 auto; width: 22px; color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.audio-track-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--dark-soft); }
.audio-track-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audio-track-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.audio-track-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-track-sub { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-track-time { flex: 0 0 auto; color: var(--ink-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .audio-stage { flex-direction: column; text-align: center; }
  .audio-cover { width: 90px; height: 90px; }
  .audio-controls { justify-content: center; flex-wrap: wrap; }
  .audio-volume { margin-left: 0; width: 100%; justify-content: center; }
}
