/* ============================================================
   LUCILLE CAVOLEAU — Psychologue
   Feuilles de styles principale
   ============================================================ */

/* ── POLICES ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIABLES COULEURS ─────────────────────────────────── */
:root {
  --vert-creme:  #FDFAF6;
  --vert-clair:  #DDE8E3;
  --vert-moyen:  #A8C5B5;
  --vert-fonce:  #6B8F7A;
  --vert-sapin:  #4A5E56;
  --blanc:       #FFFFFF;
  --beige:       #F5F0EB;
  --texte:       #2C3530;
  --texte-clair: #5A6B63;
  --accent:      #7A9E8E;
  --shadow:      rgba(44, 53, 48, 0.08);
  --shadow-md:   rgba(44, 53, 48, 0.16);
  --radius:      14px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
}

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--texte);
  background: var(--vert-creme);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--vert-sapin);
  line-height: 1.25;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BOUTON DOCTOLIB ────────────────────────────────────── */
.btn-doctolib {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7A9E8E 0%, #6B8F7A 100%);
  color: #FFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(122, 158, 142, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-doctolib:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 158, 142, 0.50);
  background: linear-gradient(135deg, #8AAAA0 0%, #7A9E8E 100%);
}

.btn-doctolib:active { transform: translateY(0); }
.btn-doctolib .icon { font-size: 1.1rem; }

/* bouton dans nav plus petit */
.nav-doctolib {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  box-shadow: 0 2px 8px rgba(122, 158, 142, 0.28);
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--blanc);
  box-shadow: 0 2px 16px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.logo-wrapper img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--vert-clair);
  box-shadow: 0 2px 8px var(--shadow);
  object-fit: cover;
  background: var(--vert-clair);
}

.logo-text { line-height: 1.2; }

.logo-title { 
  display: block; 
  font-family: 'Playfair Display', serif; 
  font-size: 1.15rem; 
  font-weight: 700; 
  color: var(--vert-sapin); 
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.main-nav li a {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--texte-clair);
  transition: color var(--transition), background var(--transition);
}

.main-nav li a:hover { 
  color: var(--vert-sapin); 
  background: var(--vert-clair); 
}

/* ── BURGER ─────────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--vert-sapin);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ACCUEIL ───────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #FDFAF6 0%, #DDE8E3 60%, #A8C5B5 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {}

.hero-pretitle {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--vert-sapin);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--texte-clair);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-buttons { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.8rem; 
  align-items: center; 
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-inner {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px var(--shadow-md);
  overflow: hidden;
}

.hero-image-inner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--vert-creme) 0%, var(--vert-clair) 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.page-header h1 { 
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); 
  margin-bottom: 0.5rem; 
}

.page-header p { 
  color: var(--texte-clair); 
  font-size: 1.05rem; 
  max-width: 560px; 
  margin: 0 auto; 
}

/* ── SECTIONS ───────────────────────────────────────────── */
.page-section { padding: 4rem 0; }

.page-section:nth-child(even) { background: var(--blanc); }

.page-section h2 { 
  font-size: 1.6rem; 
  margin-bottom: 0.4rem; 
  text-align: center; 
}

.page-section .section-subtitle {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ── TEXTE INTRO ───────────────────────────────────────── */
.intro-text {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--texte-clair);
  line-height: 1.8;
}

/* ── CARDS ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.content-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1.5px solid rgba(122, 158, 142, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 30px var(--shadow-md); 
}

.content-card h3 { 
  font-size: 1.1rem; 
  margin-bottom: 0.7rem; 
  color: var(--vert-sapin); 
}

.content-card p { 
  font-size: 0.95rem; 
  color: var(--texte-clair); 
}

/* ── TARIF BOX ─────────────────────────────────────────── */
.tarif-box {
  background: linear-gradient(135deg, var(--vert-sapin) 0%, var(--vert-fonce) 100%);
  color: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px var(--shadow-md);
}

.tarif-box h3 { 
  color: var(--blanc); 
  font-size: 1.3rem; 
}

.tarif-box .prix { 
  font-size: 2.4rem; 
  font-weight: 700; 
  color: #FFF; 
}

.tarif-box .detail { 
  font-size: 0.9rem; 
  opacity: 0.85; 
}

/* ── MEDIATION BOX ─────────────────────────────────────── */
.medi-box {
  background: linear-gradient(135deg, var(--vert-clair) 0%, #D6E8CC 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 2px solid rgba(122, 158, 142, 0.25);
  max-width: 720px;
  margin: 0 auto;
}

.medi-box h3 { 
  font-size: 1.4rem; 
  margin-bottom: 0.8rem; 
  color: var(--vert-sapin); 
}

.medi-box p { 
  color: var(--texte-clair); 
  margin-bottom: 1rem; 
}

.medi-icons { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.8rem; 
  margin-bottom: 1.5rem; 
}

.medi-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--vert-sapin);
  background: rgba(255,255,255,0.7);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(122, 158, 142, 0.2);
}

/* ── ARUN PHOTO ────────────────────────────────────────── */
.arun-photo {
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px var(--shadow-md);
  overflow: hidden;
  max-width: 380px;
  margin: 1.5rem auto;
}

.arun-photo img { 
  width: 100%; 
  height: 280px; 
  object-fit: cover; 
  display: block; 
}

