/*
Theme Name: GM Renovation 56
Theme URI: https://gmrenovation56.fr
Author: Orma AideCom
Author URI: https://aidecom.fr
Description: Theme vitrine pour GM Renovation 56 - peinture, ravalement de facade et entretien de toiture. Hero plein ecran, galerie de realisations et comparateur avant/apres.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gmr56
*/

/* ============================================================
   VARIABLES
============================================================ */
:root {
    --gmr56-blue: #123B6D;
    --gmr56-blue-light: #1E5A9C;
    --gmr56-blue-deep: #0A1F3A;
    --gmr56-ink: #071729;
    --gmr56-orange: #F07A20;
    --gmr56-orange-light: #FF9A4D;
    --gmr56-white: #FFFFFF;
    --gmr56-grey: #F2F5F9;
    --gmr56-grey-dark: #E1E7EE;
    --gmr56-text: #1B2430;
    --gmr56-muted: #566170;
    --gmr56-font-title: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gmr56-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gmr56-ease: cubic-bezier(.22, 1, .36, 1);
    --gmr56-max: 1240px;
    --gmr56-gutter: max(20px, calc((100vw - var(--gmr56-max)) / 2));
}

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

/* ============================================================
   BASE
============================================================ */
html { scroll-behavior: smooth; }
.gmr56-body {
    margin: 0;
    font-family: var(--gmr56-font-body);
    color: var(--gmr56-text);
    background: var(--gmr56-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.gmr56-body ::selection { background: var(--gmr56-orange); color: var(--gmr56-blue-deep); }
.gmr56-body img { max-width: 100%; }
.gmr56-body h1, .gmr56-body h2, .gmr56-body h3 {
    font-family: var(--gmr56-font-title);
    margin: 0 0 .5em;
    color: var(--gmr56-blue-deep);
    line-height: 1.05;
    letter-spacing: -.02em;
    font-weight: 700;
}
/* Sections pleine largeur : le fond va au bord, le contenu reste centre */
.gmr56-body section {
    padding: clamp(64px, 9vw, 120px) var(--gmr56-gutter);
    scroll-margin-top: 60px;
}
.gmr56-section-head { max-width: 760px; margin: 0 0 clamp(32px, 5vw, 56px); }
.gmr56-body .gmr56-section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: .3em; }
.gmr56-section-sub { color: var(--gmr56-muted); font-size: 1.1rem; max-width: 56ch; margin: 0; }

.gmr56-icon { flex: none; }

/* Accessibilite : focus clavier visible */
.gmr56-body a:focus-visible,
.gmr56-body button:focus-visible,
.gmr56-body input:focus-visible,
.gmr56-body select:focus-visible,
.gmr56-body textarea:focus-visible {
    outline: 3px solid var(--gmr56-orange-light);
    outline-offset: 3px;
}

/* Barre de progression de lecture */
.gmr56-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--gmr56-orange);
    z-index: 1100;
    transition: width .1s linear;
}

/* ============================================================
   BOUTONS
============================================================ */
.gmr56-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--gmr56-orange);
    color: var(--gmr56-blue-deep);
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--gmr56-font-body);
    font-weight: 800;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(240,122,32,.35);
    transition: background .25s, transform .25s var(--gmr56-ease), box-shadow .25s;
}
.gmr56-btn-primary:hover {
    background: var(--gmr56-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(240,122,32,.45);
}
.gmr56-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    color: var(--gmr56-white);
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.5);
    padding: 15px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s, color .25s;
}
.gmr56-btn-ghost:hover { background: var(--gmr56-white); color: var(--gmr56-blue-deep); }
.gmr56-btn-outline {
    background: none;
    color: var(--gmr56-blue);
    border: 1.5px solid var(--gmr56-blue);
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--gmr56-font-body);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.gmr56-btn-outline:hover { background: var(--gmr56-blue); color: var(--gmr56-white); }
.gmr56-btn-nav {
    background: var(--gmr56-orange);
    color: var(--gmr56-blue-deep);
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: .95rem;
    white-space: nowrap;
    transition: background .25s, transform .25s var(--gmr56-ease);
}
.gmr56-btn-nav:hover { background: var(--gmr56-orange-light); transform: translateY(-1px); }

