/*
Theme Name: SafiZone Dental
Theme URI: https://safizone.tn
Author: SafiZone
Description: Thème professionnel pour le cabinet dentaire Dr Wajdi Safi - Sfax. Inclut SafiZone Dental Pro 2026.
Version: 3.0.0
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: safizone
*/

/* =============================================
   SAFIZONE DENTAL — CHARTE VISUELLE v3
   Fidèle au cabinet : marbre blanc, crème chaud, vert lime
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  /* Palette extraite des photos réelles du cabinet */
  --cream:       #f5f0e8;    /* Fond crème chaud — murs du cabinet */
  --cream-light: #faf7f2;    /* Blanc cassé */
  --marble:      #e8e2d9;    /* Marbre clair — carrelage & cloisons */
  --lime:        #a8d44e;    /* Vert lime vif — chaises salle d'attente */
  --lime-dark:   #7db32a;    /* Vert foncé hover */
  --lime-pale:   #eef6d6;    /* Vert très pâle */
  --sand:        #c4b49a;    /* Sable/taupe — boiseries */
  --charcoal:    #2c2c2a;    /* Texte foncé */
  --taupe:       #7a7060;    /* Texte secondaire */
  --white:       #ffffff;
  --navy:        #2a3a6e;    /* Bleu marine — fauteuils dentaires */
  --gold:        #c9a84c;    /* Or — éclairage ambiant du cabinet */

  /* Typographie */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  /* Espacements & radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-pill: 100px;

  /* Transitions */
  --tr: .3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream-light);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── TYPO HELPERS ─── */
.serif { font-family: var(--serif); }

/* =============================================
   HEADER
   ============================================= */

:root { --header-h: 64px; }

header#masthead {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--marble);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  will-change: transform;
}

nav.sz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.sz-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sz-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sz-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sz-logo-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: .02em;
}
.sz-logo-sub {
  font-size: .68rem;
  font-weight: 400;
  color: var(--taupe);
  letter-spacing: .08em;
  text-transform: uppercase;
}

ul.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
ul.nav-links a {
  font-size: .88rem;
  font-weight: 400;
  color: var(--taupe);
  letter-spacing: .04em;
  transition: color var(--tr);
  position: relative;
}
ul.nav-links a:hover { color: var(--charcoal); }
ul.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background: var(--lime);
  transition: width var(--tr);
}
ul.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--lime) !important;
  color: var(--charcoal) !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500 !important;
  font-size: .85rem !important;
  transition: background var(--tr), transform var(--tr) !important;
}
.nav-cta:hover {
  background: var(--lime-dark) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--tr);
  display: block;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100); /* mobile Safari fix */
  background: var(--cream);
  padding: calc(var(--header-h) + 76px) 5% 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(168,212,78,.07) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(196,180,154,.05) 2px,
      rgba(196,180,154,.05) 4px
    );
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(168,212,78,.18);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-pale);
  border: 1px solid rgba(168,212,78,.4);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--lime-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--lime-dark);
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--taupe);
  margin-bottom: 1.5rem;
  letter-spacing: .01em;
}

.hero-desc {
  font-size: .95rem;
  color: var(--taupe);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--lime);
  color: var(--charcoal);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: all var(--tr);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,212,78,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: all var(--tr);
  border: 1.5px solid var(--sand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--marble);
}
.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--taupe);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

/* Hero image mosaic */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  position: relative;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hero-img:hover img { transform: scale(1.03); }
.hero-img-1 {
  grid-column: 1 / 3;
  height: 280px;
}
.hero-img-2 { height: 180px; }
.hero-img-3 { height: 180px; }

.hero-pill {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.6);
}
.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
}

/* =============================================
   SECTION LAYOUT COMMUN
   ============================================= */

section { padding: 100px 5%; }
.container { max-width: 1280px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 20px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--lime);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.section-subtitle {
  font-size: .95rem;
  color: var(--taupe);
  line-height: 1.75;
  max-width: 520px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

/* =============================================
   SERVICES
   ============================================= */

.services { background: var(--cream-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--marble);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--cream-light);
  padding: 2.5rem 2rem;
  transition: background var(--tr);
  position: relative;
  overflow: hidden;
}
.service-card:hover { background: var(--cream); }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform var(--tr);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--marble);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--tr);
}
.service-card:hover .service-num { color: var(--lime-pale); }

