/* ==========================================================================
   Geneva Dental Clinic — jetons de design
   Source : maquette XD du 29/07/2026, artboard 1920 px, grille 12 colonnes,
   marges latérales 140 px, gouttière 16 px.
   Les tailles fluides sont calées pour retomber exactement sur les valeurs
   du XD à 1920 px de large, et se compresser proprement en dessous.
   ========================================================================== */

/* --- Polices, servies en local --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- Couleurs (relevées au pixel dans le XD) --- */
  --gdc-noir:   #14120E;
  --gdc-or:     #A07236;
  /* Aplat or portant du texte blanc. Le #A07236 du XD ne donne que 4,24:1
     contre le blanc, sous le seuil AA de 4,5:1 : ce ton, plus sombre de neuf
     unités, monte à 4,82:1 et reste indiscernable du doré de la marque.
     L'or du XD demeure la couleur des titres et des filets. */
  --gdc-or-fond: #96692F;
  --gdc-creme:  #EBE3D6;
  --gdc-blanc:  #FFFFFF;

  /* Dérivées, pour les états et les fonds */
  --gdc-or-clair:   #B98C52;
  --gdc-or-sombre:  #855C28;
  --gdc-noir-80:    rgba(20, 18, 14, .80);
  --gdc-noir-45:    rgba(20, 18, 14, .45);
  --gdc-texte:      var(--gdc-noir);
  --gdc-texte-inv:  var(--gdc-blanc);

  /* --- Typographie --- */
  --gdc-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Échelle fluide : la borne haute = valeur exacte du XD à 1920 px */
  --fs-hero:  clamp(2.25rem,  4.1667vw, 5rem);      /*  36 →  80 */
  --fs-h1:    clamp(2rem,     3.1250vw, 3.75rem);   /*  32 →  60 */
  --fs-h2:    clamp(1.75rem,  2.6042vw, 3.125rem);  /*  28 →  50 */
  --fs-h3:    clamp(1.375rem, 2.0833vw, 2.5rem);    /*  22 →  40 */
  --fs-body:  clamp(1.0625rem,1.5625vw, 1.875rem);  /*  17 →  30 */
  --fs-small: clamp(0.9375rem,1.3021vw, 1.5625rem); /*  15 →  25 */

  /* Interlignes relevés dans le XD : titres ~1.22, corps 1.23 à 1.67 */
  --lh-titre: 1.22;
  --lh-corps: 1.55;
  --lh-serre: 1.25;

  /* --- Rythme et gabarit --- */
  --gdc-max:      1920px;
  --gdc-marge:    clamp(1.25rem, 7.2917vw, 8.75rem); /* 20 → 140 */
  --gdc-gouttiere: clamp(1rem, 0.8333vw, 1rem);

  --esp-xs: clamp(0.5rem,  0.52vw, 0.625rem);
  --esp-s:  clamp(1rem,    1.04vw, 1.25rem);
  --esp-m:  clamp(1.5rem,  2.08vw, 2.5rem);
  --esp-l:  clamp(2.5rem,  4.17vw, 5rem);
  --esp-xl: clamp(4rem,    7.29vw, 8.75rem);

  /* --- Composants --- */
  --btn-h:      clamp(3.25rem, 6.30vw, 7.5625rem);   /* 52 → 121 (XD) */
  --btn-radius: 999px;
  --btn-px:     clamp(1.5rem, 2.6vw, 3.125rem);

  /* --- Mouvement : 0,3 s ease-out, valeur exacte du prototype XD --- */
  --gdc-transition: .3s ease-out;
}

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

body {
  font-family: var(--gdc-font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-corps);
  color: var(--gdc-texte);
  background: var(--gdc-blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--lh-titre);
  margin: 0 0 var(--esp-m);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); color: var(--gdc-or); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--esp-s); }

a { color: inherit; transition: color var(--gdc-transition); }

strong, b { font-weight: 700; color: var(--gdc-or); }

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

/* --- Conteneur calé sur la grille du XD --- */
.gdc-conteneur {
  width: 100%;
  max-width: var(--gdc-max);
  margin-inline: auto;
  padding-inline: var(--gdc-marge);
}

/* --- Bouton : rectangle arrondi bordé blanc, inversion au survol --- */
.gdc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-s);
  min-height: var(--btn-h);
  padding-inline: var(--btn-px);
  border: 2px solid currentColor;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background-color var(--gdc-transition),
              color var(--gdc-transition),
              border-color var(--gdc-transition);
}
.gdc-btn--clair { color: var(--gdc-blanc); }
.gdc-btn--clair:hover,
.gdc-btn--clair:focus-visible { background: var(--gdc-blanc); color: var(--gdc-noir); }

.gdc-btn--sombre { color: var(--gdc-noir); }
.gdc-btn--sombre:hover,
.gdc-btn--sombre:focus-visible { background: var(--gdc-noir); color: var(--gdc-blanc); }

.gdc-btn--or { color: var(--gdc-blanc); background: var(--gdc-or-fond); border-color: var(--gdc-or-fond); }
.gdc-btn--or:hover,
.gdc-btn--or:focus-visible { background: var(--gdc-or-sombre); border-color: var(--gdc-or-sombre); }

/* --- Hello Elementor peint tout button:hover/:focus en #c36 (magenta).
       Sa spécificité bat nos classes : on neutralise sur nos composants. --- */
.gdc-burger,
.gdc-burger:hover,
.gdc-burger:focus,
.gdc-burger:focus-visible,
.gdc-burger:active { background: transparent; }

.gdc-temoignage__puce:hover,
.gdc-temoignage__puce:focus,
.gdc-temoignage__puce:focus-visible { background: var(--gdc-or-clair); }
.gdc-temoignage__puce[aria-current="true"]:hover,
.gdc-temoignage__puce[aria-current="true"]:focus { background: var(--gdc-or); }

button.gdc-btn:hover,
button.gdc-btn:focus { background-color: inherit; }

/* --- Accessibilité : focus toujours visible --- */
:focus-visible {
  outline: 3px solid var(--gdc-or);
  outline-offset: 3px;
}

/* --- Respect des préférences de mouvement --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