/* ============================================================
   NAV
============================================================ */
.gmr56-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 600;
    padding: 16px 0;
    background: transparent;
    transition: background .35s var(--gmr56-ease), padding .35s var(--gmr56-ease), box-shadow .35s;
}
.admin-bar .gmr56-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .gmr56-nav { top: 46px; } }
.gmr56-nav.is-scrolled {
    background: rgba(10, 31, 58, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 9px 0;
    box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.18);
}
.gmr56-nav-inner {
    max-width: calc(var(--gmr56-max) + 40px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex; align-items: center; gap: 32px;
}
.gmr56-logo {
    display: inline-flex; align-items: center; gap: 11px;
    color: var(--gmr56-white);
    text-decoration: none;
    font-family: var(--gmr56-font-title);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -.01em;
    flex-shrink: 0;
}
.gmr56-logo-mark {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--gmr56-orange);
    color: var(--gmr56-blue-deep);
    font-size: 1.1rem;
    letter-spacing: 0;
}
.gmr56-menu {
    display: flex; align-items: center; gap: 30px;
    margin-left: auto;
}
.gmr56-menu > a {
    color: var(--gmr56-white);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: 6px 0;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color .2s, box-shadow .25s;
}
.gmr56-menu > a:hover { color: var(--gmr56-orange-light); }
.gmr56-menu > a.is-active { box-shadow: inset 0 -2px 0 var(--gmr56-orange); }
.gmr56-menu-contact { display: none; }

.gmr56-nav-actions { display: flex; align-items: center; gap: 22px; }
.gmr56-nav-phones { display: flex; align-items: center; gap: 11px; }
.gmr56-nav-phone-icon {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gmr56-orange);
    color: var(--gmr56-blue-deep);
    transition: background .2s;
}
.gmr56-nav-phone-icon:hover { background: var(--gmr56-orange-light); }
.gmr56-nav-phone-icon .gmr56-icon { width: 18px; height: 18px; }
.gmr56-nav-phone-nums { display: flex; flex-direction: column; line-height: 1.25; }
.gmr56-nav-phone {
    color: var(--gmr56-white);
    text-decoration: none;
    font-weight: 800;
    font-size: .95rem;
    white-space: nowrap;
    transition: color .2s;
}
.gmr56-nav-phone:hover { color: var(--gmr56-orange-light); }

.gmr56-burger {
    display: none;
    background: none; border: 0; cursor: pointer; padding: 8px;
    position: relative; z-index: 610;
}
.gmr56-burger span {
    display: block; width: 26px; height: 3px; background: var(--gmr56-white);
    margin: 5px 0; border-radius: 2px;
    transition: transform .3s var(--gmr56-ease), opacity .3s;
}
.gmr56-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.gmr56-burger.is-open span:nth-child(2) { opacity: 0; }
.gmr56-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO plein ecran
============================================================ */
.gmr56-body .gmr56-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden;
    background: var(--gmr56-blue-deep);
    color: var(--gmr56-white);
    isolation: isolate;
}
.gmr56-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform-origin: 55% 45%;
    animation: gmr56-drift 26s ease-in-out infinite alternate;
}
@keyframes gmr56-drift {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}
.gmr56-hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(10,31,58,.55) 0%, rgba(10,31,58,0) 22%),
        linear-gradient(90deg, rgba(10,31,58,.6) 0%, rgba(10,31,58,.25) 45%, rgba(10,31,58,0) 70%),
        linear-gradient(0deg, rgba(10,31,58,.96) 0%, rgba(10,31,58,.8) 28%, rgba(10,31,58,.3) 55%, rgba(10,31,58,0) 78%);
}
.gmr56-hero-content {
    padding: 150px var(--gmr56-gutter) 44px;
}
.gmr56-hero-content > * { max-width: 1000px; }
.gmr56-body .gmr56-hero-content h1 {
    color: var(--gmr56-white);
    font-size: clamp(2.4rem, 5.3vw, 4.9rem);
    line-height: 1;
    letter-spacing: -.022em;
    font-weight: 800;
    margin-bottom: .4em;
}
.gmr56-hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,.88);
    max-width: 56ch !important;
    margin: 0 0 32px;
}
.gmr56-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.gmr56-hero-bar {
    display: grid;
    grid-template-columns: .9fr .9fr 1.5fr 1.3fr;
    margin: 0 var(--gmr56-gutter) 32px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow: hidden;
}
.gmr56-hero-bar-item {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 26px;
    color: var(--gmr56-white);
    text-decoration: none;
    transition: background .25s;
}
.gmr56-hero-bar-item + .gmr56-hero-bar-item { border-left: 1px solid rgba(255,255,255,.16); }
.gmr56-hero-bar-item:hover { background: rgba(255,255,255,.1); }
.gmr56-hero-bar-item .gmr56-icon { color: var(--gmr56-orange-light); width: 24px; height: 24px; }
.gmr56-hero-bar-item span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.gmr56-hero-bar-item small { font-size: .82rem; color: rgba(255,255,255,.68); font-weight: 600; }
.gmr56-hero-bar-item strong { font-size: 1.08rem; font-weight: 800; overflow-wrap: anywhere; }

