/* ==========================================================================
   Feuille de style commune — naturellementclaire.fr
   Utilisée par index.php, mentions-legales.php et politique-confidentialite.php
   ========================================================================== */

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

:root {
  --gold: #e8c84a;
  --violet: #8b84c4;
  --violet-dark: #6960a8;
  --sage: #7a9e7e;
  --sage-dark: #5a7e5e;
  --sage-light: #eaf3ea;
  --warm: #c8b060;
  --text: #2c2c2a;
  --text-muted: #6b6b68;
  --border: rgba(0,0,0,0.09);
  --radius: 8px;
  --white: #ffffff;
  --bg-light: #f8f7f2;
  --bg-sage: #f0f5f0;
}

:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--violet-dark); }

/* MODE SOMBRE — activé via le bouton bascule du menu (voir header.php/footer.php) */
[data-theme="dark"] {
  --violet: #a99ee0;
  --violet-dark: #8b7fd6;
  --sage: #8fbf94;
  --sage-dark: #a3d1a8;
  --sage-light: #223228;
  --text: #ece9e2;
  --text-muted: #b0aca5;
  --border: rgba(255,255,255,0.12);
  --white: #1e1c24;
  --bg-light: #211f27;
  --bg-sage: #1b241d;
}

[data-theme="dark"] nav { box-shadow: 0 1px 0 rgba(255,255,255,0.05); }

[data-theme="dark"] .hero {
  background: var(--bg-sage);
}

[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .hero-logo img {
  border-radius: 10px;
}

[data-theme="dark"] .approach-icon { background: #2b2717; }

[data-theme="dark"] .service-card:hover { box-shadow: 0 4px 20px rgba(169,158,224,0.18); }

[data-theme="dark"] .success-msg {
  background: #16281a;
}
[data-theme="dark"] .success-msg.error-msg {
  background: #2c1614; border-color: #6b2c26; color: #f3a8a1;
}

[data-theme="dark"] footer { background: #17151d; color: #cfc7ea; }
[data-theme="dark"] footer a { color: #b9a9f0; }
[data-theme="dark"] .footer-disclaimer { color: #cfc7ea; }

[data-theme="dark"] ::selection { background: var(--violet-dark); color: #fff; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem; border-bottom: 1px solid var(--border);
  background: var(--white); position: sticky; top: 0; z-index: 100;
}
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--violet-dark); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-light);
  font-size: 1.05rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--bg-sage); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }

/* HERO */
.hero {
  padding: 3rem 2.5rem 3.7rem;
  background: var(--bg-sage);
  text-align: center;
}
.hero-logo { margin: 0 auto 2rem; max-width: 320px; }
.hero-logo img { width: 100%; height: auto; }
.hero-sub { font-size: 1.05rem; font-weight: normal; color: var(--sage-dark); margin-bottom: 1.25rem; letter-spacing: 0.5px; }
.hero p, .hero h1 {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 32px; background: var(--violet); color: #fff;
  border: none; border-radius: var(--radius); font-size: 1rem;
  cursor: pointer; transition: background .2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--violet-dark); }
.btn-outline {
  padding: 13px 32px; background: transparent; color: var(--sage-dark);
  border: 2px solid var(--sage); border-radius: var(--radius); font-size: 1rem;
  cursor: pointer; transition: background .2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--sage-light); }

/* SECTIONS */
section { padding: 4rem 2.5rem; }
section[id] { scroll-margin-top: 90px; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: 1.7rem; font-weight: 600; color: var(--violet-dark);
  margin-bottom: 0.5rem; font-family: Georgia, serif;
}
.section-sep {
  display: block; width: 48px; height: 3px;
  background: var(--gold); margin: 0.6rem auto 0.6rem; border-radius: 2px;
}
.section-sub { font-size: 1rem; color: var(--text-muted); }

/* À PROPOS */
.about { background: var(--white); }
.about-card {
  max-width: 680px; margin: 0 auto;
  background: var(--bg-light); border-radius: 16px;
  border: 1px solid var(--border); padding: 2.5rem;
  display: flex; gap: 2rem; align-items: flex-start;
}
.about-avatar {
  width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0;
  background: var(--sage-light); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; overflow: hidden;
  border: 3px solid var(--gold);
}
.about-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.about-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--violet-dark); margin-bottom: 0.3rem; }
.badge {
  display: inline-block; font-size: 0.78rem; color: var(--sage-dark);
  background: var(--sage-light); border-radius: 20px;
  padding: 3px 12px; margin-bottom: 1rem; border: 1px solid rgba(122,158,126,0.3);
}
.about-content p { font-size: 0.97rem; color: var(--text-muted); line-height: 1.8; }

