/* ═══════════════════════════════════════════════════════════
   common.css — chiroparis.net
   Reset · Variables · Base · Animations · Utilitaires communs
   Chargé sur TOUTES les pages
   ═══════════════════════════════════════════════════════════ */

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

/* ── TOUCH & CHROME OPTIMIZATIONS ── */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a, button, [role="button"] { touch-action: manipulation; }
button, .btn-primary, .btn-secondary, .sn-cta, .sn-lang-btn { min-height: 44px; }
input, select, textarea { font-size: 16px; }
img { max-width: 100%; height: auto; }
@media (hover: none) {
  #site-nav .sn-links>li>a:hover,
  #site-nav .sn-links>li>button:hover { background: none; color: #7A7A7A; }
}

/* ── VARIABLES ── */
:root {
  --cream:      #F7F4EF;
  --warm-white: #FDFCFA;
  --charcoal:   #1C1C1C;
  --text:       #2E2E2E;
  --muted:      #7A7A7A;
  --gold:       #B8965A;
  --gold-light: #D4B07A;
  --border:     #E0DAD0;
  --section-bg: #F0EBE2;
}

/* ── BASE TYPOGRAPHIE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BOUTONS COMMUNS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--charcoal); }
.btn-primary svg { width: 16px; height: 16px; transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.15);
  padding: 13px 28px;
  transition: color .2s, border-color .2s;
  min-height: 44px;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ── PAGE HERO (pages secondaires) ── */
.page-hero {
  padding-top: 82px;
  background: var(--charcoal);
}
.page-hero-inner {
  padding: 80px 80px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.breadcrumb {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.15); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
}

/* ── SECTION BASES ── */
.section-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
}

/* ── LANG SWITCHER (overlay) ── */
[data-lang="fr"] [data-en],
[data-lang="en"] [data-fr] { display: none; }
[data-lang="fr"] [data-fr],
[data-lang="en"] [data-en] { display: inline; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 8000;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
  border-radius: 2px;
}
.cookie-banner p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  flex: 1;
}
.cookie-banner p a {
  color: var(--gold);
  text-decoration: none;
}
.cookie-accept {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
  min-height: 40px;
}
.cookie-accept:hover { background: #fff; color: var(--charcoal); }

/* ── RESPONSIVE COMMUN ── */
@media (max-width: 860px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 28px 52px;
    gap: 40px;
  }
}
@media (max-width: 560px) {
  .page-hero-inner { padding: 50px 20px 44px; }
}

/* ── Blocs de langue (pages légales) ── */
[lang="en"] .lang-fr { display: none !important; }
[lang="fr"] .lang-en { display: none !important; }

/* ── OPTIMISATIONS MOBILE IPHONE ── */
@media(max-width:560px){
  /* Typographie */
  h1,h2{ font-size:clamp(28px,7vw,42px); }
  h3{ font-size:clamp(18px,5vw,24px); }

  /* Sections — padding compact */
  .section, [class*="-section"], section{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  /* Boutons pleine largeur sur petits écrans */
  .btn-primary, .btn-secondary{
    width:100%;text-align:center;justify-content:center;
  }

  /* Images — ne pas dépasser l'écran */
  img{ max-width:100%;height:auto; }

  /* Grilles → 1 colonne */
  [class*="-grid"]:not(.mm-split){
    grid-template-columns:1fr !important;
  }
}

/* Safe area iPhone (notch + home bar) */
@supports(padding:max(0px)){
  #site-nav{
    padding-left:max(16px, env(safe-area-inset-left));
    padding-right:max(16px, env(safe-area-inset-right));
  }
  #mobile-menu{
    padding-bottom:env(safe-area-inset-bottom);
  }
}

/* ── Sticky CTA Mobile (toutes pages) ── */
#mobile-sticky-cta{
  display:none;
}
@media(max-width:860px){
  #mobile-sticky-cta{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:900;
    gap:0;
    padding:0 0 env(safe-area-inset-bottom,0px);
    box-shadow:0 -2px 16px rgba(0,0,0,.12);
  }
  .msc-rdv{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--gold,#B8860B);
    color:#fff;
    font-size:14px;
    font-weight:600;
    letter-spacing:.04em;
    text-decoration:none;
    height:52px;
    -webkit-tap-highlight-color:transparent;
    transition:background .15s;
  }
  .msc-rdv:active{ background:#9a700a; }
  .msc-tel{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:100px;
    height:52px;
    background:#1C1C1C;
    color:#fff;
    font-size:13px;
    font-weight:500;
    border:none;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:background .15s;
  }
  .msc-tel:active{ background:#333; }
  /* Ajouter padding-bottom aux pages pour éviter que le footer soit caché */
  #site-footer{
    padding-bottom:calc(52px + env(safe-area-inset-bottom,0px)) !important;
  }
}

