/*
Theme Name: Orthodontie des Pins
Theme URI: https://www.rolland-orthodontie.fr
Author: Dr Rolland
Description: Thème WordPress sur mesure pour le cabinet Orthodontie des Pins - Dr Rolland, La Fare-les-Oliviers. Fait main, responsive, optimisé SEO et performance. Aucun page-builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orthodontie-pins
*/

/* ==========================================================================
   1. DESIGN SYSTEM — Variables
   ========================================================================== */
:root {
  /* Couleurs */
  --color-primary: #555c38;      /* Olive — couleur d'accentuation principale */
  --color-primary-dark: #3f4529;
  --color-accent: #bf6b48;       /* Terracotta — 2e accentuation, CTA */
  --color-accent-dark: #9d5435;
  --color-text: #2d2a1c;
  --color-text-light: #6b6850;
  --color-bg: #fffce9;           /* Crème */
  --color-bg-soft: #f7f1d6;
  --color-bg-tint: #eef0dd;
  --color-border: #e7e1c5;
  --color-white: #ffffff;

  /* Typographie */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Échelle fluide */
  --step--1: clamp(0.83rem, 0.78rem + 0.25vw, 0.95rem);
  --step-0: clamp(1rem, 0.93rem + 0.35vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);

  /* Layout */
  --max-width: 1180px;
  --gap: clamp(1rem, 4vw, 3rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 34, 56, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 34, 56, 0.12);
  --transition: 0.25s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1.2em; }

/* Accessibilité — lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

.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;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}
.container--narrow { max-width: 760px; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--compact { padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.section--soft { background: var(--color-bg-soft); }
.section--tint { background: var(--color-bg-tint); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   4. BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--white { background: #fff; color: var(--color-primary); }
.btn--white:hover { background: var(--color-accent); color: #fff; }
.btn--green { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn--green:hover { background: var(--color-primary); color: #fff; }
.btn--full { width: 100%; justify-content: center; }

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3.5rem 1.5rem;
  font-size: var(--step--1);
}
.site-footer h3 { color: #fff; font-size: var(--step-1); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-accent); }
/* Les boutons gardent leurs couleurs propres dans le footer (sinon texte blanc sur blanc) */
.site-footer .btn--white { color: var(--color-primary); }
.site-footer .btn--white:hover { color: #fff; }
.site-footer .btn--primary { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ==========================================================================
   6. UTILITAIRES
   ========================================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: var(--step-1); color: var(--color-text-light); font-family: var(--font-body); }
