/* =====================================================
   domaines.css — Charte Raildome
   Police Avenir, couleurs #18F6EF / #4280C0
   ===================================================== */

/* ---------- HERO ---------- */
.domaineHero {
    position: relative;
    width: 100%;
    height: 620px;          
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: #111;
}

.domaineHero .heroImg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;         
}

.domaineHero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 35%;            /* dégradé réduit, juste pour lisibilité du titre */
    background: linear-gradient(to top, rgba(17,17,17,0.75) 0%, transparent 100%);
    z-index: 1;
}

.domaineHero .heroTitre {
    position: relative;
    z-index: 2;
    padding: 0 6% 44px 6%;
    color: #fff;
    font-size: 4.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    font-family: Avenir, sans-serif;
}

/* ---------- BANDEAU SÉPARATEUR BLANC ---------- */
.domainesBandeau {
    width: 100%;
    height: 30px;
}

/* ---------- SECTION POINTS FORTS (fond blanc) ---------- */
.sectionPointsForts {
    padding: 55px 0 65px;
}

.pointsFortsTitle {
    text-align: center;
    margin-bottom: 50px;
}

.pointsFortsTitle h2 {
    font-family: Avenir, sans-serif;
    font-weight: bold;
    font-size: 2rem;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0;
}

.pointsFortsGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
}

.pointFortItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 175px;
    text-align: center;
}

.hexaWrap {
    width: 200px;
    height: 200px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.hexaWrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pointFortItem p {
    font-family: Avenir, sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    color: #222;
    letter-spacing: 0.03em;
    margin: 0;
    line-height: 1.4;
}

/* ---------- SECTIONS TEXTE FOND SOMBRE ---------- */
.domaineSectionSombre {
    position: relative;
    width: 100%;
    padding: 70px 0;
    background-color: #111111;
    background-image: url('/images/domaines/Raildome_Site_Web_Fonds2.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.domaineSectionSombre .container {
    position: relative;
    z-index: 1;
}

/* ---------- LAYOUT TEXTE + IMAGE ---------- */
.domaineContenu {
    display: flex;
    align-items: center;
    gap: 60px;
}

.domaineContenu.reverse {
    flex-direction: row-reverse;
}

.domaineContenu .txtBloc {
    flex: 1 1 55%;
}

.domaineContenu .imgBloc {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur hexagonal pour l'image latérale */
.hexaImgWrap {
    position: relative;
    width: 350px;
    height: 350px;
}

.hexaImgWrap::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #4280C0 0%, #18F6EF 100%);
    opacity: 0.18;
    z-index: 0;
}

.hexaImgWrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    z-index: 1;
}

/* ---------- TITRES H2 AVEC POLYGONE — sections sombres ---------- */
.domaineTitreSection {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.domaineTitreSection .polygoneTitre {
    width: 55px;
    height: auto;
    flex-shrink: 0;
    margin-top: 4px;
    display: block;     /* s'assurer qu'il est visible */
}

.domaineTitreSection h2 {
    font-family: Avenir, sans-serif;
    font-weight: bold;
    font-size: 2rem;    /* même taille que le h1 points forts */
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

/* ---------- SECTION BLANCHE intermédiaire (même structure que sombre) ---------- */
.domaineSectionBlanc {
    padding: 70px 0;    /* même padding que .domaineSectionSombre */
}

/* Couleurs texte sections sombres */
.domaineSectionSombre .domaineContenu p,
.domaineSectionSombre .domaineContenu ul li {
    font-family: Avenir, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 12px;
}

/* Couleurs texte + h2 sections blanches intermédiaires */
.domaineSectionBlanc .domaineContenu p,
.domaineSectionBlanc .domaineContenu ul li {
    font-family: Avenir, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.domaineSectionBlanc .domaineTitreSection h2 {
    color: #1a1a1a;     /* h2 noir sur fond blanc */
}

.domaineContenu ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.domaineContenu ul li {
    margin-bottom: 4px;
}

.domaineSectionSombre .domaineContenu ul li::marker {
    color: #18F6EF;
}

.domaineSectionBlanc .domaineContenu ul li::marker {
    color: #4280C0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 576px) {
    .domaineHero {
        height: 320px;
    }

    .domaineHero .heroTitre {
        font-size: 2.4rem;
        padding: 0 4% 28px 4%;
    }

    .pointsFortsTitle h2 {
        font-size: 1.3rem;
    }

    .sectionPointsForts {
        padding: 40px 0 45px;
    }

    .pointsFortsGrid {
        gap: 22px 28px;
    }

    .pointFortItem {
        width: 130px;
    }

    .hexaWrap {
        width: 110px;
        height: 110px;
    }

    .domaineContenu,
    .domaineContenu.reverse {
        flex-direction: column;
        gap: 28px;
    }

    .domaineContenu .imgBloc {
        display: none;
    }

    .domaineTitreSection h2,
    .domaineTitreSectionB h2 {
        font-size: 1.4rem;
    }

    .domaineTitreSection .polygoneTitre {
        width: 38px;
    }

    .domaineSectionSombre,
    .domaineSectionBlanc {
        padding: 45px 0;
    }

    .domainesBandeau {
        height: 16px;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .domaineHero {
        height: 400px;
    }

    .domaineHero .heroTitre {
        font-size: 3rem;
    }

    .domaineContenu,
    .domaineContenu.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .domaineContenu .imgBloc {
        display: none;
    }

    .domaineTitreSection h2,
    .domaineTitreSectionB h2 {
        font-size: 1.7rem;
    }

    .pointFortItem {
        width: 145px;
    }

    .hexaWrap {
        width: 120px;
        height: 120px;
    }

    .domaineSectionSombre,
    .domaineSectionBlanc {
        padding: 55px 0;
    }

    .domainesBandeau {
        height: 20px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .domaineHero {
        height: 500px;
    }

    .hexaImgWrap {
        width: 250px;
        height: 250px;
    }

    .domaineTitreSection h2,
    .domaineTitreSectionB h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .domaineHero {
        height: 560px;
    }

    .hexaImgWrap {
        width: 275px;
        height: 275px;
    }
}