/**
 * Alverhne Syndic
 * Design system global
 * Version 1.0
 */
/* =========================================================
   IDENTITE ALVERHNE SYNDIC
   ========================================================= */

:root {
    /* Identité historique */
    --alv-navy: #19384B;
    --alv-copper: #B96724;
    --alv-gold: #B96724;

    /* Nouvelle identité / Nos offres */
    --alv-blue-dark: #19384B;
    --alv-blue-deep: #073F66;
    --alv-blue: #075486;
    --alv-copper-modern: #B96724;
    --alv-green: #239B5B;

    /* Neutres */
    --alv-white: #FFFFFF;
    --alv-background: #FAFCFD;
    --alv-background-warm: #FBF9F3;
    --alv-border: #D8E3E8;
    --alv-muted: #667B88;
    --alv-text: #19384B;

    /* Layout */
    --alv-container: 1200px;
    --alv-radius-sm: 6px;
    --alv-radius: 12px;
    --alv-radius-lg: 20px;

    /* Ombres */
    --alv-shadow-sm: 0 4px 18px rgba(25, 56, 75, 0.08);
    --alv-shadow: 0 12px 35px rgba(25, 56, 75, 0.12);

    /* Transitions */
    --alv-transition: 200ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

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

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
color: var(--alv-text);
background: var(--alv-white);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
    margin-top: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ACCESSIBILITE
   ========================================================= */

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.alv-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.alv-section {
    padding-block: clamp(60px, 8vw, 110px);
}

.site-main {
    width: 100%;
    overflow: hidden;
}


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

h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.25;
}

p {
    margin-bottom: 1.25rem;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.alv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.alv-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE DE BASE
   ========================================================= */

@media (max-width: 767px) {

    .alv-container {
        width: min(100% - 30px, 1200px);
    }

    .alv-section {
        padding-block: clamp(45px, 12vw, 70px);
    }
}

@media (max-width: 390px) {

    .alv-container {
        width: calc(100% - 24px);
    }

    .alv-btn {
        width: 100%;
    }
}


/* =========================================================
   REDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
