/*
Theme Name: Cabinet MARDINI
Theme URI: https://cabinet-mardini.fr
Author: Dr MARDINI
Author URI: https://cabinet-mardini.fr
Description: Thème WordPress sur mesure pour le cabinet d'orthodontie du Dr MARDINI. Page d'accueil orientée présentation des traitements et prise de rendez-vous. Coordonnées éditables depuis le Personnalisateur.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: cabinet-mardini
*/

:root {
  --navy: #143156;
  --navy-mid: #1f4570;
  --blue: #1a5f9e;
  --blue-light: #2979c4;
  --sky: #e8f2fc;
  --sky-mid: #cce0f5;
  --white: #ffffff;
  --off-white: #f5f8fc;
  --text: #1a2a3a;
  --text-mid: #4a6278;
  --text-light: #7a96ae;
  --border: #d0e0ee;
  --accent: #0e7e6a;
  --accent-light: #e0f5f0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* TOP BAR */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.topbar a:hover { color: white; }

/* NAV */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  box-shadow: 0 2px 20px rgba(11,31,58,0.07);
}
.nav-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.nav-brand-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav-brand-text strong { display: block; font-size: 1rem; font-weight: 600; color: var(--navy); }
.nav-brand-text span { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; letter-spacing: 0.02em;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links li.current-menu-item > a { color: var(--blue); border-color: var(--blue); }
.btn-rdv {
  background: var(--blue); color: white;
  padding: 0.6rem 1.5rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.btn-rdv:hover { background: var(--blue-light); transform: translateY(-1px); color: white; }

/* HERO */
#accueil {
  background: var(--navy);
  padding: 90px 5% 80px;
  display: grid; grid-template-columns: 1fr 400px; gap: 5rem; align-items: center;
  position: relative; overflow: hidden;
}
#accueil::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(26,95,158,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(14,126,106,0.15) 0%, transparent 60%);
  pointer-events: none;
}
#accueil::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-text { position: relative; z-index: 2; animation: fadeUp 0.8s ease both; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  padding: 0.35rem 1rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.8rem;
}
.hero-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 400; line-height: 1.12; color: white; margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--sky-mid); }
.hero-desc {
  font-size: 1rem; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.65); max-width: 480px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  background: white; color: var(--navy);
  padding: 0.9rem 2rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.btn-hero-secondary {
  border: 1.5px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.85);
  padding: 0.9rem 2rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-secondary:hover { border-color: white; color: white; }

