/*
Theme Name:   Cabinet Ottensen Child
Theme URI:    https://cabinet-ottensen.fr
Description:  Thème enfant pour le Cabinet Noémie OTTENSEN – Podologue. Basé sur Astra.
Author:       Cabinet Noémie OTTENSEN
Author URI:   https://cabinet-ottensen.fr
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cabinet-ottensen-child
Tags:         medical, podologie, bordeaux, white, child-theme
*/

/* ============================================================
   VARIABLES GLOBALES — Palette Bordeaux & Blanc
   ============================================================ */
:root {
  --bordeaux:        #9b1d42;
  --bordeaux-dark:   #6b0f2a;
  --bordeaux-light:  #d4748f;
  --bordeaux-pale:   #f5d5de;
  --white-rose:      #fdf5f7;
  --white-pure:      #ffffff;
  --white-warm:      #fefafb;
  --text-dark:       #2a0d18;
  --text-mid:        #3a1020;
  --text-light:      #8a3050;
  --cream:           #fefafb;
  --border:          #f5d5de;

  /* Typographie */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', 'Helvetica Neue', sans-serif;

  /* Espacements */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 40px;

  /* Ombres */
  --shadow-sm:  0 2px 12px rgba(107, 15, 42, 0.08);
  --shadow-md:  0 6px 28px rgba(107, 15, 42, 0.12);
  --shadow-lg:  0 12px 48px rgba(107, 15, 42, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-mid);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

p {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

a {
  color: var(--bordeaux);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--bordeaux-dark); }

em, i { color: var(--bordeaux); }

/* ============================================================
   ASTRA OVERRIDES — Suppression styles par défaut
   ============================================================ */
.ast-container { max-width: 1280px; }

/* Header Astra */
#masthead,
.site-header,
.ast-primary-header-bar {
  background-color: var(--white-pure) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Logo */
.site-title a,
.ast-site-name-text {
  font-family: var(--font-serif) !important;
  color: var(--bordeaux-dark) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
}

/* Nav principale */
.main-header-menu .menu-item > a,
.ast-primary-menu > li > a {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  transition: color 0.2s !important;
}
.main-header-menu .menu-item > a:hover,
.ast-primary-menu > li > a:hover {
  color: var(--bordeaux-dark) !important;
}

/* Bouton CTA dans le nav */
.menu-item-cta > a,
.nav-cta > a {
  background: var(--bordeaux) !important;
  color: var(--white-pure) !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: var(--radius-pill) !important;
  transition: background 0.2s !important;
}
.menu-item-cta > a:hover { background: var(--bordeaux-dark) !important; }

/* Footer Astra */
.site-footer,
#colophon {
  background-color: var(--text-dark) !important;
  color: rgba(255,255,255,0.75) !important;
}
.site-footer a { color: var(--bordeaux-light) !important; }
.site-footer a:hover { color: var(--white-pure) !important; }

/* ============================================================
   BOUTONS GLOBAUX
   ============================================================ */
.btn,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--bordeaux);
  color: var(--white-pure) !important;
}
.btn-primary:hover { background: var(--bordeaux-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--bordeaux) !important;
  border: 1.5px solid var(--bordeaux-light);
}
.btn-outline:hover { border-color: var(--bordeaux); color: var(--bordeaux-dark) !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(150deg, var(--white-rose) 0%, var(--bordeaux-pale) 100%);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-content {
  padding: 4rem 4rem 4rem 8%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bordeaux-pale);
  color: var(--bordeaux-dark);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.8rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--bordeaux);
  border-radius: 50%;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.hero-content h1 em { font-style: italic; color: var(--bordeaux); }

.hero-content .hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 2.4rem;
}

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

.hero-right {
  position: relative;
  z-index: 2;
  padding: 5rem 5% 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Cards héro */
.hero-card {
  background: var(--white-pure);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hero-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--white-rose);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.hero-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.2rem; color: var(--text-dark); font-family: var(--font-sans); }
.hero-card p  { font-size: 0.85rem; color: var(--text-light); margin: 0; font-weight: 300; }

.hero-stats {
  display: flex;
  gap: 2rem;
  padding: 1.2rem 2rem;
  background: var(--bordeaux-dark);
  border-radius: var(--radius-md);
  color: var(--white-pure);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.hero-stat span { font-size: 0.78rem; opacity: 0.75; letter-spacing: 0.06em; }

/* ============================================================
   SECTION COMMUNE
   ============================================================ */
.section-tag {
  display: inline-block;
  color: var(--bordeaux);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.section-title em { font-style: italic; color: var(--bordeaux); }
.section-subtitle { color: var(--text-light); max-width: 560px; font-weight: 300; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--white-rose); padding: 5rem 8%; }

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: var(--white-pure);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bordeaux-light);
  transition: background 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { background: var(--bordeaux-dark); }

.service-card .service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 500; font-family: var(--font-sans); color: var(--text-dark); margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ============================================================
   À PROPOS
   ============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 5rem 8%;
}

.about-photo-frame {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--white-rose) 0%, var(--bordeaux-pale) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}
.about-badge-float {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--bordeaux-dark);
  color: var(--white-pure);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-float strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}
