/* ═══════════════════════════════════════════════════════════════════
   SCI Les Tilleuls — Design System
   Palette bleu nuit + vert immobilier · typo Inter · fond clair
   ═══════════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --color-navy:            #14232E;
    --color-navy-light:      #203542;

    --color-primary:         #176B52;
    --color-primary-hover:   #10513E;
    --color-primary-soft:    #E7F1ED;

    --color-accent:          #C39A5B;
    --color-accent-soft:     #F7F0E5;

    --color-white:           #FFFFFF;
    --color-background:      #F5F7F7;
    --color-background-secondary: #EEF2F1;

    --color-text:            #17211E;
    --color-text-secondary:  #65716D;
    --color-text-light:      #8A9692;

    --color-border:          #DDE4E1;
    --color-border-strong:   #C8D2CE;

    --color-success:         #157347;
    --color-success-soft:    #E7F5ED;

    --color-warning:         #9A6700;
    --color-warning-soft:    #FFF4D6;

    --color-danger:          #B42318;
    --color-danger-soft:     #FEF0EF;

    --shadow-xs: 0 1px 2px  rgba(20,35,46,0.04);
    --shadow-sm: 0 4px 14px rgba(20,35,46,0.06);
    --shadow-md: 0 12px 32px rgba(20,35,46,0.09);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --container-width: 1240px;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ─── Reset & bases ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }
ul { margin-top: 0; }

h1, h2, h3, h4 {
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.22; }
h3 { font-size: 1.15rem; line-height: 1.35; }
h4 { font-size: 1rem; line-height: 1.4; }

/* ─── Utilitaires ──────────────────────────────────────────────── */

.container {
    width: min(calc(100% - 32px), var(--container-width));
    margin-inline: auto;
}

.text-secondary { color: var(--color-text-secondary); }
.text-small { font-size: 0.875rem; }
.text-strong { font-weight: 600; }
.text-primary { color: var(--color-primary); }
.text-danger  { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-right { text-align: right; }
.text-center { text-align: center; }

.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }  .mb-2 { margin-bottom: 16px; }  .mb-3 { margin-bottom: 24px; }  .mb-4 { margin-bottom: 32px; }

.hide-mobile { display: initial; }
@media (max-width: 768px) { .hide-mobile { display: none; } }

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

/* Focus visible : anneau vert pour tous les éléments interactifs */
:focus-visible {
    outline: 3px solid rgba(23,107,82,0.22);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
