/* 01. BANDEAU PANORAMIQUE — PHOTO PLEINE LARGEUR ET TEXTE SUPERPOSÉ */
.magazine-hero {
    position: relative;
    background: #fffefa;
}

.hero-picture {
    display: block;
    width: 100%;
}

.hero-photo {
    display: block;
    width: 100%;
    height: auto;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: min(1560px, calc(100% - 220px));
    margin: auto;
}

.hero-content h1 {
    width: 60%;
    margin: 0 0 22px;
    font-size: clamp(35px, 4.35vw, 78px);
    line-height: 1.02;
    letter-spacing: -2.7px;
}

.hero-content p {
    width: 57%;
    margin: 0 0 26px;
    color: var(--navy);
    font-size: clamp(16px, 1.55vw, 28px);
    line-height: 1.4;
}

.hero-button {
    min-width: 300px;
    justify-content: space-between;
    padding: 14px 28px;
    font-size: 21px;
}

.hero-button>span {
    font-size: 34px;
    line-height: 1;
}

.hero-heart {
    position: absolute;
    top: 6%;
    left: 0;
    color: var(--coral);
    font: 60px/1 Georgia, serif;
    transform: rotate(-21deg);
}

.hero-heart::before {
    content: "";
    position: absolute;
    top: 42px;
    left: -36px;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: #8fb8cf;
    box-shadow: -10px 20px 0 #8fb8cf;
    transform: rotate(28deg);
}

.hero-branch {
    position: absolute;
    width: 70px;
    height: 70px;
    bottom: 7%;
    left: -80px;
    fill: none;
    stroke: #9ac0d4;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width:1250px) {
    .hero-content {
        width: calc(100% - 100px);
    }

    .hero-content h1 {
        font-size: 4.2vw;
        letter-spacing: -1.8px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .hero-button {
        min-width: 245px;
        padding: 11px 22px;
        font-size: 17px;
    }

    .hero-heart {
        font-size: 42px;
        top: 3%;
    }

    .hero-branch {
        left: -43px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width:900px) {
    .hero-content {
        width: calc(100% - 60px);
    }

    .hero-content h1 {
        font-size: 4.1vw;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .hero-button {
        min-width: 210px;
        padding: 8px 18px;
        font-size: 14px;
    }

    .hero-button>span {
        font-size: 26px;
    }

    .hero-heart,
    .hero-branch {
        display: none;
    }
}

@media (max-width:650px) {
    .hero-content {
        position: relative;
        width: calc(100% - 40px);
        padding: 28px 0 34px;
    }

    .hero-content h1 {
        width: 100%;
        font-size: clamp(34px, 8.2vw, 50px);
        line-height: 1.06;
        letter-spacing: -1.5px;
        margin-bottom: 18px;
    }

    .hero-content p {
        width: 100%;
        font-size: 16px;
        margin-bottom: 22px;
    }

    .hero-button {
        min-width: 250px;
        padding: 12px 22px;
        font-size: 16px;
    }
}

/* =========================================================
   02. BARRE DES CINQ UNIVERS
   ========================================================= */
.category-rail {
    background: #e0f1fe;
}

.rail-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(1440px, calc(100% - 100px));
    margin: auto;
    min-height: 104px;
    align-items: center;
}

.rail-inner>a {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    min-width: 0;
    padding: 13px 26px;
    height: 78px;
}

.rail-inner>a:first-child {
    padding-left: 0;
}

.rail-inner>a:last-child {
    padding-right: 0;
}

.rail-inner>a+a::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 1px;
    background: #bfdbef;
}

.rail-inner svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.rail-inner .accent {
    stroke: var(--coral);
}

.rail-inner strong {
    display: block;
    margin-bottom: 5px;
    font: 700 22px/1.1 Georgia, serif;
    white-space: nowrap;
}

.rail-inner small {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.rail-inner a:hover strong {
    color: var(--coral-dark);
}

/* =========================================================
   03. CARTES ÉDITORIALES — PHOTOS DE LA MAQUETTE
   ========================================================= */
.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding-top: 19px;
}

.editorial-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: white;
}

.reference-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 458 / 185;
    overflow: hidden;
    background: #f1f0ec;
}

.reference-photo img {
    position: absolute;
    top: 0;
    left: calc(-100% * var(--photo-x) / var(--photo-width));
    width: calc(100% * 1536 / var(--photo-width));
    max-width: none;
    height: auto;
    transform: translateY(-66.015625%);
}