/* Une seule animation d'entree, orchestree */
@keyframes gmr56-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
.gmr56-hero-content h1    { animation: gmr56-rise 1s var(--gmr56-ease) .1s both; }
.gmr56-hero-sub           { animation: gmr56-rise 1s var(--gmr56-ease) .28s both; }
.gmr56-hero-actions       { animation: gmr56-rise 1s var(--gmr56-ease) .44s both; }
.gmr56-hero-bar           { animation: gmr56-rise 1s var(--gmr56-ease) .62s both; }

/* ============================================================
   SERVICES (grille asymetrique)
============================================================ */
.gmr56-services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.gmr56-service-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex; align-items: flex-end;
    min-height: 380px;
    border-radius: 28px;
    color: var(--gmr56-white);
    grid-column: span 6;
}
.gmr56-service-card:nth-child(4n+1) { grid-column: span 7; }
.gmr56-service-card:nth-child(4n+2) { grid-column: span 5; }
.gmr56-service-card:nth-child(4n+3) { grid-column: span 5; }
.gmr56-service-card:nth-child(4n+4) { grid-column: span 7; }

.gmr56-service-photo {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s var(--gmr56-ease);
}
.gmr56-service-card.has-photo::after {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(10,31,58,.92) 0%, rgba(10,31,58,.5) 48%, rgba(10,31,58,.04) 100%);
}
.gmr56-service-card.has-photo:hover .gmr56-service-photo { transform: scale(1.05); }
.gmr56-service-card.is-solid {
    background: radial-gradient(120% 90% at 100% 0%, var(--gmr56-orange-light) 0%, var(--gmr56-orange) 62%);
    color: var(--gmr56-blue-deep);
}
.gmr56-service-body { padding: clamp(24px, 3vw, 38px); }
.gmr56-body .gmr56-service-card h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    color: inherit;
    margin-bottom: .35em;
}
.gmr56-service-card p {
    margin: 0;
    max-width: 46ch;
    font-size: 1rem;
    color: rgba(255,255,255,.9);
}
.gmr56-service-card.is-solid p { color: rgba(10,31,58,.86); font-weight: 500; }