.about-badge-float span { font-size: 0.78rem; opacity: 0.85; }

.about-qualifs { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.about-qualifs li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.9rem; color: var(--text-mid);
}
.about-qualifs li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--bordeaux-pale);
  color: var(--bordeaux-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   TARIFS
   ============================================================ */
.tarifs-section { background: var(--white-rose); padding: 5rem 8%; }

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.tarif-card {
  background: var(--white-pure);
  border-radius: var(--radius-md);
  padding: 2.4rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tarif-card.featured {
  background: var(--bordeaux-dark);
  color: var(--white-pure);
  transform: scale(1.03);
}
.tarif-card:hover:not(.featured) { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tarif-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; opacity: 0.7; }
.tarif-name  { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.tarif-price { font-family: var(--font-serif); font-size: 3rem; font-weight: 300; line-height: 1; margin-bottom: 0.3rem; }
.tarif-price sup { font-size: 1.4rem; }
.tarif-duration { font-size: 0.85rem; opacity: 0.65; margin-bottom: 2rem; }

.tarif-features { list-style: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.tarif-features li { font-size: 0.88rem; display: flex; align-items: center; gap: 0.6rem; }
.tarif-features li::before { content: '·'; font-size: 1.2rem; color: var(--bordeaux-light); }
.tarif-card.featured .tarif-features li::before { color: rgba(255,255,255,0.5); }

.btn-tarif {
  display: block;
  background: var(--bordeaux);
  color: var(--white-pure) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}
.tarif-card.featured .btn-tarif { background: rgba(255,255,255,0.2); }
.btn-tarif:hover { background: var(--bordeaux-dark) !important; }

/* ============================================================
   AVIS
   ============================================================ */
.avis-section { padding: 5rem 8%; }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.avis-card { background: var(--white-rose); border-radius: var(--radius-md); padding: 1.8rem; }
.avis-stars { color: #c8832a; font-size: 1rem; margin-bottom: 0.8rem; display: block; }
.avis-card blockquote { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--text-dark); font-weight: 300; margin: 0 0 1rem; line-height: 1.5; }
.avis-card .avis-author { font-size: 0.82rem; color: var(--text-light); font-weight: 500; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-section { background: var(--white-rose); padding: 5rem 8%; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.4rem; }

.blog-card { background: var(--white-pure); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.blog-thumb { aspect-ratio: 16/9; background: var(--bordeaux-pale); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card:first-child .blog-thumb { aspect-ratio: 16/10; font-size: 4rem; }
.blog-body { padding: 1.4rem; }

.blog-cat {
  display: inline-block;
  background: var(--white-rose);
  color: var(--bordeaux-dark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.blog-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; color: var(--text-dark); }
.blog-card p   { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.blog-date { font-size: 0.78rem; color: var(--bordeaux-light); margin-top: 0.8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 5rem 8%;
  align-items: start;
}

.contact-items { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1rem; }
.contact-item  { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 42px; height: 42px;
  background: var(--white-rose);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.2rem; color: var(--text-dark); }
.contact-item span   { font-size: 0.88rem; color: var(--text-light); font-weight: 300; }

.contact-map {
  margin-top: 2rem;
  height: 200px;
  background: var(--bordeaux-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border: 1px solid var(--border);
}

/* Formulaire */
.contact-form {
  background: var(--white-rose);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}
.contact-form h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 1.6rem; color: var(--text-dark); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.04em; }

.form-group input,
.form-group select,
.form-group textarea,
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  background: var(--white-pure);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--bordeaux-light); }
.form-group textarea { min-height: 100px; resize: vertical; }

.form-submit,
.wpcf7-submit,
input[type="submit"] {
  width: 100%;
  background: var(--bordeaux-dark);
  color: var(--white-pure) !important;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.form-submit:hover,
input[type="submit"]:hover { background: var(--bordeaux); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer-custom {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 8% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { font-family: var(--font-serif); font-size: 1.3rem; color: var(--bordeaux-light); margin-bottom: 1rem; display: block; }
.footer-desc { font-size: 0.88rem; font-weight: 300; line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-pure); font-weight: 500; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer-col ul  { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.88rem; font-weight: 300; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--bordeaux-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-hero { animation: fadeUp 0.9s ease both; }
.animate-hero-delay { animation: fadeUp 0.9s 0.2s ease both; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-section       { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-bg            { display: none; }
  .hero-content       { padding: 2rem 5%; }
  .hero-right         { padding: 0 5% 3rem; }
  .services-intro     { grid-template-columns: 1fr; }
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .about-section      { grid-template-columns: 1fr; gap: 3rem; }
  .tarifs-grid        { grid-template-columns: 1fr; }
  .tarif-card.featured { transform: none; }
  .avis-grid          { grid-template-columns: 1fr 1fr; }
  .blog-grid          { grid-template-columns: 1fr 1fr; }
  .contact-section    { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .services-grid  { grid-template-columns: 1fr; }
  .avis-grid      { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .hero-stats     { flex-wrap: wrap; }
  .form-row       { grid-template-columns: 1fr; }
  .services-section,
  .tarifs-section,
  .avis-section,
  .blog-section,
  .contact-section { padding: 3rem 5%; }
}