.service-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--lime-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: background var(--tr);
}
.service-card:hover .service-icon-wrap { background: var(--lime); }

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .875rem;
  color: var(--taupe);
  line-height: 1.7;
}

/* =============================================
   À PROPOS
   ============================================= */

.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 520px;
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--lime);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  min-width: 140px;
}
.about-img-badge-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}
.about-img-badge-label {
  font-size: .75rem;
  color: var(--charcoal);
  font-weight: 500;
  margin-top: 4px;
  opacity: .8;
}

.about-quote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--lime);
}

.about-features {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--marble);
}
.about-feature-icon {
  width: 34px;
  height: 34px;
  background: var(--lime-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.about-feature-text h5 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.about-feature-text p {
  font-size: .78rem;
  color: var(--taupe);
}

.about-contact-items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.about-contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--taupe);
}
.about-contact-item strong { color: var(--charcoal); }
.about-contact-item a { color: var(--lime-dark); font-weight: 500; }

/* =============================================
   HORAIRES
   ============================================= */

.schedule { background: var(--charcoal); }

.schedule .section-label { color: var(--lime); }
.schedule .section-title { color: var(--cream-light); }
.schedule .section-subtitle { color: rgba(250,247,242,.5); }

.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.schedule-contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}
.schedule-contact-card p {
  font-size: .85rem;
  color: rgba(250,247,242,.6);
  margin-bottom: .75rem;
}
.schedule-phone {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--lime);
}
.schedule-urgence {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: rgba(168,212,78,.1);
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .8rem;
  color: rgba(250,247,242,.7);
}
.schedule-urgence strong { color: var(--lime); }

.schedule-table-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--tr);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: rgba(255,255,255,.04); }
.schedule-day {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(250,247,242,.85);
}
.schedule-time {
  font-size: .85rem;
  color: rgba(250,247,242,.5);
}
.schedule-status {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.status-open  { background: rgba(168,212,78,.15); color: var(--lime); }
.status-closed{ background: rgba(255,255,255,.08); color: rgba(250,247,242,.3); }

/* =============================================
   CONTACT
   ============================================= */

.contact { background: var(--cream-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-panel {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--marble);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--marble);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--lime-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-body h4 {
  font-size: .78rem;
  font-weight: 600;
  color: var(--taupe);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.contact-item-body p, .contact-item-body a {
  font-size: .9rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.contact-item-body a { color: var(--lime-dark); font-weight: 500; }

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.contact-form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--marble);
  box-shadow: 0 4px 40px rgba(44,44,42,.06);
}

.contact-form-panel h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .4rem;
}
.contact-form-panel p.form-intro {
  font-size: .85rem;
  color: var(--taupe);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--taupe);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--cream-light);
  border: 1px solid var(--marble);
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--charcoal);
  transition: border-color var(--tr), background var(--tr);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  width: 100%;
  background: var(--lime);
  color: var(--charcoal);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all var(--tr);
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,212,78,.4);
}

#safizone-notice {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: none;
  font-size: .85rem;
}

/* =============================================
   DENTAL APP PROMO
   ============================================= */

.dental-promo {
  background: var(--cream);
  border-top: 1px solid var(--marble);
  border-bottom: 1px solid var(--marble);
}

.dental-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.promo-visual {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.promo-feature {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: background var(--tr);
}
.promo-feature:hover { background: rgba(255,255,255,.1); }
.promo-feature-icon { font-size: 1.4rem; margin-bottom: .7rem; }
.promo-feature h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: .3rem;
}
.promo-feature p {
  font-size: .75rem;
  color: rgba(250,247,242,.5);
  line-height: 1.5;
}

