/*
 * PAGE D'ACCUEIL — la porte d'entrée du site
 *
 * Feuille volontairement courte et autonome : cette page doit s'afficher
 * tout de suite. Le site complet (style.css) est préchargé en arrière-plan.
 * Les emoji et leurs couleurs viennent de emoji.css.
 */

:root {
    --ink: #161616;
    --ink-deep: #0e0e0e;
    --paper: #f7f4ef;
    --sand: #ddccb4;
    --sand-deep: #c6ae91;
    --accent: #a6404e;
    --line: rgba(247, 244, 239, 0.18);
    --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    --sans: 'Montserrat', Arial, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--ink);
}

body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--sand);
    outline-offset: 4px;
}

/* ─────────────  La grande page  ───────────── */

.porte {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    min-height: 0;
}

/* Les respirations verticales suivent la hauteur de la fenêtre : sur un
   écran bas, la page se resserre au lieu de pousser le bandeau dehors. */
.porte-texte {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(18px, 3vh, 40px);
    padding: clamp(24px, 3.6vh, 56px) clamp(28px, 5vw, 84px);
}

/* Sans ça, le grand titre impose sa largeur minimale à toute la colonne
   et déborde de l'écran sur téléphone. */
.porte-texte > * {
    min-width: 0;
}

/* ─────────────  La marque  ───────────── */

.porte-marque {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    align-self: flex-start;
    text-decoration: none;
}

.porte-marque img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.porte-marque span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.porte-marque strong {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}

.porte-marque small {
    color: rgba(247, 244, 239, 0.55);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ─────────────  Le cœur de la page  ───────────── */

.porte-villes {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--sand);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.porte-coeur h1 {
    margin: clamp(13px, 2vh, 24px) 0 clamp(15px, 2.3vh, 26px);
    font-family: var(--serif);
    font-size: clamp(3.2rem, min(6.2vw, 9vh), 6.6rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.porte-coeur h1 em {
    color: var(--sand);
    font-style: italic;
    font-weight: 400;
}

.porte-lede {
    max-width: 40ch;
    color: rgba(247, 244, 239, 0.72);
    font-size: 14px;
    line-height: 1.85;
}

/* ─────────────  Le bouton d'entrée  ───────────── */

.porte-bouton {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: clamp(22px, 3.2vh, 38px);
    padding: clamp(16px, 2.2vh, 20px) 26px;
    border: 1px solid var(--sand);
    background: var(--sand);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 280ms ease, border-color 280ms ease, color 280ms ease, transform 280ms var(--ease);
}

.porte-bouton .ds-i {
    width: 19px;
    height: 19px;
    transition: transform 280ms var(--ease);
}

.porte-bouton:hover,
.porte-bouton:focus-visible {
    border-color: var(--paper);
    background: var(--paper);
    transform: translateY(-4px);
}

.porte-bouton:hover .ds-i,
.porte-bouton:focus-visible .ds-i {
    transform: translate(4px, -4px);
}

/* ─────────────  Les raccourcis  ───────────── */

.porte-raccourcis {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: clamp(22px, 3.4vh, 40px);
    padding-top: clamp(17px, 2.4vh, 26px);
    border-top: 1px solid var(--line);
    list-style: none;
}

.porte-raccourcis a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(247, 244, 239, 0.7);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 220ms ease;
}

.porte-raccourcis a:hover,
.porte-raccourcis a:focus-visible {
    color: var(--paper);
}

/* ─────────────  Le pied  ───────────── */

.porte-pied {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
}

.porte-pied a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(247, 244, 239, 0.5);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 220ms ease;
}

.porte-pied a:hover,
.porte-pied a:focus-visible {
    color: var(--sand);
}

/* ─────────────  L'image  ───────────── */

.porte-image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #2d2522;
}

/* La photo est calée en absolu : sinon sa hauteur naturelle (1800 px de haut
   pour 1316 de large) étire la colonne et pousse le bandeau hors de l'écran. */
.porte-image picture {
    position: absolute;
    inset: 0;
}

.porte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.porte-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(196deg, rgba(22, 22, 22, 0.34) 0%, rgba(22, 22, 22, 0) 42%, rgba(22, 22, 22, 0.62) 100%);
    content: '';
    pointer-events: none;
}

.porte-credit {
    position: absolute;
    bottom: clamp(20px, 3vw, 34px);
    left: clamp(20px, 3vw, 34px);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.porte-credit span {
    color: var(--sand);
}

.porte-sceau {
    position: absolute;
    top: clamp(20px, 3vw, 34px);
    right: clamp(20px, 3vw, 34px);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(247, 244, 239, 0.45);
    border-radius: 50%;
    background: rgba(22, 22, 22, 0.28);
    backdrop-filter: blur(6px);
}

.porte-sceau .ds-i {
    width: 26px;
    height: 26px;
}

/* ─────────────  Le bandeau du bas  ───────────── */

.porte-bandeau {
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    background: var(--ink-deep);
    white-space: nowrap;
}

.porte-piste {
    display: flex;
    width: max-content;
    animation: porte-defile 34s linear infinite;
}

.porte-serie {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
    color: var(--paper);
    font-family: var(--serif);
    font-size: 17px;
    font-style: italic;
    letter-spacing: 0.4px;
}

.porte-serie .ds-i {
    width: 21px;
    height: 21px;
    color: var(--sand);
}

@keyframes porte-defile {
    to { transform: translateX(-50%); }
}

/* ─────────────  Tablette  ───────────── */

@media (max-width: 1080px) {
    .porte {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    }

    .porte-lede {
        font-size: 13px;
    }
}

/* ─────────────  Téléphone : la photo passe derrière le texte  ───────────── */

@media (max-width: 900px) {
    .porte {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
    }

    .porte-image {
        position: absolute;
        inset: 0;
        min-height: 0;
    }

    .porte-image::after {
        background: linear-gradient(180deg, rgba(14, 14, 14, 0.82) 0%, rgba(14, 14, 14, 0.68) 38%, rgba(14, 14, 14, 0.93) 100%);
    }

    .porte-image img {
        object-position: center 18%;
    }

    .porte-credit {
        display: none;
    }

    .porte-sceau {
        top: clamp(24px, 6vw, 38px);
        right: clamp(20px, 5vw, 34px);
        width: 52px;
        height: 52px;
    }

    .porte-sceau .ds-i {
        width: 22px;
        height: 22px;
    }

    .porte-texte {
        position: relative;
        z-index: 1;
        min-height: calc(100svh - 60px);
        padding: clamp(30px, 7vw, 54px) clamp(24px, 7vw, 54px) clamp(34px, 8vw, 60px);
    }

    .porte-marque img {
        width: 44px;
        height: 44px;
    }

    .porte-serie {
        font-size: 15px;
        gap: 24px;
        padding-right: 24px;
    }

    .porte-serie .ds-i {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 560px) {
    .porte-coeur h1 {
        margin: 18px 0 20px;
        font-size: clamp(2.5rem, 11.2vw, 4.4rem);
    }

    .porte-bouton {
        justify-content: space-between;
        width: 100%;
        margin-top: 32px;
    }

    .porte-raccourcis {
        gap: 13px 20px;
        margin-top: 32px;
    }

    .porte-pied {
        gap: 10px;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