/* ============================================================
   AVANT / APRES
============================================================ */
.gmr56-avant-apres { background: var(--gmr56-grey); }
.gmr56-aa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 22px;
}
.gmr56-body .gmr56-aa-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 14px 4px 0;
    line-height: 1.3;
}
.gmr56-aa-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    background: var(--gmr56-grey-dark);
    box-shadow: 0 18px 40px -20px rgba(10,31,58,.45);
}
.gmr56-aa-slider:focus-within { outline: 3px solid var(--gmr56-orange); outline-offset: 3px; }
.gmr56-aa-after, .gmr56-aa-before {
    position: absolute; inset: 0;
    height: 100%; width: 100%;
    overflow: hidden;
}
.gmr56-aa-before { clip-path: inset(0 50% 0 0); }
.gmr56-aa-after img, .gmr56-aa-before img {
    position: absolute; top: 0; left: 0;
    height: 100%; width: 100%; object-fit: cover;
    display: block;
}
.gmr56-aa-label {
    position: absolute; top: 14px;
    background: rgba(10,31,58,.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--gmr56-white);
    font-size: .8rem; font-weight: 800;
    padding: 5px 13px;
    border-radius: 999px;
}
.gmr56-aa-label-after { right: 14px; }
.gmr56-aa-label-before { left: 14px; background: var(--gmr56-orange); color: var(--gmr56-blue-deep); }
.gmr56-aa-range {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}
.gmr56-aa-handle {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: var(--gmr56-white);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 14px rgba(0,0,0,.3);
}
.gmr56-aa-handle span {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gmr56-white);
    color: var(--gmr56-blue);
    display: grid; place-items: center;
    font-size: .7rem; letter-spacing: 3px; text-indent: 3px;
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
}

/* ============================================================
   GALERIE (mosaique)
============================================================ */
.gmr56-galerie-grid { column-count: 4; column-gap: 14px; }
.gmr56-galerie-item {
    display: block; width: 100%;
    margin: 0 0 14px; padding: 0; border: 0;
    background: var(--gmr56-grey-dark);
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    break-inside: avoid;
}
.gmr56-galerie-item img {
    display: block; width: 100%; height: auto;
    transition: transform .7s var(--gmr56-ease), filter .3s;
}
.gmr56-galerie-item:hover img { transform: scale(1.05); filter: brightness(.92); }
.gmr56-galerie-item.is-extra { display: none; }
.gmr56-galerie-grid.is-expanded .gmr56-galerie-item.is-extra { display: block; }
.gmr56-more { text-align: center; margin-top: 38px; }
.gmr56-aa-card.is-extra { display: none; }
.gmr56-aa-grid.is-expanded .gmr56-aa-card.is-extra { display: block; }

/* LIGHTBOX */
.gmr56-lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(7,23,41,.95);
    align-items: center; justify-content: center;
}
.gmr56-lightbox.is-open { display: flex; }
.gmr56-lightbox img {
    max-width: 90vw; max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.gmr56-lightbox-close, .gmr56-lightbox-prev, .gmr56-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.14);
    border: 0;
    color: var(--gmr56-white);
    cursor: pointer;
    border-radius: 50%;
    width: 50px; height: 50px;
    font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s;
}
.gmr56-lightbox-close:hover, .gmr56-lightbox-prev:hover, .gmr56-lightbox-next:hover {
    background: var(--gmr56-orange); color: var(--gmr56-blue-deep);
}
.gmr56-lightbox-close { top: 24px; right: 24px; font-size: 1.8rem; line-height: 1; }
.gmr56-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gmr56-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   AVIS
============================================================ */
.gmr56-avis { background: var(--gmr56-blue-deep); color: var(--gmr56-white); }
.gmr56-body .gmr56-avis .gmr56-section-head h2 { color: var(--gmr56-white); }
.gmr56-avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.gmr56-avis-card {
    margin: 0;
    padding: 6px 38px;
    border-left: 1px solid rgba(255,255,255,.18);
    display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
}
.gmr56-avis-card:first-child { padding-left: 0; border-left: 0; }
.gmr56-avis-card:last-child { padding-right: 0; }
.gmr56-avis-card blockquote {
    margin: 0;
    font-family: var(--gmr56-font-title);
    font-size: clamp(1.25rem, 1.9vw, 1.55rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--gmr56-white);
}
.gmr56-avis-card figcaption { color: var(--gmr56-orange-light); font-weight: 800; font-size: .98rem; }

