/* ============================================================
   VARIABLES CSS & DESIGN TOKENS
   ============================================================ */
:root {
    /* Couleurs primaires — teal #00768e (couleur principale marque) */
    --color-primary:        #00768e;
    --color-primary-light:  #0092AD;
    --color-primary-dark:   #004F60;

    /* Accent (CTA) — orange-rouge (cercle logo) */
    --color-accent:         #E05020;
    --color-accent-dark:    #B83A14;
    --color-accent-light:   #FEF0EB;

    /* Neutres */
    --color-bg:             #FFFFFF;
    --color-bg-subtle:      #F0F7F9;
    --color-bg-dark:        #002D38;
    --color-text:           #1A1A1A;
    --color-text-muted:     #5A6A7A;
    --color-border:         #E2E8F0;

    /* Sémantiques */
    --color-success:        #16A34A;
    --color-error:          #DC2626;

    /* Layout */
    --container-max:        1200px;
    --section-py:           clamp(3rem, 6vw, 6rem);
    --gap:                  clamp(1rem, 2vw, 2rem);

    /* Typographie */
    --font-sans:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading:         'Poppins', var(--font-sans);

    /* Effets */
    --radius-sm:            6px;
    --radius-md:            12px;
    --radius-lg:            20px;
    --shadow-sm:            0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md:            0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg:            0 8px 32px rgba(0, 0, 0, 0.12);
    --transition:           0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Décalage de bas de page pour la barre mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 62px;
    }
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem);     font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem);  font-weight: 600; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }

p { margin-bottom: 0; }

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

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Garantit que l'attribut HTML hidden est respecté même quand le CSS
   redéfinit display (ex: display:flex sur .form-message) */
[hidden] { display: none !important; }

svg {
    flex-shrink: 0;
}

/* ============================================================
   LAYOUT UTILITAIRES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section-py {
    padding-block: var(--section-py);
}

.bg-subtle { background-color: var(--color-bg-subtle); }
.bg-dark    { background-color: var(--color-bg-dark); }
.text-center { text-align: center; }

/* En-têtes de section */
.section-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 640px;
}

.text-center .section-subtitle {
    margin-inline: auto;
}

/* ============================================================
   ACCESSIBILITÉ — SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    text-decoration: none;
    transition: top var(--transition);
}

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