.hero-panel {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-panel h4 {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.2rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.panel-stat { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.panel-stat:last-child { border-bottom: none; }
.panel-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.panel-stat-value { font-size: 0.88rem; font-weight: 600; color: white; }
.badge-green { background: rgba(74,222,128,0.15); color: #4ade80; padding: 0.2rem 0.65rem; border-radius: 4px; font-size: 0.76rem; }
.badge-blue { background: rgba(96,165,250,0.15); color: #93c5fd; padding: 0.2rem 0.65rem; border-radius: 4px; font-size: 0.76rem; }

/* INDICATORS */
.indicators {
  background: var(--off-white); border-bottom: 1px solid var(--border);
  display: flex; justify-content: center; flex-wrap: wrap; padding: 0 5%;
}
.indicator {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 3rem; border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.indicator:last-child { border-right: none; }
.indicator:hover { background: var(--sky); }
.indicator-icon { font-size: 1.3rem; }
.indicator-text strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1; }
.indicator-text span { font-size: 0.78rem; color: var(--text-light); }

/* SECTIONS */
section { padding: 90px 5%; }
.label-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sky); color: var(--blue);
  padding: 0.3rem 0.9rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.2; color: var(--navy); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--blue); }
.section-intro { font-size: 0.95rem; font-weight: 300; line-height: 1.9; color: var(--text-mid); max-width: 540px; }

/* SERVICES */
#services { background: var(--white); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: var(--border); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
}
.service-card {
  background: var(--white); padding: 2.2rem;
  transition: background 0.2s; position: relative;
}
.service-card:hover { background: var(--off-white); }
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }
.service-num { font-family: 'DM Serif Display', serif; font-size: 2.5rem; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.service-icon-wrap { width: 46px; height: 46px; border-radius: 8px; background: var(--sky); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.3; }
.service-card p { font-size: 0.85rem; line-height: 1.8; color: var(--text-mid); }
.service-arrow { position: absolute; bottom: 1.5rem; right: 1.5rem; color: var(--blue); font-size: 1rem; opacity: 0; transform: translateX(-5px); transition: opacity 0.2s, transform 0.2s; }
.service-chip { display: inline-block; margin-top: 1rem; border: 1px solid var(--border); color: var(--text-light); font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ENGAGEMENT */
.engagement {
  background: var(--navy); padding: 80px 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.engagement-text .label-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.engagement-text .section-title { color: white; }
.engagement-text .section-title em { color: var(--sky-mid); }
.engagement-text .section-intro { color: rgba(255,255,255,0.55); max-width: 100%; }
.engagement-list { display: flex; flex-direction: column; gap: 1rem; }
.engagement-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.4rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.engagement-item:hover { background: rgba(255,255,255,0.09); }
.engagement-check { width: 26px; height: 26px; border-radius: 50%; background: rgba(74,222,128,0.15); color: #4ade80; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; margin-top: 1px; }
.engagement-item strong { display: block; font-size: 0.9rem; font-weight: 600; color: white; margin-bottom: 0.2rem; }
.engagement-item p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* CONTACT */
#contact { background: var(--off-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }

.info-card { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.info-card-header { background: var(--navy); padding: 1.2rem 1.8rem; display: flex; align-items: center; gap: 0.8rem; }
.info-card-header h4 { font-size: 0.9rem; font-weight: 600; color: white; }
.info-card-body { padding: 1.5rem 1.8rem; }

.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--text-mid); }
.info-row .val { font-weight: 600; color: var(--text); }
.info-row .val.open { color: var(--accent); }
.info-row .val.closed { color: var(--text-light); font-weight: 400; font-style: italic; }

.contact-detail { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--sky); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-detail a, .contact-detail span { font-size: 0.88rem; color: var(--text); text-decoration: none; }
.contact-detail a { color: var(--blue); font-weight: 500; }

.contact-map { margin-top: 2.5rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 20px rgba(11,31,58,0.06); }
.contact-map iframe { display: block; width: 100%; height: 340px; border: 0; }

.contact-callout { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.4rem; background: var(--sky); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 8px; }
.contact-callout-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-callout p { font-size: 0.9rem; color: var(--text-mid); margin: 0; }
.contact-callout a { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }

.form-card { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.form-card-header { background: var(--navy); padding: 1.2rem 1.8rem; display: flex; align-items: center; gap: 0.8rem; }
.form-card-header h4 { font-size: 0.9rem; font-weight: 600; color: white; }
.form-card-body { padding: 1.8rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.fg label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-mid); }
.fg input, .fg select, .fg textarea {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.7rem 0.9rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; color: var(--text); background: var(--off-white);
  outline: none; transition: border-color 0.2s, background 0.2s; width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue); background: white;
  box-shadow: 0 0 0 3px rgba(26,95,158,0.08);
}
.fg textarea { resize: vertical; min-height: 90px; }
.notice { font-size: 0.75rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; }
.btn-submit {
  width: 100%; background: var(--navy); color: white;
  border: none; border-radius: 6px; padding: 0.9rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }

.form-feedback { padding: 0.9rem 1rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1.2rem; }
.form-feedback.success { background: var(--accent-light); color: var(--accent); border: 1px solid #b5e7dc; }
.form-feedback.error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

/* FOOTER */
footer.site-footer {
  background: #1c3b66; padding: 36px 5%;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand span { font-size: 0.88rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.2); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  #accueil { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .engagement { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .indicator { padding: 1.2rem 1.5rem; }
  .topbar { display: none; }
  .frow { grid-template-columns: 1fr; }
}

/* WordPress core classes */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