/* ============================================================
   CTA
============================================================ */
.gmr56-body .gmr56-cta {
    background: var(--gmr56-orange);
    color: var(--gmr56-blue-deep);
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 80px);
}
.gmr56-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px 48px; flex-wrap: wrap;
}
.gmr56-body .gmr56-cta h2 { color: var(--gmr56-blue-deep); font-size: clamp(1.8rem, 3.8vw, 3rem); margin: 0 0 .25em; }
.gmr56-cta p { margin: 0; color: rgba(10,31,58,.88); font-weight: 600; font-size: 1.1rem; }
.gmr56-cta .gmr56-btn-primary { background: var(--gmr56-blue-deep); color: var(--gmr56-white); box-shadow: none; }
.gmr56-cta .gmr56-btn-primary:hover { background: var(--gmr56-blue); }

/* ============================================================
   CONTACT
============================================================ */
.gmr56-contact-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
}
.gmr56-contact-infos {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 26px;
    background: var(--gmr56-blue-deep);
    color: var(--gmr56-white);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 52px);
}
.gmr56-contact-infos::before {
    content: '';
    position: absolute; z-index: -1;
    width: 360px; height: 360px; right: -140px; top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,122,32,.32), rgba(240,122,32,0) 68%);
}
.gmr56-contact-infos p { margin: 0; }
.gmr56-contact-highlight { display: flex; flex-direction: column; gap: 2px; }
.gmr56-contact-highlight strong, .gmr56-contact-zone strong {
    font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.64);
}
.gmr56-contact-highlight a {
    color: var(--gmr56-white);
    font-family: var(--gmr56-font-title);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -.01em;
    line-height: 1.15;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s;
}
.gmr56-contact-highlight:nth-of-type(3) a { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.gmr56-contact-highlight a:hover { color: var(--gmr56-orange-light); }
.gmr56-contact-zone {
    margin-top: auto !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.84);
}
.gmr56-contact-zone strong { display: block; }
.gmr56-contact-zone a { color: var(--gmr56-white); text-decoration: underline; text-underline-offset: 3px; }
.gmr56-contact-zone a:hover { color: var(--gmr56-orange-light); }

.gmr56-contact-form {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--gmr56-grey);
    padding: clamp(24px, 3.4vw, 44px);
    border-radius: 28px;
}
.gmr56-contact-form input, .gmr56-contact-form select, .gmr56-contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--gmr56-white);
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-family: var(--gmr56-font-body);
    font-size: 1rem;
    color: var(--gmr56-text);
    transition: border-color .25s, box-shadow .25s;
}
.gmr56-contact-form textarea { resize: vertical; min-height: 130px; }
.gmr56-contact-form input:focus, .gmr56-contact-form select:focus, .gmr56-contact-form textarea:focus {
    outline: none;
    border-color: var(--gmr56-orange);
    box-shadow: 0 0 0 4px rgba(240,122,32,.18);
}
.gmr56-contact-form .gmr56-btn-primary { width: 100%; margin-top: 6px; }
.gmr56-form-success {
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: #E3F5E8; color: #14602B; font-weight: 800;
}

/* ============================================================
   FOOTER
============================================================ */
.gmr56-footer {
    background: var(--gmr56-ink);
    color: rgba(255,255,255,.74);
    padding: 60px var(--gmr56-gutter) 28px;
    font-size: .95rem;
}
.gmr56-footer-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 36px; flex-wrap: wrap;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.gmr56-footer-brand p { margin: 16px 0 0; max-width: 34ch; }
.gmr56-footer-contact { display: flex; flex-direction: column; gap: 14px; }
.gmr56-footer-contact-item {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--gmr56-white);
    font-weight: 800;
    font-size: 1.12rem;
    text-decoration: none;
    transition: color .2s;
}
.gmr56-footer-contact-item .gmr56-icon { color: var(--gmr56-orange-light); }
.gmr56-footer-contact-item:hover { color: var(--gmr56-orange-light); }
.gmr56-footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
    padding-top: 24px;
    font-size: .88rem;
}
.gmr56-footer-bottom p { margin: 0; }
.gmr56-footer-link { color: rgba(255,255,255,.78); text-decoration: none; }
.gmr56-footer-link:hover { color: var(--gmr56-orange-light); }
.gmr56-footer-sep { color: rgba(255,255,255,.35); margin: 0 10px; }

