@charset "utf-8";

/* ============================================================
   LES ARTISANS BRESSANS - STYLES DE BASE
   Version 2.0 - Janvier 2026
   ============================================================ */

/* ============================================================
   POLICES DE CARACTÈRES
   ============================================================ */

@font-face {
    font-family: 'ecriturePrimaire';
    src: url('../fonts/AlegreyaSansSC-Light.otf');
}

@font-face {
    font-family: 'AlegreyaSans-Light';
    src: url('../fonts/AlegreyaSans-Light.otf');
}

@font-face {
    font-family: 'ecritureBold';
    src: url('../fonts/AlegreyaSans-Bold.otf');
}

@font-face {
    font-family: 'Garet-Book';
    src: url('../fonts/Garet-Book.otf');
}

/* ============================================================
   VARIABLES CSS (PALETTE DE COULEURS)
   ============================================================ */

:root {
    /* Couleurs principales */
    --color-primary: #17596c;          /* Bleu-vert foncé */
    --color-primary-light: #437888;    /* Bleu-vert moyen */
    --color-secondary: #5cc9e0;        /* Cyan clair */
    --color-accent: #ce0000;           /* Rouge */
    --color-orange: #ff6600;           /* Orange (logo "i") */
    --color-success: #b3d236;          /* Vert lime */

    /* Couleurs neutres */
    --color-white: #fff;
    --color-black: #000;
    --color-gray-light: #e7e7e7;
    --color-gray-medium: #d2d3d5;
    --color-gray-dark: #636363;
    --color-text-dark: #1c1b21;
    --color-dark: #1c1b21;             /* Alias pour compatibilité */

    /* Typographie */
    --font-primary: 'ecriturePrimaire', Arial, sans-serif;
    --font-light: 'AlegreyaSans-Light', Arial, sans-serif;
    --font-bold: 'ecritureBold', Arial, sans-serif;
    --font-book: 'Garet-Book', Arial, sans-serif;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Layout */
    --max-width-content: 1200px;
    --max-width-site: 2200px;
}

/* ============================================================
   RESET ET BASE
   ============================================================ */

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

html {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    min-height: 100%;
    font-size: 1.2rem;
    width: 100%;
    max-width: var(--max-width-site);
    margin: 0 auto;
    background-color: var(--color-primary);
    color: var(--color-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   LAYOUT GÉNÉRAL
   ============================================================ */

#container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.tailleCorps {
    width: 100%;
    max-width: var(--max-width-content);
    padding: 0 var(--spacing-sm);
    margin: 0 auto;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

h1 {
    font-family: var(--font-bold);
    font-size: 2rem;
    text-align: center;
    margin: var(--spacing-md) 0;
    line-height: 1.2;
}

h2 {
    font-family: var(--font-bold);
    font-size: 1.8rem;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    text-align: center;
}

h3 {
    font-family: var(--font-bold);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.texteGras {
    font-family: var(--font-primary);
    font-weight: bold;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media screen and (max-width: 1275px) {
    body {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

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

@media screen and (max-width: 400px) {
    .tailleCorps {
        padding: 0 0.5rem;
    }

    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 325px) {
    .tailleCorps {
        max-width: 300px;
        padding: 0;
    }
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */

/* Skip link pour navigation clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--color-primary-light);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Label invisible mais accessible aux lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */

.marginTop05rem { margin-top: 0.5rem; }
.marginTop1rem { margin-top: 1rem; }
.marginTop2rem { margin-top: 2rem; }
.marginTop3rem { margin-top: 3rem; }
.marginTop5rem { margin-top: 5rem; }

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

/* ============================================================
   FIN DU FICHIER
   ============================================================ */
