/* =================================================================
   Arkema ESOP 2026 — styles responsive
   ================================================================= */

/* -- Tablette (≤ 1024px) ----------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --gutter: 4rem;
    }

    .site-header__main {
        flex-wrap: wrap;
        gap: 2rem 1.5rem;
    }
    .site-header__nav {
        order: 4;
        flex: 0 0 100%;
        justify-content: flex-start;
    }
    .site-header__nav-list {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }

    /* Hero : repasse en mode empil\u00e9 (image puis texte) */
    .hero,
    .index-hero,
    .strategie-hero,
    .offre-hero {
        position: static;
    }
    .hero__media,
    .index-hero__media,
    .strategie-hero__media,
    .offre-hero__media {
        width: 100%;
        margin-left: 0;
    }
    .hero__content,
    .index-hero__content,
    .strategie-hero__content,
    .offre-hero__content {
        position: static;
        width: 100%;
        padding: 4rem var(--gutter);
    }
    .index-hero__content {
        align-items: flex-start;
        text-align: left;
    }
    .hero__title,
    .strategie-hero__title { font-size: 2.6rem; }
    .index-hero__edition,
    .index-hero__title     { font-size: 2.6rem; }
    .offre-hero__title     { font-size: 2.6rem; }

    .quick-access {
        padding: 4rem var(--gutter) 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .president {
        flex-direction: column;
        margin: 4rem var(--gutter);
    }
    .president__media {
        flex: 0 0 auto;
        max-height: 320px;
    }
    .president__media img {
        border-bottom-right-radius: 80px;
    }
    .president__content {
        padding: 3rem;
        gap: 2rem;
    }
    .president__body {
        column-count: 1;
    }

    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .site-footer__links {
        flex-wrap: wrap;
        gap: 1rem 2rem;
        justify-content: flex-start;
    }

    /* -- Index ---------------------------------------------------- */
    .index-content {
        padding: 4rem var(--gutter);
    }
    .index-content__title {
        font-size: 2.6rem;
    }

    /* -- Strat\u00e9gie & Objectifs ----------------------------------- */
    .strategie-content {
        padding: 4rem var(--gutter);
    }
    .strategie-content__title { font-size: 2.6rem; }
    .strategie-section__title,
    .strategie-callout__title { font-size: 2rem; }

    .quick-access--3 {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 var(--gutter) 4rem;
    }
    .quick-access--2 {
        padding: 0 var(--gutter) 4rem;
    }

    /* -- Simulateur — page d'entr\u00e9e -------------------------------- */
    .simulator-entry__cards {
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }
    .simulator-entry__card-company { font-size: 1.8rem; }

    /* -- Simulateur classique ------------------------------------ */
    .sim-cls__row {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .sim-cls__triple {
        grid-template-columns: 1fr;
    }
    .sim-cls__summary-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sim-cls__breakeven {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sim-cls__section-title { font-size: 2rem; }

    /* -- Simulateur boArd ---------------------------------------- */
    .sim-brd__columns {
        grid-template-columns: 1fr;
    }
    .sim-brd__row:not(.sim-brd__row--centered):not(.sim-brd__row--stack) {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .sim-brd__summary-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sim-brd__breakeven {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sim-brd__payroll-line {
        flex-direction: column;
        align-items: stretch;
    }
    .sim-brd__section-title { font-size: 2rem; }

    /* -- Simulateur Step BY STEP --------------------------------- */
    .sim-sbs {
        padding: 20px;
    }
    .sim-sbs__row:not(.sim-sbs__row--stack) {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .sim-sbs__triple {
        grid-template-columns: 1fr;
    }
    .sim-sbs__summary-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sim-sbs__breakeven {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .sim-sbs__section-title { font-size: 2rem; }
    .sim-sbs__nav {
        flex-wrap: wrap;
    }

    /* -- Offre 2026 ----------------------------------------------- */
    .offre-content {
        padding: 4rem var(--gutter);
    }
    .offre-block__heading,
    .offre-content__title { font-size: 2.6rem; }
    .section-block__title,
    .section-callout__title,
    .section-card__eyebrow  { font-size: 2rem; }
    .section-card           { padding: 2rem; }
    .section-card--side-by-side {
        flex-direction: column;
        gap: 2rem;
    }
}

/* -- Mobile (≤ 640px) -------------------------------------------- */
@media (max-width: 640px) {
    :root {
        --gutter: 2rem;
    }

    .site-header__top {
        padding: 1rem var(--gutter);
    }

    /* Toggle hamburger sur mobile */
    .menu__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        cursor: pointer;
        order: 3;
    }
    .menu__btn > span,
    .menu__btn > span::before,
    .menu__btn > span::after {
        display: block;
        position: relative;
        width: 24px;
        height: 2px;
        background-color: var(--c-navy);
        transition: transform 0.2s, top 0.2s;
    }
    .menu__btn > span::before,
    .menu__btn > span::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .menu__btn > span::before { top: -7px; }
    .menu__btn > span::after  { top:  7px; }

    .site-header__nav-list {
        display: none;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        align-items: stretch;
    }
    #menu__toggle:checked ~ .site-header__nav-list {
        display: flex;
    }
    /* Items prennent toute la largeur du menu d\u00e9roul\u00e9 */
    .site-header__nav-list > li {
        width: 100%;
    }
    .site-header__nav-list > li > a {
        display: block;
        width: 100%;
    }

    .hero__title { font-size: 2.2rem; }
    .hero__period,
    .hero__price { font-size: 1.8rem; }

    .quick-access {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .president__title    { font-size: 2.6rem; }
    .president__greeting { font-size: 1.8rem; }

    /* -- Index ---------------------------------------------------- */
    .index-content__title    { font-size: 2.2rem; }
    .index-hero__edition,
    .index-hero__title       { font-size: 2.2rem; }
    .country-picker__head,
    .country-picker__list    { padding: 1.5rem; }

    /* -- Strat\u00e9gie & Objectifs ----------------------------------- */
    .strategie-hero__title,
    .strategie-hero__edition  { font-size: 2.2rem; }
    .strategie-hero__period,
    .strategie-hero__price    { font-size: 1.8rem; }
    .strategie-content__title { font-size: 2.2rem; }
    .strategie-section__title,
    .strategie-callout__title { font-size: 1.8rem; }
    .strategie-callout        { padding: 2rem; }
    .quick-access--3          { grid-template-columns: 1fr; }
    .quick-access--2          { grid-template-columns: 1fr; }
    .simulator-entry__cards   { grid-template-columns: 1fr; gap: 20px; }
    .simulator-entry__card    { padding: 25px; }

    /* -- Offre 2026 ----------------------------------------------- */
    .offre-hero__title,
    .offre-hero__edition  { font-size: 2.2rem; }
    .offre-hero__period,
    .offre-hero__price    { font-size: 1.8rem; }
    .offre-block__heading,
    .offre-content__title { font-size: 2.2rem; }
    .section-block__title,
    .section-callout__title,
    .section-card__eyebrow  { font-size: 1.8rem; }
    .section-callout        { padding: 1.5rem; }

    /* -- Documentation -------------------------------------------- */
    .doc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .doc-row__title { font-size: 1.8rem; }
    .doc-row__meta  { font-size: 1.4rem; }
    .doc-row__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    /* -- Contact -------------------------------------------------- */
    .contact-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-list {
        padding: 1.5rem;
        gap: 2.5rem;
    }

    /* -- Pages l\u00e9gales / sitemap ---------------------------------- */
    .sitemap-tree {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
