@font-face {
    font-family: 'Cormorant Garamond';
    src: url('CormorantGaramond-LightItalic.woff2') format('woff2'),
        url('CormorantGaramond-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('CormorantGaramond-Light.woff2') format('woff2'),
        url('CormorantGaramond-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Typo */
    --font-base: sans-serif;
    --font-accent: "Cormorant Garamond", serif;
    --font-size: 16px;
    --font-2: 2rem;
    --font-3: 3rem;
    --font-4: 4rem;

    /* Couleurs — thème clair */
    --color-bg: #ffffff;
    --color-bg-2: #eeeeee;
    --color-bg-3: #dddddd;
    --color-text: #222222;
    --color-text-0: #000000;
    --color-text-2: #444444;
    --color-text-3: #666666;

    --color-clair: #f2f2f2;
    --color-sombre: #222233;
    --color-primary: #0050C2;
    --color-accent: #ff9966;

    /* Style */
    --radius: 1rem;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

    /* Espacements */
    --space-1: 1rem;
    --space-2: 2rem;
    --space-3: 3rem;
    --space-4: 4rem;

    /* Layout */
    --max-width: 1200px;

    --section-bg: rgba(0, 0, 0, 0.03);

    --z-panneau2: 20;
    --z-panneau1: 30;
    --z-barre-app: 40;
    --z-fixe: 100;
    --z-banniere: 1000;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111122;
        --color-bg-2: #222233;
        --color-bg-3: #333344;
        --color-text: #e8e8f2;
        --color-text-0: #ffffff;
        /* pour du texte vif */
        --color-text-2: #b8b8c2;
        --color-text-3: #9a9ab3;

        --color-primary: #6da8ff;

        --shadow: 0 2px 6px rgba(0, 0, 0, 0.6);

        --section-bg: rgba(255, 255, 255, 0.03);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0 auto;
    padding: 0;
    height: 100%;
}

body {
    position: relative;
    /* safe areas Android + iOS */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    height: 100%;
    width: 100%;
    overflow: auto;
    font-family: var(--font-base);
    font-size: var(--font-size);
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text);
}

h1 {
    margin-bottom: var(--space-2);
    font-size: 1.8rem;
    font-weight: normal;
}

h2 {
    margin-bottom: var(--space-2);
    font-size: 1.4rem;
    font-weight: normal;
}

p {
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

section[class^="section-"] {
    padding: var(--space-4) 0;
    background: var(--section-bg);
}

a {
    color: var(--color-text);
    text-decoration: none;
}

img,
video {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    fill: var(--color-text);
}

figure {
    margin: 0;
}

.tag {
    margin-bottom: 1.5rem;
    font-size: .85rem;
    display: inline-block;
}

.titre {
    margin: var(--space-3) 0 var(--space-1) 0;
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 3rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text-0);
}

.sous-titre {
    margin: 0 auto 2rem auto;
    font-family: var(--font-accent);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--color-text-2);
}

 .texte {
    margin: 0 auto 2rem auto;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 100;
    line-height: 1.25;
    letter-spacing: -.5px;
    color: var(--color-text-0);
}

.boutons {
    margin-top: 1.5rem;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--space-2);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: opacity 0.2s ease;
}

.button--primaire {
    background: var(--color-primary);
    color: #fff;
}

.button--secondaire {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.button:hover {
    opacity: 0.85;
}

.media {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media>* {
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    .media {
        padding: 0 1rem 0 0;
    }
}



/* Vue : pied */
.pied {
    margin: 0 auto;
    padding: var(--space-3) var(--space-1);
    background: var(--color-bg-2);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pied .logo svg {
    width: 180px;
    height: 180px;
}

.pied .titre {
    color: var(--color-primary);
}

.pied .sous-titre {
    color: var(--color-text-2);
}

.pied .texte {
    text-align: center;
}

.pied .boutons {
    margin-top: 1.5rem;
}


/* Vue : en tête */
.entete {
    padding: 0;
    background: var(--color-bg-2);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.entete .logo {
    min-width: 60px;
    display: flex;
    align-items: center;
    fill: var(--color-text);
}

.entete .identite {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    text-align: center;
}

.entete .identite .titre {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 600;
}

.entete .identite .sous-titre {
    margin : 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.entete .espace {
    width: 60px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.entete .espace a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.entete .espace svg {
    width: 40px;
    height: 40px;
}
.entete .espace span {
    font-size: smaller;
    line-height: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .entete {
        flex-direction: row;
        align-items: center;
    }

    .entete .identite .titre {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .entete .logo svg {
        width: 60px;
        height: 60px;
    }
}

/* Vue : action */
.action {
    padding: var(--space-3) var(--space-1);
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    flex-direction: column;
}

.action .tag {
    margin-bottom: 1.5rem;
    padding: .35rem .75rem;
    color: var(--color-text-3);
}

.action .titre {
    color: var(--color-primary);
}

.action .media > * {
    border-radius: var(--radius) var(--radius) 0 0;
}

.action .legende {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-text-3);
    background: var(--color-clair);
    padding: .35rem .75rem;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 1.5rem;
}


/* Vue : image fond */
.imageFond {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 28vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.imageFond > picture {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.imageFond > picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imageFond > div {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.imageFond .sousTitre {
    text-align: center;
}

/* Vue : accroche */
.accroche {
    padding: var(--space-3) var(--space-1);
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    flex-direction: column;
}


/* Vue : paragraphe */
.section {
    padding: var(--space-2) var(--space-1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .section {
        margin: auto;
        max-width: var(--max-width);
        flex-direction: row;
        align-items: center;
    }
}
