/* ======================================================================
   base.css — Fondations : fonts, reset, boutons atomiques, utilitaires
   globaux (affichage conditionnel, focus clavier, span.block).
   Chargé après tokens.css, avant components.css et responsive.css.
   ====================================================================== */

/* ---- Fonts self-hosted (RGPD : pas de transfert IP vers Google) ---- */
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/bebas-neue-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/dm-sans-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/dm-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/dm-sans-700.woff2') format('woff2');
}

/* ---- Reset + racine ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--noir); color: var(--blanc); overflow-x: hidden; }

/* ---- Boutons atomiques (softer-modern, S5.12) ----
   Polish : radius 8px, easing cubic-bezier moderne, feedback tactile `:active`
   scale 0.97, shadows subtiles. Palette conservée (or / noir / blanc).
   Variations primary vs secondary : primary reste or plein mais hover
   or-sombre (garde la marque), secondary prend une border warm transparent-or
   (rgba 0.35) pour nuancer le blanc pur de l'ancien.

   btn-primary       : CTA principal plein or. Variante --outline pour fond or.
   btn-secondary     : CTA secondaire, bord or-transparent léger.
   btn-rdv           : variante nav compacte (touch-target WCAG 44px).
   btn-contact       : transparent + bord or (cards, pricing).
   btn-calendly      : transparent + bord or (nav RDV). */

.btn-primary { background: var(--or); color: var(--noir); padding: 1.2rem var(--space-12); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; border: none; border-radius: var(--radius-2); cursor: pointer; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); text-decoration: none; display: inline-block; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.btn-primary:hover { background: var(--or-sombre); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary--outline { background: transparent; border: 2px solid var(--or); color: var(--or); box-shadow: none; }
.btn-primary--outline:hover { background: var(--or); color: var(--noir); border-color: var(--or); }

.btn-secondary { background: transparent; color: var(--blanc); padding: 1.2rem var(--space-12); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; border: 2px solid rgba(212, 175, 55, 0.35); border-radius: var(--radius-2); cursor: pointer; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.btn-secondary:hover { border-color: var(--or); color: var(--or); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.18); }
.btn-secondary:active { transform: scale(0.97); }

/* Touch target ≥ 44×44 px intégré (H22, WCAG SC 2.5.5) */
.btn-rdv { background: var(--or); color: var(--noir); padding: 0.6rem var(--space-4); border: none; border-radius: var(--radius-2); font-family: 'DM Sans', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); text-decoration: none; white-space: nowrap; text-align: center; font-size: 0.85rem; min-height: var(--touch-target); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.btn-rdv:hover { background: var(--or-sombre); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3); }
.btn-rdv:active { transform: scale(0.97); }
.btn-contact { background: transparent; border: 2px solid var(--or); color: var(--or); box-shadow: none; }
.btn-contact:hover { background: var(--or); color: var(--noir); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25); }
.btn-calendly { background: transparent; border: 2px solid var(--or); color: var(--or); box-shadow: none; }
.btn-calendly:hover { background: var(--or); color: var(--noir); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25); }

/* ---- Utilitaires d'affichage device-conditionnel (mobile-first : valeur
   par défaut = mobile, remontée en desktop dans responsive.css). ---- */
.desktop-only { display: none; }
.mobile-only { display: inline; }

/* ---- Accessibilité globale (WCAG / RGAA) ----
   H9 : focus clavier visible partout (pas au clic souris grâce à :focus-visible).
   H23 : span.block remplace les <br> de layout dans H1/H2 pour meilleur
         rendu lecteurs d'écran et adaptation mobile. */
*:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
h1 .block, h2 .block { display: block; }

/* S5.4 — `prefers-reduced-motion` : neutralise les animations/transitions et
   le scroll lisse pour les utilisateurs qui demandent une expérience sans
   mouvement (vestibular disorders, WCAG 2.3.3). Les vidéos sont mises en
   pause côté JS (voir main.js). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