.promo-content .section-title { margin-top: .5rem; margin-bottom: 1rem; }
.promo-content p {
  font-size: .95rem;
  color: var(--taupe);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* =============================================
   FOOTER
   ============================================= */

footer#colophon {
  background: var(--charcoal);
  color: rgba(250,247,242,.7);
  padding: 3rem 5% 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

.footer-brand .sz-logo-name { color: var(--cream-light); font-size: 1.2rem; }
.footer-brand .sz-logo-sub { color: rgba(250,247,242,.4); }

.footer-desc {
  font-size: .85rem;
  color: rgba(250,247,242,.45);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: background var(--tr);
}
.footer-social a:hover { background: var(--lime); }

.footer-col h5 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-light);
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(250,247,242,.45);
  transition: color var(--tr);
}
.footer-col ul li a:hover { color: var(--lime); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(250,247,242,.3);
}
.footer-admin { font-size: .72rem; opacity: .4; }
.footer-admin a { color: var(--lime); }

/* =============================================
   GALERIE PHOTOS
   ============================================= */

.gallery-section {
  background: var(--cream-light);
  padding: 80px 5%;
  border-top: 1px solid var(--marble);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--marble);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-lg {
  grid-row: 1 / 3;
  min-height: 420px;
}
.gallery-item:not(.gallery-item-lg) { height: 200px; }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(44,44,42,.65) 0%, transparent 100%);
  color: var(--cream-light);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--tr);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* About images */
.about-img-secondary {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
}
.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholders */
.img-placeholder {
  background: linear-gradient(135deg, var(--marble) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--sand);
  width: 100%;
  height: 100%;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 500px; }
  .schedule-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .dental-promo-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .services-grid { grid-template-columns: 1fr; gap: 1.5px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-img-1 { height: 200px; }
  .hero-img-2, .hero-img-3 { height: 130px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item-lg {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 220px;
  }
  .gallery-item:not(.gallery-item-lg) { height: 150px; }
  .gallery-caption { opacity: 1; transform: none; }

  ul.nav-links {
    position: fixed;
    background: var(--cream-light);
    left: -100%;
    top: 70px;
    flex-direction: column;
    width: 100%;
    text-align: center;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 2rem 0;
    gap: 1.2rem;
    border-bottom: 1px solid var(--marble);
  }
  ul.nav-links.active { left: 0; }
  .menu-toggle { display: flex; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PARCOURS & FORMATIONS (CV)
   ============================================= */

#parcours .section-title { text-align: center; }

/* Timeline items responsive */
@media (max-width: 768px) {
  #parcours > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}


/* =============================================
   TÉMOIGNAGES PATIENTS
   ============================================= */

.temoignages-section {
    padding: 100px 5%;
    background: var(--charcoal);
}

.temoignages-section .section-label {
    color: var(--lime);
    background: rgba(168, 212, 78, .12);
    border-color: rgba(168, 212, 78, .25);
}

.temoignages-section .section-title {
    color: var(--cream-light);
    text-align: center;
}

/* Carte témoignage */
.temoignage-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    transition: transform .2s, border-color .2s, background .2s;
}

.temoignage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 212, 78, .3);
    background: rgba(255, 255, 255, .06);
}

/* Étoiles */
.temoignage-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Texte */
.temoignage-text {
    font-family: var(--serif);
    font-size: .95rem;
    color: rgba(250, 247, 242, .85);
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    flex: 1;
    border-left: 3px solid var(--lime);
    padding-left: 1rem;
}

/* Footer auteur */
.temoignage-footer {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: .5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.temoignage-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime-dark), var(--lime));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--charcoal);
    flex-shrink: 0;
}

.temoignage-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--cream-light);
}