/* SERVICES */
.services { background: var(--bg-sage); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem; max-width: 880px; margin: 0 auto;
}
.service-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); padding: 1.75rem 1.5rem; text-align: center;
  transition: box-shadow .2s;
}
.service-card:hover { box-shadow: 0 4px 20px rgba(139,132,196,0.15); }
.service-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--violet-dark); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* APPROCHE */
.approach { background: var(--white); }
.approach-list { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.approach-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.approach-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #faf6e6; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; margin-top: 3px;
}
.approach-text h4 { font-size: 1rem; font-weight: 600; color: var(--violet-dark); margin-bottom: 0.3rem; }
.approach-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* INFOS */
.infos { background: var(--bg-sage); }
.infos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem; max-width: 740px; margin: 0 auto;
}
.info-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); padding: 1.4rem; text-align: center;
}
.info-emoji { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.info-card h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--sage-dark); margin-bottom: 0.4rem; font-weight: 600;
}
.info-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* CONTACT */
.contact { background: var(--white); }
.contact-wrapper { max-width: 580px; margin: 0 auto; }
.contact-card {
  background: var(--bg-light); border-radius: 16px;
  border: 1px solid var(--border); padding: 2.5rem;
}
.contact-phone { text-align: center; margin-bottom: 1.5rem; }
.contact-phone a {
  font-size: 1.15rem; font-weight: 600; color: var(--violet-dark); text-decoration: none;
}
.contact-phone a:hover { text-decoration: underline; }
.contact-phone span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit;
  background: var(--white); color: var(--text); outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--violet); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 13px; background: var(--violet); color: #fff;
  border: none; border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  cursor: pointer; transition: background .2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--violet-dark); }
.form-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.success-msg {
  display: none; background: #eef6ee; border: 1px solid var(--sage);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  color: var(--sage-dark); font-size: 0.95rem; margin-top: 1rem; text-align: center;
}
.success-msg.error-msg {
  background: #fdecea; border: 1px solid #f5c6cb; color: #611a15;
}

/* PAGES LÉGALES (mentions-legales.php, politique-confidentialite.php) */
main.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}
.legal-header { text-align: center; margin-bottom: 2.5rem; }
.legal-header h1 { font-size: 2rem; color: var(--violet-dark); margin-bottom: 0.5rem; }
.legal-header .sep {
  display: inline-block; width: 60px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.legal-back {
  display: inline-block; margin-bottom: 2rem; font-size: 0.9rem;
  color: var(--text-muted); text-decoration: none;
}
.legal-back:hover { color: var(--violet-dark); }
.legal section { margin-bottom: 2rem; padding: 0; }
.legal h2 {
  font-size: 1.2rem; color: var(--sage-dark); margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border); padding-bottom: 0.4rem;
}
.legal p, .legal address { font-size: 0.98rem; color: var(--text); margin-bottom: 0.6rem; font-style: normal; }
.legal ul { margin: 0 0 0.6rem 1.25rem; font-size: 0.98rem; }
.legal ul li { margin-bottom: 0.3rem; }
.legal .card {
  background: var(--bg-sage); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
.legal .updated {
  font-size: 0.85rem; color: var(--text-muted); text-align: center;
  margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.25rem;
}

/* FOOTER */
footer {
  background: var(--violet-dark); color: #d8d4f0;
  text-align: center; padding: 1rem 2.5rem;
}
footer img { height: 40px; width: auto; margin: 0 auto 1rem; display: block; filter: brightness(0) invert(1); opacity: 0.85; }
footer p { font-size: 0.875rem; margin-bottom: 0.3rem; }
footer a { color: #c0bae8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-disclaimer { font-size: 0.9rem; color: #d8d4f0; margin-top: 0.5rem; }
.footer-legal { margin-top: 0.75rem; font-size: 0.85rem; }
.footer-legal a { text-decoration: underline; }

/* MENU MOBILE */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--violet-dark); border-radius: 2px; }

@media (max-width: 600px) {
  nav { padding: 0.75rem 1.25rem; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0; width: 100%;
    order: 3; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.6rem 0; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-logo { max-width: 220px; }
  section { padding: 3rem 1.25rem; }
  .about-card { flex-direction: column; gap: 1.25rem; }
  .contact-card { padding: 1.5rem; }
}
