/* RESET SIMPLE */

@font-face {
    font-family: 'Montserrat';
    src: url('../webfonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Ablation';
    src: url('../webfonts/Ablation-FreeDemo.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Game';
    src: url('../webfonts/Game-Played.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Nexaheavy';
    src: url('../webfonts/Nexa-Heavy.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: bold;
}
@font-face {
    font-family: 'Nexaextralight';
    src: url('../webfonts/Nexa-ExtraLight.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: light;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-soft: #F0FBF3;
    --text: #0F2418;
    --muted: #4f6b58;
    --accent: #00C453;
    --accent-soft: #D7FFE8;
    --accent-cta: #00A63A;
    --border: #D1EBD8;
    --shadow: 0 20px 60px rgba(26, 64, 38, 0.09);
    --shadow-soft: 0 8px 26px rgba(24, 46, 30, 0.08);
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Headings use the same sans-serif as body for a clean, modern look */
h1  {
    font-family: 'Ablation', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
}

.lien-contact {
    color: #fbff00;
    text-decoration: none;
}

.lien-contact:hover {
    color: #fbff00;
    text-decoration: underline;
}

/* CONTAINER */
.container {
    width: min(1200px, 92%);
    margin: auto;
}

/* ═══ HEADER ═══════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 24px;
    flex-wrap: nowrap;
}

/* Logo (image) à gauche + bloc texte (titre / slogan) à droite de l'image */
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
    color: #08b80d;
    font-family: 'Ablation', cursive;
}

.logo-img {
    display: block;
    height: 60px;
    width: auto;
}

/* Titre au-dessus, slogan en dessous */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.logo-text > span {
    font-weight: bold;
    font-size: 1.35rem;
    line-height: 1;
}

.logo small {
    font-family: 'Ablation', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4f6357;
}

h1.logo-titre {
    font-size: 3.8rem;
    color: #fff;
    font-family: 'Ablation', cursive;
    margin-bottom: 12px;
    text-shadow: 0 3px 16px rgba(0,0,0,.55);
}

/* NAV DESKTOP */
.main-nav {
    margin-left: auto;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px 6px;
}

.main-nav li {
    width: auto;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 8px;
    position: relative;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #27ae60;
    transition: 0.3s;
}

.main-nav a:hover::after,
.main-nav .active a::after {
    width: 100%;
}

.main-nav .active a { color: #2c7a4b; }

/* BOUTON MOBILE */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1280px) {
    .nav-toggle {
        display: block;
        order: 2;
    }

    .header-inner {
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

    .main-nav.open {
        display: block !important;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 12px 0;
        gap: 6px;
        align-items: stretch;
    }

    .main-nav li { width: 100%; }

    .main-nav a {
        display: block;
        text-align: left;
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        color: #1f4332;
    }

    .main-nav a span { position: relative; display: inline-block; }

    .main-nav a span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 2px;
        background: #27ae60;
        transition: width 0.3s ease;
    }

    .main-nav a::after { display: none; }

    .main-nav a:hover span::after,
    .main-nav .active a span::after { width: 100%; }

    .main-nav a:hover,
    .main-nav .active a {
        background: #f2f7f1;
    }
}


@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        z-index: 1100;
    }


    .header-inner {
        width: 100%;
        padding-inline: 16px;
    }

    .logo-img { height: 44px; }
    .logo-text > span { font-size: 1.1rem; }
}

/* ═══ BOUTONS ═══════════════════════════════════════════════ */
.btn-primary {
    display: inline-block;
    padding: 13px 26px;
    background: var(--accent-cta);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.18s, transform 0.12s;
}
.btn-primary:hover { background: #0C7A2E; transform: translateY(-1px); }

.btn-secondary {
    display: inline-block;
    padding: 13px 26px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,.7);
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.btn-outline {
    display: inline-block;
    padding: 11px 22px;
    background: transparent;
    color: #2c7a4b;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #2c7a4b;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #2c7a4b; color: #fff; }

.btn-white {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: #fff;
    color: #1e4d2b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s;
}
.btn-white:hover { background: #e8f5ec; }

/* ═══ EN-TÊTE DE SECTION ════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    color: #1e1e1e;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #2c7a4b;
    margin: 8px auto 0;
    border-radius: 2px;
}
.section-header p {
    max-width: 560px;
    margin: 12px auto 0;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.contact-page {
    padding: 80px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
    gap: 32px;
    align-items: start;
}
.contact-card {
    background: var(--surface);
    border: 1px solid rgba(24, 46, 30, 0.08);
    box-shadow: var(--shadow-soft);
    border-radius: 28px;
    padding: 36px;
}
.contact-form-card {
    padding: 40px;
}
.contact-info-card {
    padding: 32px 36px;
}
.contact-form {
    width: 100%;
}
.contact-field {
    margin-bottom: 22px;
}
.contact-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2a3c32;
}
.contact-input {
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: 1px solid #d8dfd8;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-input:focus {
    outline: none;
    border-color: #2c7a4b;
    box-shadow: 0 0 0 4px rgba(44, 122, 75, 0.12);
}
.contact-field--focused .contact-input {
    border-color: #2c7a4b;
}
.contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.contact-field--half {
    margin-bottom: 0;
}
.contact-field-error {
    display: block;
    margin-top: 10px;
    color: #9b2c2c;
    font-size: 0.95rem;
}
.contact-input--error {
    border-color: #9b2c2c;
}
.contact-submit {
    text-align: right;
    margin-top: 4px;
}
.form-message {
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 26px;
    font-size: 0.98rem;
}
.form-message--success {
    background: #eef7ef;
    color: #1d4b2a;
    border: 1px solid rgba(44, 122, 75, 0.18);
}
.form-message--error {
    background: #fdf0f0;
    color: #7a1e1e;
    border: 1px solid rgba(155, 44, 44, 0.18);
}
.contact-info-list {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}
.contact-info-list strong {
    display: block;
    margin-bottom: 8px;
    color: #1e4d2b;
}
.contact-info-list p,
.contact-info-list ul {
    margin: 0;
    color: #5e6b62;
    font-size: 0.96rem;
    line-height: 1.8;
}
.contact-info-list ul {
    list-style: none;
    padding-left: 0;
}
.contact-info-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
}
.contact-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c7a4b;
}

@media (max-width: 950px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-submit {
        text-align: left;
    }
}

/* ═══ HERO-HOME ══════════════════════════════════════════════ */
.hero-home {
    position: relative;
    width: 100%;
    height: 82vh;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease, filter 0.6s ease;
    z-index: 0;
    /* Brighten images slightly to make them more luminous */
    filter: brightness(1.08) contrast(1.03) saturate(1.06);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    /* reduce the dark tint so images stay luminous but keep some contrast */
    background: linear-gradient(
        to right,
        rgba(0,0,0,.28) 0%,
        rgba(0,0,0,.14) 60%,
        rgba(0,0,0,.04) 100%
    );
}

.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-home-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    /* texte à gauche comme l'exemple */
    justify-content: flex-start;
    pointer-events: none;
    padding: 0 8% 0;
}

.hero-home-content {
    max-width: 560px;
    text-align: left;
    pointer-events: auto;
}

/* Light, high-contrast panel to ensure text remains readable on bright images */
.hero-text-panel {
    position: relative;
    color: var(--text, #183423);
    padding: 30px 26px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 10px 32px rgba(24,46,30,0.08));
    min-width: 320px;
    /* Largeur explicite pour la même raison que .hero-content :
       container-type a besoin d'une taille de référence indépendante
       du contenu, sinon le pavé peut s'effondrer. */
    width: min(560px, 90vw);
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,196,83,0.18);
    /* Le panneau devient un "conteneur de requête" : les unités cqi ci-dessous
       se calculent sur SA largeur à lui, et non sur celle de la fenêtre (vw). */
    container-type: inline-size;
    container-name: hero-panel;
}

.hero-text-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    /* backdrop-filter: blur(18px); */
    /* -webkit-backdrop-filter: blur(18px); */
    z-index: 0;
}

.hero-text-panel::after {
    content: "";
    position: absolute;
    inset: -18px;
    background: radial-gradient(circle at center,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.10) 24%,
        rgba(255,255,255,0.04) 45%,
        rgba(255,255,255,0.00) 70%
    );
    filter: blur(18px);
    -webkit-filter: blur(18px);
    z-index: 1;
    pointer-events: none;
}

.hero-text-panel::before,
.hero-text-panel::after {
    border-radius: inherit;
}

.hero-text-panel > * {
    position: relative;
    z-index: 2;
}

.hero-text-panel h1,
.hero-text-panel .logo-titre {
    color: #00C453;
    /* cqi = % de la largeur du conteneur .hero-text-panel (pas de la fenêtre).
       12cqi ≈ le texte occupe environ 12% x nb de caractères de la largeur du panneau,
       ce qui garde "HARMONIVERT" dans la boîte quelle que soit sa taille réelle.
       Ajuste ce 12 si le texte du logo change de longueur. */
    font-size: clamp(1.8rem, 12cqi, 4.8rem);
    line-height: 1.02;
    margin-bottom: 14px;
    white-space: nowrap;
}

/* Filet de sécurité pour les très rares navigateurs sans support des container queries
   (ils retombent sur l'ancien comportement basé sur la largeur de la fenêtre) */
@supports not (container-type: inline-size) {
    .hero-text-panel h1,
    .hero-text-panel .logo-titre {
        font-size: clamp(1.8rem, 5vw, 4.8rem);
        white-space: normal;
    }
}
.hero-text-panel .hero-eyebrow {
    color: #1f6b3d;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.hero-text-panel .hero-sub {
    color: #0f4b2b;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 22px;
}
.hero-text-panel .btn-primary { background: var(--accent, #2c7a4b); color: #fff; }
.hero-text-panel .btn-secondary { border-color: rgba(44,122,75,0.22); color: var(--text, #183423); background: transparent; }

@media (max-width: 900px) {
    .hero-text-panel {
        background: rgba(255,255,255,0.95);
        padding: 24px 20px;
    }
    .hero-text-panel .hero-eyebrow { color: #4f6c5a; }
    .hero-text-panel .hero-sub { color: #55695d; }
    .hero-slide { filter: brightness(1.02) contrast(1.02); }
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 28px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.hero-highlights > div {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,196,83,0.18);
    border-radius: 18px;
    padding: 14px 15px;
    box-shadow: 0 8px 24px rgba(10, 61, 35, 0.10);
}

.hero-highlights strong {
    display: block;
    color: #00C453;
    font-size: 1.28rem;
    line-height: 1.1;
    margin-bottom: 6px;
}

.hero-highlights span {
    display: block;
    color: #24553b;
    font-size: 0.94rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero-highlights {
        grid-template-columns: 1fr;
    }
}

/* Points de navigation */
.hero-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-nav button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-nav button.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ═══ SECTION EXPERTISE ══════════════════════════════════════ */
.section-expertise {
    padding: 80px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.expertise-card {
    padding: 32px 28px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
}
.expertise-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.09);
    transform: translateY(-3px);
}

.expertise-icon {
    width: 54px;
    height: 54px;
    background: #e8f5ec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.expertise-icon img { width: 32px; height: 32px; object-fit: contain; }
.expertise-icon--placeholder { font-size: 1.6rem; color: #2c7a4b; }

.expertise-card h3 {
    font-size: 1.05rem;
    color: #1e1e1e;
    margin-bottom: 10px;
}

.expertise-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
}

.expertise-link {
    font-size: 0.88rem;
    color: #2c7a4b;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s;
}
.expertise-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .expertise-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ═══ SECTION PROJETS ════════════════════════════════════════ */
.section-projects {
    padding: 80px 0;
    background: #f8f8f6;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
}

.projects-header h2 { font-size: 1.6rem; margin-bottom: 6px; }
.projects-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #666;
}

/* Grille asymétrique : grande image gauche + 2 petites empilées droite */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}

.project-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    line-height: 0;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: brightness(0.9);
}

.project-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.55);
}

/* Grande image : s'étend sur les 2 rangées */
.project-item--large {
    grid-row: 1 / 3;
    min-height: 420px;
}

.project-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.4;
}

.project-item:hover .project-item-title { opacity: 1; }

@media (max-width: 700px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-item--large { grid-row: auto; min-height: 260px; }
}

/* ═══ SECTION TÉMOIGNAGES ════════════════════════════════════ */
.section-testimonials {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    padding: 32px 28px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
}

.stars {
    color: #f5a623;
    font-size: 1.05rem;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.testimonial-card blockquote {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: #1e1e1e;
}

.testimonial-author span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #888;
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ═══ SECTION CTA BANDEAU ════════════════════════════════════ */
.section-cta {
    background: linear-gradient(90deg, #00C453 0%, #00A63A 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    background-image: radial-gradient(circle at 20% 50%, rgb(0 196 83) 0%, #000000 60%), radial-gradient(circle at 80% 50%, rgba(0, 166, 58, .18) 0%, transparent 60%);
}

.section-cta-inner h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.section-cta-inner p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    max-width: 500px;
    margin: 0 auto;
}

/* ═══ HERO PAGES INTERNES ════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    min-height: 64vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.12) 100%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.16) 100%);
}

/* .hero-content : simple conteneur invisible qui centre le vrai pavé
   (.hero-text-panel, imbriqué dedans — voir basic-page.php). Il ne porte
   plus de fond/bordure/ombre lui-même pour éviter une double-boîte. */
.hero-content {
    position: relative;
    z-index: 2;
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-content > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #00C453;           /* vert comme sur la home */
    text-shadow: none;
}

/* Le vrai pavé visible sur les pages internes : .hero-text-panel imbriqué
   dans .hero-content. Par défaut il a une largeur fixe de 560px pensée
   pour la home et aucun margin auto → il restait collé à gauche.
   On l'élargit et on le centre explicitement ici. */
.hero-content .hero-text-panel {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-content .hero-text-panel h1 {
    /* Les titres de pages internes sont des h1 "bruts" (pas de classe
       logo-titre) et peuvent être plus longs que "HARMONIVERT" sur la home :
       on autorise le retour à la ligne au lieu du nowrap hérité, et on
       recalcule la taille sur la largeur réelle de ce pavé (900px). */
    font-size: clamp(1.7rem, 7cqi, 3.6rem);
    white-space: normal;
    overflow-wrap: break-word;
}

.hero p {
    color: #0f4b2b;
    text-shadow: none;
}

@media (max-width: 900px) {
    .hero-content .hero-text-panel {
        padding: 24px 20px;
    }
}
/* ═══ GRILLE SERVICES ════════════════════════════════════════ */
.grid-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

/* ═══ GALERIE PHOTOS ═════════════════════════════════════════ */
.photos-item {
    display: block;
    position: relative;
    overflow: hidden;
    background: #000;
    line-height: 0;
    border-radius: 18px;
    min-height: 240px;
    transition: transform 0.45s ease, box-shadow 0.35s ease;
}

.photos-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: brightness(0.92);
}

.photos-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(27, 70, 38, 0.12);
}

.photos-item:hover img { transform: scale(1.08); filter: brightness(0.58); }

.photos-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    padding: 16px;
    background: linear-gradient(to top, rgba(10,20,10,.78), rgba(10,20,10,0));
}

.photos-item:hover .photos-item-overlay { opacity: 1; }
.photos-item-overlay > i { font-size: 2rem; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

.photos-item-caption {
    font-size: 0.82rem;
    color: rgba(255,255,255,.95);
    text-align: center;
    font-style: italic;
    line-height: 1.45;
    max-width: 220px;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

.photos-grid .grid_item { padding: 8px !important; }

.photos-grid .grid_item { padding: 4px !important; }

.photos-item--hidden { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.photos-item--visible { opacity: 1; transform: translateY(0); }

/* ═══ RÉALISATIONS (AVANT / ÉTUDE 3D / PENDANT / APRÈS) ══════ */
.section-realisations {
    padding: 60px 0 20px;
}

.realisations-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.realisation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.realisation-title {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 18px;
}

.realisation-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.realisation-step {
    margin: 0;
}

/* .realisation-step-img porte aussi la classe .photos-item : elle hérite
   du zoom au survol, de l'overlay et des filtres déjà définis plus haut.
   On ne surcharge ici que ce qui lui est propre. */
.realisation-step-img {
    aspect-ratio: 1 / 1;
    min-height: 0;
    cursor: zoom-in;
}

.realisation-step figcaption {
    margin-top: 10px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--accent-cta);
}

@media (max-width: 700px) {
    .realisation-steps {
        grid-template-columns: 1fr;
    }

    .realisation-step-img {
        aspect-ratio: 4 / 3;
    }

    .realisation-card {
        padding: 20px;
    }
}

/* ═══ SECTION INTRO & MÉTHODE ═══════════════════════════════ */
.section-intro {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    padding: 64px 0 24px;
    align-items: center;
}

.intro-card {
    background: linear-gradient(135deg, #f7fbf8 0%, #ffffff 100%);
    border: 1px solid #e2ece5;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(27, 76, 46, 0.06);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #2c7a4b;
    font-weight: 700;
}

.intro-card h2 {
    font-size: 2rem;
    color: #183423;
    margin-bottom: 14px;
    line-height: 1.2;
}

.intro-card p {
    font-family: 'Montserrat', sans-serif;
    color: #57665e;
    line-height: 1.7;
    margin-bottom: 18px;
}

.intro-stats {
    display: grid;
    gap: 14px;
}

.intro-stat {
    background: #fff;
    border: 1px solid #e6ece8;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(27, 76, 46, 0.04);
}

.intro-stat span {
    display: block;
    font-size: 1.7rem;
    color: #2c7a4b;
    font-weight: 700;
    margin-bottom: 6px;
}

.intro-stat p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #5d6d65;
    font-size: 0.95rem;
}

.section-process {
    padding: 40px 0 80px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-card {
    background: #fff;
    border: 1px solid #e8eee9;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(22, 49, 35, 0.04);
}

.process-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f5ec;
    color: #2c7a4b;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.process-card strong {
    display: block;
    font-size: 1.03rem;
    color: #183423;
    margin-bottom: 8px;
}

.process-card p {
    font-family: 'Montserrat', sans-serif;
    color: #5f6f67;
    font-size: 0.93rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .section-intro {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .intro-card {
        padding: 24px;
    }
}

/* ═══ TEXTE INTRO ════════════════════════════════════════════ */
.home-intro {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 20px;
    border-radius: 14px;
    background: var(--surface);
    font-family: 'Montserrat', sans-serif;
    box-shadow: var(--shadow-soft);
}

.page-intro {
    background: var(--surface-soft);
    padding: 36px 28px;
    border-radius: 16px;
    margin: 36px 0;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.page-intro .page-summary-card h2 {
    font-size: 1rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--accent);
}

.page-intro .page-summary-card p {
    color: var(--muted);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .page-intro { grid-template-columns: 1fr; }
}

.page-collection {
    padding: 64px 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.collection-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.collection-card__media {
    display: block;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
}

.collection-card__tag {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 10px 16px;
    background: rgba(14, 45, 24, 0.82);
    color: #fff;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.collection-card__body {
    padding: 28px 24px;
}

.collection-card h3 {
    font-size: 1.18rem;
    margin-bottom: 14px;
    color: var(--text);
}

.collection-card p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 22px;
}

.collection-card h3 a {
    color: inherit;
    text-decoration: none;
}

.collection-card h3 a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .collection-grid { grid-template-columns: 1fr; }
}

.page-content {
    padding: 56px 0 20px;
}

.page-intro-card {
    background: linear-gradient(135deg, #f7fbf8 0%, #ffffff 100%);
    border: 1px solid #e2ece5;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(27, 76, 46, 0.06);
}

.page-intro-card h2,
.page-intro-card h3 {
    color: #183423;
    margin-bottom: 12px;
}

.page-intro-card p,
.page-intro-card li {
    font-family: 'Montserrat', sans-serif;
    color: #57665e;
    line-height: 1.75;
}

.page-gallery {
    padding: 20px 0 80px;
}

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.site-footer {
    background: #217144;
    border-top: 1px solid #00C453;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    padding: 46px 0 24px;
}

.footer-col h4 {
    font-size: 1,5rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col p {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 48px 0 32px;
    flex-wrap: wrap;
}

.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #666;
    max-width: 240px;
    margin-top: 10px;
}

.footer-nav h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
    color: #333;
}
.footer-nav ul { list-style: none; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
}
.footer-nav a:hover { color: #2c7a4b; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #00C453;
    background: #015121;
    color: #fff;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-inner {
    width: min(1200px, 92%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p,
.footer-bottom small {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    color: #ffffff;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
}
.footer-bottom a:hover { text-decoration: underline; color: #004B1F; }

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    color: #333;
    font-size: 1.1rem;
    text-decoration: none;
    margin: 0;
}
.footer-social a:hover { color: #2c7a4b; }

/* ═══ IMAGES DANS CKEDITOR ═══════════════════════════════════ */
.home-intro img,
.bp-intro__text img,
.page-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
