/* ===== SKAL — base : police, couleurs, typographie, boutons, utilitaires ===== */

/* ===== Police Quicksand (hébergée sur le site, aucune requête vers Google) ===== */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/quicksand-latin-300-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/quicksand-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/quicksand-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/quicksand-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/quicksand-latin-700-normal.woff2') format('woff2');
}

/* ===== Variables CSS ===== */
:root {
    --color-primary: #800000;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #666666;
    --font-title: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Titres avec première lettre stylisée */
h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.6rem;
    font-weight: 500;
}

.first-letter {
    color: var(--color-primary);
    font-size: 1.3em;
}

/* Ligne décorative sous les titres */
h1::after, h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1rem auto 0;
}

h2::after {
    margin: 1rem 0 0;
}

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #660000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

a.btn-submit {
    display: inline-block;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Utilitaires ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Mots très longs (adresse, référence…) : passage à la ligne plutôt que débordement. */
body {
    overflow-wrap: break-word;
}

main img {
    max-width: 100%;
}