.arun-photo p { 
  text-align: center; 
  font-size: 0.82rem; 
  color: var(--texte-clair); 
  padding: 0.5rem; 
  background: var(--blanc); 
}

/* ── INFO BOX ───────────────────────────────────────────── */
.info-box {
  background: rgba(122, 158, 142, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.info-box .info-icon { 
  font-size: 1.2rem; 
  flex-shrink: 0; 
  margin-top: 0.1rem; 
}

.info-box p { 
  font-size: 0.9rem; 
  color: var(--texte-clair); 
}

/* ── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(160deg, var(--vert-clair) 0%, var(--vert-moyen) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 { 
  color: var(--vert-sapin); 
  margin-bottom: 1rem; 
  font-size: clamp(1.5rem, 3vw, 2.2rem); 
}

.cta-section p { 
  color: var(--vert-sapin); 
  max-width: 540px; 
  margin: 0 auto 2rem; 
  font-size: 1.05rem; 
}

.cta-buttons { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.8rem; 
  justify-content: center; 
}

/* ── CONTACT FORM ───────────────────────────────────────── */
.contact-wrapper { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3rem; 
  align-items: start; 
  margin-top: 3rem; 
}

.contact-info-card { 
  background: var(--blanc); 
  border-radius: var(--radius-lg); 
  padding: 2.5rem; 
  box-shadow: 0 4px 20px var(--shadow); 
  border: 1.5px solid rgba(122,158,142,0.12); 
}

.contact-info-card h3 { 
  font-size: 1.3rem; 
  margin-bottom: 1.5rem; 
  color: var(--vert-sapin); 
}

.info-item { 
  display: flex; 
  gap: 0.8rem; 
  align-items: flex-start; 
  margin-bottom: 1.2rem; 
}

.info-item .icon { 
  font-size: 1.1rem; 
  flex-shrink: 0; 
  margin-top: 0.1rem; 
}

.info-item strong { 
  display: block; 
  font-size: 0.82rem; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
  color: var(--accent); 
  margin-bottom: 0.15rem; 
}

.info-item span { 
  font-size: 0.95rem; 
  color: var(--texte-clair); 
}

.contact-form-card { 
  background: var(--blanc); 
  border-radius: var(--radius-lg); 
  padding: 2.5rem; 
  box-shadow: 0 4px 20px var(--shadow); 
  border: 1.5px solid rgba(122,158,142,0.12); 
}

.contact-form-card h3 { 
  font-size: 1.3rem; 
  margin-bottom: 1.5rem; 
  color: var(--vert-sapin); 
}

.form-group { margin-bottom: 1.2rem; }

.form-group label { 
  display: block; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--vert-sapin); 
  margin-bottom: 0.4rem; 
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(122, 158, 142, 0.2);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--texte);
  background: var(--beige);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 158, 142, 0.15);
}

.form-group textarea { 
  min-height: 120px; 
  resize: vertical; 
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--vert-moyen) 0%, var(--vert-sapin) 100%);
  color: #FFF;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(122, 158, 142, 0.35);
}

.btn-submit:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(122, 158, 142, 0.50); 
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--vert-sapin);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 2rem; 
  justify-content: space-between; 
  align-items: start; 
}

.footer-brand .logo-title { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.1rem; 
  font-weight: 700; 
  color: #FFF; 
  display: block; 
  margin-bottom: 0.3rem; 
}

.footer-brand .logo-sub { 
  font-size: 0.72rem; 
  color: rgba(255,255,255,0.6); 
  text-transform: uppercase; 
  letter-spacing: 0.06em; 
}

.footer-links { 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
}

.footer-links li a { 
  font-size: 0.88rem; 
  color: rgba(255,255,255,0.7); 
  transition: color var(--transition); 
}

.footer-links li a:hover { color: #FFF; }

.footer-legal { 
  width: 100%; 
  text-align: center; 
  border-top: 1px solid rgba(255,255,255,0.12); 
  padding-top: 1.2rem; 
  margin-top: 0.5rem; 
  font-size: 0.78rem; 
  color: rgba(255,255,255,0.45); 
}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease both; }

/* ── FOCUS / ACCESSIBILITÉ ──────────────────────────────── */
a:focus-visible, button:focus-visible { 
  outline: 3px solid var(--accent); 
  outline-offset: 3px; 
  border-radius: 4px; 
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .burger { display: flex; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--blanc);
    flex-direction: column;
    padding: 1rem;
    gap: 0.3rem;
    box-shadow: 0 8px 24px var(--shadow);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  
  .main-nav.open { display: flex; }
  .main-nav li a { display: block; padding: 0.6rem 1rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image-inner { max-width: 340px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { height: auto; flex-wrap: wrap; padding: 0.8rem 1.5rem; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .page-section { padding: 3rem 0; }
  .tarif-box { padding: 1.5rem; }
  .medi-box { padding: 1.5rem; }
}

/* ── SECONDARY BUTTONS ─────────────────────────────────── */
.btn-secondary, .btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-secondary {
  color: var(--vert-sapin);
  border-color: var(--vert-moyen);
  background: rgba(255,255,255,0.7);
}

.btn-secondary:hover { 
  background: var(--blanc); 
  border-color: var(--vert-sapin); 
}

.btn-secondary-dark {
  color: var(--vert-sapin);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.8);
}

.btn-secondary-dark:hover { background: var(--blanc); }
