/* =========================================================
   VENTURI DECO — STRUCTURE ET MISE EN PAGE
   Conteneurs, sections, grilles et espacements
   ========================================================= */

/* Conteneur principal */
.container {
    width:
        min(
            calc(100% - (var(--page-padding) * 2)),
            var(--container-width)
        );

    margin-inline: auto;
}

/* Conteneur plus étroit pour les textes */
.container--small {
    max-width: var(--container-small);
}

/* Conteneur occupant toute la largeur */
.container--full {
    width: 100%;
}

/* Sections générales */
.section {
    position: relative;
    isolation: isolate;

    padding-block: var(--section-spacing);
}

/* Section légèrement plus petite */
.section--compact {
    padding-block:
        calc(
            var(--section-spacing) * 0.7
        );
}

/* Section sans espace supérieur */
.section--no-top {
    padding-top: 0;
}

/* Fonds de section */
.section--black {
    background: var(--color-black);
}

.section--surface {
    background: var(--color-surface);
}

.section--light {
    background: var(--color-white);
    color: var(--color-black);
}

.section--orange {
    background: var(--color-orange);
    color: var(--color-black);
}

/* En-tête d’une section */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);

    margin-bottom: var(--space-xl);
}

.section-header__content {
    max-width: 820px;
}

.section-header__description {
    max-width: 440px;
}

/* Petit titre orange placé au-dessus des grands titres */
.section-label {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: var(--space-md);

    color: var(--color-text-muted);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-label::before {
    content: "";

    flex: 0 0 34px;
    width: 34px;
    height: 2px;

    background: var(--color-orange);
}

/* Numéro décoratif d’une section */
.section-number {
    color: rgba(255, 255, 255, 0.28);

    font-family: var(--font-title);
    font-size: 1.5rem;
    line-height: 1;
}

/* Grille à deux colonnes */
.grid-2 {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: var(--space-xl);
}

/* Grille à trois colonnes */
.grid-3 {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: var(--space-lg);
}

/* Grille à quatre colonnes */
.grid-4 {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: var(--space-lg);
}

/* Deux colonnes de tailles différentes */
.grid-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, 0.85fr);

    gap: clamp(
        48px,
        8vw,
        120px
    );

    align-items: center;
}

/* Alignements */
.align-start {
    align-items: start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: end;
}

/* Groupe vertical */
.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stack--small {
    gap: var(--space-sm);
}

.stack--large {
    gap: var(--space-xl);
}

/* Groupe horizontal */
.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

/* Carte ou surface sombre générique */
.surface {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);

    box-shadow: var(--shadow-small);
}

/* Image occupant entièrement son bloc */
.media-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Séparation entre deux grandes zones */
.section-divider {
    border-top: 1px solid var(--color-border);
}

/* Évite les débordements dans les grilles */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.grid-content > * {
    min-width: 0;
}