/*
Theme Name:  Guirec Hypnose
Theme URI:   https://guirec-hypnose.fr
Author:      Guirec
Description: Thème sur mesure — hypnothérapeute, mobile-first, SEO optimisé
Version:     1.0
Text Domain: guirec-hypnose
*/

/* ============================================================
   TOKENS & VARIABLES
   ============================================================ */
:root {
  /* Palette */
  --c-ink: #1a1a2e;
  /* texte principal */
  --c-muted: #5a5a72;
  /* texte secondaire */
  --c-subtle: #9090a8;
  /* texte tertiaire / placeholders */
  --c-line: #e4e4f0;
  /* bordures */
  --c-surface: #f7f7fc;
  /* fond clair */
  --c-white: #ffffff;

  /* Accent principal — bleu ardoise apaisant */
  --c-accent: #3d5a8a;
  --c-accent-dk: #2c4269;
  --c-accent-lt: #eef2f8;

  /* CTA — vert sauge chaleureux */
  --c-cta: #4a7c6f;
  --c-cta-dk: #375e54;
  --c-cta-lt: #edf5f3;

  /* Typographie */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Outfit', system-ui, sans-serif;
  --f-mono: 'DM Mono', monospace;

  /* Tailles de texte — échelle modérée */
  --t-xs: 0.75rem;
  /*  12px */
  --t-sm: 0.875rem;
  /*  14px */
  --t-base: 1rem;
  /*  16px */
  --t-md: 1.125rem;
  /*  18px */
  --t-lg: 1.375rem;
  /*  22px */
  --t-xl: 1.75rem;
  /*  28px */
  --t-2xl: 2.25rem;
  /*  36px */
  --t-3xl: 3rem;
  /*  48px */

  /* Espacements */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w: 1280px;
  --max-w-text: 680px;
  --header-h: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 180ms;
}

/* ============================================================
   RESET MINIMAL
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/*
  FONTS AUTO-HÉBERGÉES — zéro dépendance Google
  ─────────────────────────────────────────────
  Fichiers à obtenir via l'une de ces méthodes (voir README) :

  A) Optimisation locale (recommandé) :
     pip install fonttools brotli
     pyftsubset "Fraunces[SOFT,WONK,opsz,wght].woff2" \
       --output-file="Fraunces[wght].woff2" --flavor=woff2 \
       --layout-features="*" --axes="wght=400:700" \
       --unicodes="U+0020-007E,U+00A0-00FF,U+0152-0153,U+02BC,U+02C6,U+2013-2014,U+2018-2019,U+201C-201D,U+20AC,U+2122"
     (même commande pour Fraunces-Italic et Outfit)

  B) Via Google Fonts (le plus simple) :
     Ouvrir dans un navigateur :
     https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Outfit:wght@400;500;600&display=swap
     Télécharger chaque fichier .woff2 mentionné dans le CSS généré.

  Placer dans : /wp-content/themes/guirec-hypnose/assets/fonts/

  Tailles cibles après optimisation :
    Fraunces[wght].woff2         : ~35 kb  (vs 191 kb brut)
    Fraunces-Italic[wght].woff2  : ~33 kb  (vs 185 kb brut)
    Outfit[wght].woff2           : ~18 kb  (vs  89 kb brut)
    TOTAL                        : ~86 kb  (vs 465 kb brut)
*/

/* ── Fraunces variable — titres, graisses 400–700 ── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/fraunces.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153,
    U+02BC, U+02C6, U+2013-2014, U+2018-2019,
    U+201C-201D, U+20AC, U+2122;
}

/* ── Fraunces italic — hero alt, blockquotes, graisses 400–600 ── */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/Fraunces-Italic[wght].woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153,
    U+02BC, U+02C6, U+2013-2014, U+2018-2019,
    U+201C-201D, U+20AC, U+2122;
}

/* ── Outfit variable — corps de texte, graisses 400–600 ── */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/outfit.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153,
    U+02BC, U+02C6, U+2013-2014, U+2018-2019,
    U+201C-201D, U+20AC, U+2122;
}

body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   TYPOGRAPHIE GLOBALE
   ============================================================ */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--t-2xl);
}

h2 {
  font-size: var(--t-xl);
}

h3 {
  font-size: var(--t-lg);
}

h4 {
  font-size: var(--t-md);
}

p {
  color: var(--c-muted);
}

strong {
  font-weight: 600;
  color: var(--c-ink);
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--text {
  max-width: var(--max-w-text);
}

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

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

/* CTA principal — vert sauge */
.btn--cta {
  background: var(--c-cta);
  color: var(--c-white);
}

.btn--cta:hover {
  background: var(--c-cta-dk);
  box-shadow: 0 4px 16px rgba(74, 124, 111, 0.3);
}

/* Secondaire — outline accent */
.btn--outline {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}

.btn--outline:hover {
  background: var(--c-accent-lt);
}

/* Ghost blanc (sur fond coloré) */
.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Taille large (hero) */
.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--t-base);
}


/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.site-main {
  min-height: 60vh;
  background: #ffe5b2;
  border: 2px solid #000
}

/* ============================================================
   SECTIONS — base commune
   ============================================================ */
.section {
  padding: var(--sp-16) 0;
}

.section--sm {
  padding: var(--sp-8) 0;
}

.section--surface {
  background: var(--c-surface);
}

.section__header {
  margin-bottom: var(--sp-12);
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.section__title {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-4);
}

.section__desc {
  font-size: var(--t-md);
  color: var(--c-muted);
  max-width: 540px;
  margin-inline: auto;
}

/* ============================================================
   RESPONSIVE — tablette et desktop
   ============================================================ */
@media (min-width: 768px) {

  h1 {
    font-size: var(--t-3xl);
  }

  h2 {
    font-size: var(--t-2xl);
  }

  .section {
    padding: var(--sp-24) 0;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }
}

/* ============================================================
   ACCESSIBILITÉ — focus visible
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   PERFORMANCE — réduction animations
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}