.card-copy {
    position: relative;
    min-height: 147px;
    padding: 14px 22px 12px;
}

.card-copy .eyebrow {
    font-size: 11px;
    margin-bottom: 8px;
}

.card-copy h2 {
    font-size: clamp(19px, 1.64vw, 25px);
    line-height: 1.03;
    letter-spacing: -.6px;
    margin: 0 0 8px;
}

.card-copy p {
    margin: 0;
    max-width: calc(100% - 40px);
    font-size: 14px;
    line-height: 1.25;
}

.card-arrow {
    position: absolute;
    right: 14px;
    bottom: 28px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #fce7e5;
    color: var(--coral);
    border-radius: 50%;
    font-size: 24px;
}

.editorial-card:hover {
    border-color: #e4aba6;
    box-shadow: var(--shadow);
}

/* =========================================================
   04. SUITE DE LA PAGE D'ACCUEIL
   ========================================================= */
.more-section {
    padding-top: 80px;
    padding-bottom: 65px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 12px 0 0;
}

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

.discovery-grid>a {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--blue-light);
}

.discovery-grid svg {
    width: 42px;
    height: 42px;
}

.discovery-grid .accent {
    stroke: var(--coral);
}

.discovery-grid h3 {
    margin: 18px 0 10px;
    font-size: 25px;
}

.discovery-grid p {
    max-width: 90%;
    margin-bottom: 0;
    font-size: 13px;
}

.discovery-grid b {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--coral);
}

.share-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 45px 55px;
    background: #e3f2fd;
    border-radius: 16px;
    margin-bottom: 40px;
}

.share-banner h2 {
    margin: 15px 0;
}

.share-banner p {
    margin: 0;
}

.share-banner .button {
    flex-shrink: 0;
}

/* =========================================================
   05. TABLETTES ET TÉLÉPHONES
   ========================================================= */
@media (max-width: 1250px) {
    .rail-inner {
        width: calc(100% - 60px);
    }

    .rail-inner>a {
        padding-inline: 15px;
        gap: 10px;
    }

    .rail-inner strong {
        font-size: 18px;
    }

    .rail-inner svg {
        width: 45px;
        height: 45px;
    }

    .rail-inner small {
        font-size: 11px;
    }

    .home-cards {
        gap: 20px;
    }

    .card-copy {
        padding: 16px;
        min-height: 170px;
    }

    .card-copy h2 {
        font-size: 22px;
    }

    .card-copy p {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .rail-inner {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px 0;
        gap: 10px;
        width: calc(100% - 40px);
    }

    .rail-inner>a {
        height: auto;
        padding: 12px !important;
    }

    .rail-inner>a+a::before {
        display: none;
    }

    .rail-inner strong {
        font-size: 16px;
        white-space: normal;
    }

    .rail-inner svg {
        width: 40px;
        height: 40px;
    }

    .home-cards {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 25px;
    }

    .editorial-card {
        display: grid;
        grid-template-columns: 40% 1fr;
    }

    .reference-photo {
        height: 100%;
        min-height: 190px;
        aspect-ratio: auto;
    }

    .reference-photo img {
        width: calc(1536 / var(--photo-width) * 100%);
    }

    .card-copy {
        min-height: 190px;
        padding: 25px;
    }

    .card-copy h2 {
        font-size: 25px;
    }

    .card-copy p {
        font-size: 13px;
    }

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

    .more-section {
        padding-top: 50px;
    }

    .share-banner {
        padding: 35px;
    }
}

@media (max-width: 600px) {
    .rail-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
        padding: 8px 0;
    }

    .rail-inner>a:last-child {
        grid-column: 1/-1;
        justify-content: center;
    }

    .rail-inner small {
        font-size: 11px;
    }

    .editorial-card {
        display: block;
    }

    .reference-photo {
        aspect-ratio: 458/185;
        min-height: 0;
        height: auto;
    }

    .card-copy {
        padding: 20px;
        min-height: 160px;
    }

    .card-copy h2 {
        font-size: 24px;
    }

    .card-copy p br {
        display: none;
    }

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

    .section-heading,
    .share-banner {
        align-items: start;
        flex-direction: column;
    }

    .share-banner {
        gap: 25px;
    }
}

/* Le panorama conserve toute son image ; le texte reste en HTML. */
