/* ============================================================
   AGPI-NEUF.FR — Feuille de style principale
   Palette : #0faff3 (bleu) | #2e2e2e (charcoal) | #c69d57 (or)
             #ebe7d9 (crème) | #f4f6f8 (fond page)
   Police : Inter (locale) — moderne, lisible, accessible
   ============================================================ */

/* Police système — Inter/sans-serif */
:root {
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Variables CSS ────────────────────────────────────────── */
:root {
    --blue:       #0faff3;
    --blue-dark:  #0b8ec4;
    --blue-light: #e0f7fe;
    --charcoal:   #2e2e2e;
    --charcoal-2: #3a3a3a;
    --gold:       #c69d57;
    --gold-light: #f5edd8;
    --cream:      #ebe7d9;
    --bg:         #f4f6f8;
    --white:      #ffffff;
    --text:       #1a1a1a;
    --text-2:     #4b5563;
    --text-3:     #9ca3af;
    --border:     #e5e7eb;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.12);
    --transition: 0.22s ease;
    --font:       'Inter', system-ui, -apple-system, sans-serif;
    --max-width:  1240px;
    --header-h:   70px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
button { font-family: var(--font); cursor: pointer; border: none; }
ul, ol { list-style: none; }
main { flex: 1; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1440px; }

.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 96px 0; }
.section--dark { background: var(--charcoal); }
.section--blue { background: var(--blue); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

/* ── Typographie ──────────────────────────────────────────── */
.h1, h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.2; }
.h2, h2 { font-size: clamp(20px, 3vw, 32px); font-weight: 700; line-height: 1.3; }
.h3, h3 { font-size: clamp(16px, 2vw, 22px); font-weight: 600; line-height: 1.4; }
.h4, h4 { font-size: 16px; font-weight: 600; line-height: 1.5; }

.text-blue   { color: var(--blue); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-2); }
.text-light  { color: var(--text-3); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 12px;
}
.section-label::before {
    content: ''; display: inline-block;
    width: 24px; height: 2px; background: var(--blue); border-radius: 2px;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
    transition: all var(--transition); white-space: nowrap;
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--blue); color: var(--white);
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-dark); border-color: var(--blue-dark);
    color: var(--white); transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,175,243,0.35);
}
.btn--gold {
    background: var(--gold); color: var(--white);
    border-color: var(--gold);
}
.btn--gold:hover {
    background: #b08840; border-color: #b08840;
    color: var(--white); transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198,157,87,0.35);
}
.btn--outline {
    background: transparent; color: var(--blue);
    border-color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue); color: var(--white);
    transform: translateY(-1px);
}
.btn--outline-white {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,0.1); color: var(--white);
}
.btn--dark {
    background: var(--charcoal); color: var(--white);
    border-color: var(--charcoal);
}
.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--lg { padding: 15px 34px; font-size: 15px; }
.btn--full { width: 100%; }

/* ── Formulaires ──────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 12px; font-weight: 500;
    color: var(--text-2); margin-bottom: 5px; letter-spacing: 0.03em;
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: var(--font); color: var(--text);
    background: var(--white); transition: border-color var(--transition);
    appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(15,175,243,0.12);
}
.form-input.error { border-color: #ef4444; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; }
.form-success { font-size: 13px; color: #16a34a; margin-top: 8px; font-weight: 500; }

/* RGPD consent */
.rgpd-field { margin: 12px 0; }
.rgpd-label {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 11.5px; color: var(--text-2); line-height: 1.55; cursor: pointer;
}
.rgpd-label input[type="checkbox"] {
    flex-shrink: 0; width: 16px; height: 16px;
    accent-color: var(--blue); margin-top: 1px;
}
.rgpd-label a { color: var(--blue); text-decoration: underline; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ── Badges & Tags ────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.badge--blue  { background: var(--blue-light); color: var(--blue-dark); }
.badge--gold  { background: var(--gold-light); color: #7a5c1e; }
.badge--green { background: #dcfce7; color: #166534; }
.badge--dark  { background: var(--charcoal); color: var(--white); }
.badge--new   { background: var(--blue); color: var(--white); }

/* ── Alertes ──────────────────────────────────────────────── */
.alert-success {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    color: #166534; padding: 14px 18px; border-radius: var(--radius);
    font-size: 14px; margin: 16px 0;
}
.alert-error {
    background: #fef2f2; border: 1px solid #fecaca;
    color: #991b1b; padding: 14px 18px; border-radius: var(--radius);
    font-size: 14px; margin: 16px 0;
}

/* ── Grid utilitaires ─────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Cookie banner ────────────────────────────────────────── */
#cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: var(--charcoal); color: var(--white);
    border-radius: var(--radius-lg); padding: 18px 24px;
    max-width: 580px; width: calc(100% - 40px);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 20px;
    z-index: 9999; font-size: 13px; line-height: 1.5;
    border: 1px solid rgba(255,255,255,0.08);
    animation: slideUp 0.4s ease-out;
}
#cookie-banner p { flex: 1; }
#cookie-banner a { color: var(--blue); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--blue); color: #fff;
    padding: 8px 16px; border-radius: 8px; font-size: 13px;
    font-weight: 600; font-family: var(--font);
}
.btn-cookie-refuse {
    background: transparent; color: rgba(255,255,255,0.6);
    padding: 8px 14px; border-radius: 8px; font-size: 13px;
    font-family: var(--font); border: 1px solid rgba(255,255,255,0.2);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── CTA sticky mobile ────────────────────────────────────── */
.cta-sticky-mobile {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--charcoal);
    padding: 12px 16px;
    z-index: 800;
    border-top: 2px solid var(--blue);
    gap: 10px;
}
.cta-sticky-mobile a {
    flex: 1; text-align: center; padding: 11px 8px;
    border-radius: var(--radius); font-size: 13px; font-weight: 600;
}
.cta-sticky-mobile .tel-btn {
    background: var(--gold); color: var(--white);
}
.cta-sticky-mobile .rappel-btn {
    background: var(--blue); color: var(--white);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }
    .section--lg { padding: 64px 0; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .cta-sticky-mobile { display: flex; }
    body { padding-bottom: 64px; }
    #cookie-banner { flex-direction: column; align-items: flex-start; bottom: 80px; }
    .cookie-actions { width: 100%; }
    .btn-cookie-accept, .btn-cookie-refuse { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
    .btn--lg { padding: 13px 22px; font-size: 14px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .site-header, .cta-sticky-mobile, #cookie-banner,
    .site-footer-nav { display: none !important; }
    body { background: white; color: black; }
}