/* ============================================================
   PAGES INTERIEURES (service x ville, zone, mentions legales)
============================================================ */
.gmr56-body .gmr56-seo-hero {
    padding-top: clamp(140px, 16vw, 210px);
    padding-bottom: clamp(48px, 6vw, 84px);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(240,122,32,.28), rgba(240,122,32,0) 60%),
        linear-gradient(135deg, var(--gmr56-blue-deep) 0%, var(--gmr56-blue) 100%);
}
.gmr56-seo-hero-inner { max-width: 960px; color: var(--gmr56-white); }
.gmr56-seo-breadcrumb { font-size: .9rem; color: rgba(255,255,255,.72); margin: 0 0 18px; }
.gmr56-seo-breadcrumb a { color: rgba(255,255,255,.88); text-decoration: none; }
.gmr56-seo-breadcrumb a:hover { color: var(--gmr56-orange-light); }
.gmr56-seo-breadcrumb span { margin: 0 8px; }
.gmr56-body .gmr56-seo-hero-inner h1 {
    color: var(--gmr56-white);
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: .4em;
}
.gmr56-seo-sub { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 0 28px; font-size: 1.12rem; }

.gmr56-seo-intro-text p { color: var(--gmr56-muted); font-size: 1.1rem; margin: 0 0 16px; max-width: 70ch; }

.gmr56-seo-nearby-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.gmr56-seo-nearby-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--gmr56-grey);
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--gmr56-blue-deep);
    font-weight: 700;
    font-size: .95rem;
    transition: background .25s, transform .25s var(--gmr56-ease);
}
.gmr56-seo-nearby-item span { color: var(--gmr56-orange); font-weight: 800; font-size: .85rem; white-space: nowrap; }
.gmr56-seo-nearby-item:hover { background: var(--gmr56-grey-dark); transform: translateX(4px); }

/* Zone d'intervention */
.gmr56-body .gmr56-zone-map-section { padding: 0; }
.gmr56-zone-map { width: 100%; height: clamp(360px, 55vh, 560px); }
.gmr56-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.gmr56-zone-card {
    background: var(--gmr56-white);
    border: 1px solid var(--gmr56-grey-dark);
    border-radius: 20px;
    padding: 22px 24px;
    transition: border-color .25s, box-shadow .25s var(--gmr56-ease);
}
.gmr56-zone-card:hover { border-color: var(--gmr56-orange); box-shadow: 0 16px 34px -18px rgba(10,31,58,.35); }
.gmr56-body .gmr56-zone-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.gmr56-zone-card h3 span { color: var(--gmr56-orange); font-size: .85rem; font-weight: 600; }
.gmr56-zone-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gmr56-zone-card a { color: var(--gmr56-muted); text-decoration: none; font-size: .92rem; transition: color .2s, padding-left .2s; }
.gmr56-zone-card a:hover { color: var(--gmr56-orange); padding-left: 4px; }

/* Mentions legales */
.gmr56-legal-content { max-width: 820px; }
.gmr56-body .gmr56-legal-content h2 {
    font-size: 1.35rem;
    margin: 38px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gmr56-grey-dark);
    letter-spacing: -.01em;
}
.gmr56-body .gmr56-legal-content h2:first-child { margin-top: 0; }
.gmr56-legal-content p { color: var(--gmr56-muted); line-height: 1.8; margin: 0 0 12px; }
.gmr56-legal-content strong { color: var(--gmr56-blue-deep); }
.gmr56-legal-content a { color: var(--gmr56-orange); text-decoration: underline; text-underline-offset: 3px; }
.gmr56-legal-content a:hover { color: var(--gmr56-blue); }

