/* Mot du Directeur — nouvelle structure éditoriale */
:root {
    --cner-navy: #0f2c59;
    --cner-gold: #bfa15f;
    --cner-gold-light: #d0ad61;
    --cner-text: #40566d;
    --cner-soft: #f5f7f9;
    --cner-line: #dfe6ed;
}

.editorial-container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.editorial-reading {
    width: min(820px, calc(100% - 48px));
    margin-inline: auto;
}

.director-hero {
    position: relative;
    overflow: visible;
    padding: clamp(76px, 9vw, 122px) 0;
    background: #0f2c59;
}

.director-hero__grid {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 500px;
    padding-right: 260px;
}

.director-hero__copy {
    max-width: 760px;
}

.director-hero__portrait {
    position: absolute;
    right: 0;
    bottom: -215px;
    width: 165px;
    margin: 0;
    z-index: 5;
}

.director-hero__portrait img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.director-hero__portrait figcaption {
    padding: 11px 2px 0;
    text-align: left;
}

.director-hero__portrait figcaption strong {
    display: block;
    color: #0f2c59;
    font-size: .95rem;
    font-weight: 800;
}

.director-hero__portrait figcaption span {
    display: block;
    margin-top: 3px;
    color: #718194;
    font-size: .78rem;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--cner-gold-light);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.director-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

/* INTRO */
.editorial-intro {
    padding: 125px 0 clamp(80px, 9vw, 120px);
    background: #fff;
}

.salutation {
    margin: 0 0 28px;
    color: var(--cner-navy);
    font-weight: 750;
}

.editorial-intro p,
.chapter-content p,
.editorial-conclusion p {
    color: var(--cner-text);
    font-size: 1.04rem;
    line-height: 1.88;
}

.editorial-intro .lead {
    color: var(--cner-navy);
    font-size: clamp(1.2rem, 1.7vw, 1.42rem);
    line-height: 1.65;
}

/* PORTAIL */
.portal-section {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 9vw, 110px) 0;
    background: #f8f3e8;
}

.portal-section::after {
    content: "";
    position: absolute;
    right: -170px;
    bottom: -100px;
    width: 650px;
    height: 310px;
    background: url("../images/pattern-road.svg") center / contain no-repeat;
    opacity: .08;
    pointer-events: none;
}

.section-title,
.section-lead,
.apps-grid,
.section-closing {
    position: relative;
    z-index: 1;
}

.section-title h2 {
    max-width: 720px;
    margin: 0 0 28px;
    color: var(--cner-navy);
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.15;
}

.section-lead,
.section-closing {
    max-width: 850px;
    color: var(--cner-text);
    font-size: 1.04rem;
    line-height: 1.8;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 42px 0;
    background: rgba(15,44,89,.12);
    border: 1px solid rgba(15,44,89,.12);
}

.app-item {
    min-height: 170px;
    padding: 28px;
    background: rgba(255,255,255,.88);
}

.app-item h3 {
    margin: 0 0 10px;
    color: var(--cner-navy);
    font-size: 1.05rem;
}

.app-item p {
    margin: 0;
    color: #53677a;
    font-size: .92rem;
    line-height: 1.65;
}

/* CHAPTERS */
.editorial-chapter {
    padding: clamp(76px, 9vw, 112px) 0;
    background: #fff;
}

.editorial-chapter--soft {
    background: var(--cner-soft);
}

.chapter-grid {
    display: grid;
    grid-template-columns: 155px minmax(0, 780px);
    gap: clamp(45px, 7vw, 90px);
    justify-content: center;
}

.chapter-index {
    padding-top: 7px;
    border-top: 2px solid var(--cner-gold);
}

.chapter-index span {
    display: block;
    margin-bottom: 8px;
    color: var(--cner-navy);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
}

.chapter-index small {
    color: #718194;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.chapter-content h2 {
    margin: 0 0 32px;
    color: var(--cner-navy);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.chapter-content p {
    margin: 0 0 1.35em;
}

.editorial-bullet {
    position: relative;
    margin-left: 0 !important;
    padding: 18px 20px 18px 24px;
    border-left: 3px solid var(--cner-gold);
    background: rgba(255,255,255,.68);
}

/* CONCLUSION */
.editorial-conclusion {
    position: relative;
    overflow: hidden;
    padding: clamp(85px, 10vw, 130px) 0;
    background: #fff;
    border-top: 1px solid #e3e9ef;
}

.editorial-conclusion::after {
    content: "";
    position: absolute;
    left: -150px;
    bottom: -90px;
    width: 700px;
    height: 330px;
    background: url("../images/pattern-road.svg") center / contain no-repeat;
    opacity: .12;
    transform: scaleX(-1);
    pointer-events: none;
}

.editorial-conclusion .editorial-reading {
    position: relative;
    z-index: 1;
}

.editorial-conclusion h2 {
    margin: 0 0 30px;
    color: #0f2c59;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.editorial-conclusion p {
    color: #40566d;
}

.editorial-conclusion .closing-message {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #dfe6ed;
    color: #0f2c59;
    font-weight: 650;
}

/* RESPONSIVE */
@media (max-width: 820px) {
    .director-hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

    .chapter-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .chapter-index {
        width: 110px;
    }
}

@media (max-width: 560px) {
    .editorial-container,
    .editorial-reading {
        width: min(100% - 32px, 1120px);
    }

    .director-hero {
        padding: 58px 0 70px;
    }

    .director-hero h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

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

    .app-item {
        min-height: 0;
    }
}

/* Signature du Directeur */
.director-signature {
    position: relative;
    width: fit-content;
    min-width: 260px;
    margin: 52px 0 0 auto;
    padding-top: 20px;
    text-align: right;
}

.director-signature::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 2px;
    background: #bfa15f;
}

.director-signature strong {
    display: block;
    color: #0f2c59;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.director-signature span {
    display: block;
    margin-top: 5px;
    color: #718194;
    font-size: .88rem;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .director-signature {
        min-width: 0;
        margin-top: 40px;
    }
}

/* INTRODUCTION — portrait désormais placé dans le hero */
.editorial-intro {
    padding: clamp(90px, 9vw, 120px) 0;
    background: #fff;
}

/* Mobile : le portrait revient dans le flux sous le titre */
@media (max-width: 820px) {
    .director-hero__portrait {
        width: 180px;
        margin: 0;
    }

    .director-hero__portrait figcaption strong,
    .director-hero__portrait figcaption span {
        color: #fff;
    }
}

@media (max-width: 560px) {
    .director-hero__portrait {
        width: 155px;
    }
}




/* Portrait du hero : adaptation tablette/mobile */
@media (max-width: 900px) {
    .director-hero__grid {
        min-height: 0;
        padding-right: 0;
    }

    .director-hero__portrait {
        position: relative;
        right: auto;
        bottom: auto;
        width: 160px;
        margin: 34px 0 -70px auto;
    }

    .editorial-intro {
        padding-top: 105px;
    }
}

@media (max-width: 560px) {
    .director-hero__portrait {
        width: 140px;
        margin-bottom: -58px;
    }

    .editorial-intro {
        padding-top: 88px;
    }
}