.temoignage-meta {
    font-size: .75rem;
    color: rgba(250, 247, 242, .5);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.temoignage-source {
    background: rgba(66, 133, 244, .2);
    color: #93b8f8;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: .7rem;
    font-weight: 600;
}

/* Carte CTA */
.temoignage-cta-card {
    text-align: center;
    justify-content: center;
    align-items: center;
    background: rgba(168, 212, 78, .05);
    border-color: rgba(168, 212, 78, .2);
}

/* Responsive */
@media (max-width: 768px) {
    .temoignages-section { padding: 60px 5%; }
}

/* =================================================================
   RESPONSIVE COMPLET — MOBILE FIRST
   Breakpoints : 360 / 480 / 640 / 768 / 1024 / 1280 / 1440+
   ================================================================= */

/* ── BASE GLOBALE ── */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
img, video, iframe, embed {
  max-width: 100%;
  height: auto;
}
button, a, label, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Viewport height fix (Safari iOS 100vh bug) */
.hero { min-height: calc(var(--vh, 1vh) * 100); }

/* ─────────────────────────────────────────────
   TABLETTE ET PETIT DESKTOP  ≤ 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Layout hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-text { max-width: 600px; margin: 0 auto; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }

  /* Layout sections */
  .about-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap   { max-width: 520px; margin: 0 auto; }
  .contact-grid     { grid-template-columns: 1fr; }
  .schedule-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner     { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ─────────────────────────────────────────────
   TABLETTE  ≤ 768px
───────────────────────────────────────────── */
@media (max-width: 768px) {

  section, .container { padding: 70px 5%; }

  .services-grid   { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about-features  { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .footer-inner    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom   { flex-direction: column; gap: .5rem; text-align: center; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .gallery-item-lg  { grid-column: 1 / 3; min-height: 220px; }
  .gallery-caption  { opacity: 1; transform: none; }

  #parcours > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .schedule-row { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────
   MOBILE  ≤ 640px
───────────────────────────────────────────── */
@media (max-width: 640px) {

  /* ── HEADER ── */
  nav.sz-nav    { padding: .85rem 5%; }
  .sz-logo-sub  { display: none; }
  .sz-logo-name { font-size: 1rem; }

  .menu-toggle  { display: flex !important; }

  ul.nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    min-height: calc(100vh - 60px);
    background: var(--cream-light);
    flex-direction: column;
    gap: 0;
    padding: 0 0 2rem;
    border-top: 1px solid var(--marble);
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    z-index: 999;
    transition: left .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  ul.nav-links.active { left: 0; }

  ul.nav-links li  { border-bottom: 1px solid var(--marble); }
  ul.nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 5%;
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 400;
    min-height: 52px; /* touch target 48px+ */
  }
  ul.nav-links a::after { display: none; }
  .nav-cta {
    margin: 1rem 5% !important;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius-md) !important;
  }

  /* ── HERO ── */
  .hero { padding: 90px 5% 55px; min-height: auto; text-align: center; }
  .hero-title   { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-subtitle{ font-size: 1rem; }
  .hero-desc    { font-size: .88rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: .95rem;
    min-height: 52px;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
  .stat-num   { font-size: 1.7rem; }
  .stat-label { font-size: .68rem; }

  /* Hero visual : stack vertical */
  .hero-visual {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .hero-img-1 { grid-column: 1 / 3; height: 190px; }
  .hero-img-2, .hero-img-3 { height: 120px; }
  .hero-pill { font-size: .72rem; padding: 6px 10px; }
  .hero-badge { font-size: .7rem; }

  /* ── SECTIONS ── */
  section, .container { padding: 55px 5%; }
  .section-title    { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .section-subtitle { font-size: .85rem; max-width: 100%; }

  /* ── SERVICES ── */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card  { padding: 1.5rem; }
  .service-icon  { font-size: 2rem; margin-bottom: .7rem; }

  /* ── ABOUT ── */
  .about-features { grid-template-columns: 1fr; gap: .7rem; }
  .about-feature  { padding: .9rem 1rem; }
  .about-feature-icon { font-size: 1.2rem; }
  .about-contact-item { font-size: .82rem; }
  .about-img-badge {
    bottom: -8px;
    right: 0;
    padding: .6rem 1rem;
  }
  .about-img-badge-num { font-size: 1.3rem; }

  /* Bloc stats inline À propos */
  div[style*="display:flex"][style*="gap:1.5rem"][style*="border-radius"] {
    flex-wrap: wrap;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  /* ── GALERIE ── */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .gallery-item-lg { grid-column: 1 / 3; height: 180px; }
  .gallery-item:not(.gallery-item-lg) { height: 120px; }

  /* ── PARCOURS TIMELINE ── */
  div[style*="width:72px"] {
    width: 52px !important;
    min-width: 52px !important;
    font-size: .72rem !important;
  }
  #parcours > .container > div[style*="display:flex"][style*="gap:1.5rem"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* ── TÉMOIGNAGES ── */
  .temoignages-section { padding: 55px 5%; }
  .temoignage-card { padding: 1.4rem; }
  .temoignage-text { font-size: .88rem; }

  /* ── HORAIRES ── */
  .schedule-row {
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    font-size: .85rem;
  }
  .schedule-day, .schedule-time { padding: .7rem .9rem; }

  /* ── CONTACT ── */
  .contact-form-wrap, .contact-info-wrap { padding: 1.4rem; border-radius: var(--radius-md); }
  .form-row { grid-template-columns: 1fr; gap: .8rem; }
  .submit-btn { padding: 13px; font-size: .9rem; min-height: 50px; }
  .info-item { gap: .7rem; }
  .info-icon { font-size: 1.2rem; }
  .map-wrap { border-radius: var(--radius-md); }
  .map-wrap iframe { height: 200px !important; }

  /* ── FOOTER ── */
  .footer-inner  { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
  .footer-brand  { align-items: center; }
  .social-links  { justify-content: center; }
  footer section,
  footer .container { padding: 50px 5%; }

  /* ── BOUTONS GÉNÉRAUX ── */
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────
   TRÈS PETIT MOBILE  ≤ 480px
───────────────────────────────────────────── */
@media (max-width: 480px) {
  section, .container { padding: 48px 4%; }
  .hero { padding: 85px 4% 50px; }
  .hero-title  { font-size: clamp(1.7rem, 8vw, 2rem); }
  .services-grid  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: 1fr 1fr; }
  .gallery-item-lg { height: 160px; }
  .gallery-item:not(.gallery-item-lg) { height: 110px; }
  .schedule-row { grid-template-columns: 1.2fr 1fr; font-size: .8rem; }
  .temoignage-card { padding: 1.2rem; }
  .hero-stats { gap: 1rem; }
  .stat-num   { font-size: 1.5rem; }
}

/* ─────────────────────────────────────────────
   GALAXY S / VERY SMALL  ≤ 360px
───────────────────────────────────────────── */
@media (max-width: 360px) {
  section, .container { padding: 44px 4%; }
  .hero { padding: 80px 4% 44px; }
  nav.sz-nav  { padding: .75rem 4%; }
  .sz-logo-name { font-size: .88rem; }
  .hero-title  { font-size: 1.55rem; }
  .hero-img-1  { height: 160px; }
  .hero-img-2, .hero-img-3 { height: 100px; }
  .section-title { font-size: 1.4rem; }
  ul.nav-links a { padding: .85rem 4%; font-size: .9rem; }
  .btn-primary, .btn-secondary { font-size: .88rem; padding: 13px 16px; }
  .schedule-row { grid-template-columns: 1fr 1fr; font-size: .75rem; }
}

/* ─────────────────────────────────────────────
   GRAND DESKTOP  ≥ 1400px
───────────────────────────────────────────── */
@media (min-width: 1400px) {
  nav.sz-nav    { max-width: 1440px; padding: 1.1rem 6%; }
  .hero         { padding: 160px 6% 100px; }
  section, .container { padding: 100px 6%; }
  .hero-title   { font-size: 4.2rem; }
  .hero-inner   { max-width: 1440px; }
}

/* ─────────────────────────────────────────────
   TOUCH DEVICES (no hover)
───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .temoignage-card:hover,
  .about-feature:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .nav-cta:hover,
  .hero-img:hover img { transform: none; }

  /* Toujours afficher les captions sur mobile */
  .gallery-caption { opacity: 1 !important; transform: translateY(0) !important; }

  /* Touch targets minimum 44px */
  .btn-primary, .btn-secondary, .submit-btn, .nav-cta {
    min-height: 48px;
  }
}

/* ─────────────────────────────────────────────
   PRÉFÉRENCE MOUVEMENT RÉDUIT
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ─────────────────────────────────────────────
   PRINT
───────────────────────────────────────────── */
@media print {
  header, footer, .menu-toggle, .hero-actions,
  .gallery-section, .temoignages-section,
  nav, #parcours .btn-secondary { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .hero { padding: 1cm; min-height: auto; background: #fff; color: #000; }
  section { padding: .5cm 1cm; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