/* ============================================================
   RESPONSIVE
============================================================ */
/* Tablette paysage et moins : menu en tiroir */
@media (max-width: 1020px) {
    .gmr56-burger { display: block; }
    .gmr56-nav-inner { gap: 14px; }
    .gmr56-nav-actions { margin-left: auto; }
    .gmr56-nav-actions .gmr56-btn-nav, .gmr56-nav-phone-nums { display: none; }

    .gmr56-menu {
        position: fixed; top: 0; right: 0;
        height: 100vh; height: 100dvh;
        width: min(88vw, 400px);
        margin: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        padding: 96px 28px 32px;
        background: var(--gmr56-blue-deep);
        box-shadow: -24px 0 60px rgba(0,0,0,.4);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .38s var(--gmr56-ease), visibility 0s .38s;
        z-index: 605;
    }
    .gmr56-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--gmr56-ease); }
    .gmr56-menu > a {
        font-family: var(--gmr56-font-title);
        font-size: 1.5rem; font-weight: 600;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
        box-shadow: none !important;
    }
    .gmr56-menu-contact { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
    .gmr56-menu-contact .gmr56-menu-phone {
        display: flex; align-items: center; gap: 12px;
        font-family: var(--gmr56-font-body);
        font-size: 1.15rem; font-weight: 800;
        padding: 0; border: 0;
        color: var(--gmr56-white);
        text-decoration: none;
    }
    .gmr56-menu-contact .gmr56-menu-mail { font-size: 1rem; overflow-wrap: anywhere; }
    .gmr56-menu-phone .gmr56-icon { color: var(--gmr56-orange-light); }
    .gmr56-menu-contact .gmr56-btn-primary { margin-top: 10px; }
}

@media (max-width: 900px) {
    .gmr56-hero-bar { grid-template-columns: 1fr 1fr; }
    .gmr56-hero-bar-mail { grid-column: 1 / -1; }
    .gmr56-hero-bar-item { padding: 16px 18px; }
    .gmr56-hero-bar-item + .gmr56-hero-bar-item { border-left: 0; }
    .gmr56-hero-bar-item:nth-child(2) { border-left: 1px solid rgba(255,255,255,.16); }
    .gmr56-hero-bar-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }

    .gmr56-services-grid { grid-template-columns: 1fr; }
    .gmr56-service-card, .gmr56-service-card:nth-child(n) { grid-column: auto; min-height: 320px; }

    .gmr56-aa-grid { grid-template-columns: repeat(2, 1fr); }
    .gmr56-galerie-grid { column-count: 3; }

    .gmr56-avis-grid { grid-template-columns: 1fr; gap: 34px; }
    .gmr56-avis-card, .gmr56-avis-card:first-child, .gmr56-avis-card:last-child {
        padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18);
    }
    .gmr56-avis-card:first-child { padding-top: 0; border-top: 0; }

    .gmr56-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .gmr56-hero-content { padding-top: 120px; padding-bottom: 28px; }
    .gmr56-hero-actions { flex-direction: column; align-items: stretch; }
    .gmr56-hero-actions a { width: 100%; }
    .gmr56-hero-actions .gmr56-btn-ghost { display: none; }
    .gmr56-hero-bar { margin-bottom: 20px; border-radius: 18px; }
    .gmr56-hero-bar-item { padding: 14px 16px; }
    .gmr56-hero-bar-item .gmr56-icon { display: none; }
    .gmr56-hero-bar-item strong { font-size: .98rem; white-space: nowrap; }
    .gmr56-hero-bar-mail strong { white-space: normal; }
    .gmr56-hero-bar-item:nth-child(4) { grid-column: 1 / -1; }

    .gmr56-aa-grid { grid-template-columns: 1fr; }
    .gmr56-galerie-grid { column-count: 2; column-gap: 10px; }
    .gmr56-galerie-item { margin-bottom: 10px; border-radius: 12px; }

    .gmr56-footer-top, .gmr56-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .gmr56-logo-text { font-size: 1.1rem; }
    .gmr56-nav-phone-icon { display: none; }
}

/* Mouvement reduit : on coupe toutes les animations */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
