/* Douceline Éducation : feuille de style principale */

:root {
  --teal: #2CAF8E;
  --teal-dark: #1F8F73;
  --navy: #1B3A5C;
  --gold: #F0A93A;
  --cream: #FDFBF6;
  --cream-alt: #F6F1E7;
  --text: #33312E;
  --text-light: #6b675f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 58, 92, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Nunito", serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.script {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 1;
}

p { margin: 0 0 1em; color: var(--text); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(27, 58, 92, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-name {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
}

nav.main-nav a:hover { color: var(--teal-dark); text-decoration: none; }

nav.main-nav a.active { color: var(--teal-dark); }

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--teal-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(27,58,92,0.08);
  }
  nav.main-nav.open { max-height: 400px; }
  nav.main-nav a {
    padding: 14px 24px;
    width: 100%;
    border-top: 1px solid rgba(27,58,92,0.06);
  }
  .nav-cta { border-radius: 0; text-align: center; }
  .menu-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--teal);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(44, 175, 142, 0.35);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-secondary {
  background: #fff;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff !important; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(240, 169, 58, 0.18);
  color: #a7690f;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 { margin-bottom: 12px; }

.hero .slogan {
  font-size: 2rem;
  color: var(--teal-dark);
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  margin-bottom: 14px;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-text .btn-row { justify-content: center; }
@media (max-width: 860px) { .hero-text { text-align: center; align-items: center; } }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--cream-alt); }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-light); text-align: center; }

/* ---------- Cards / grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); margin-bottom: 0; }

.card.gold { border-top-color: var(--gold); }
.card.navy { border-top-color: var(--navy); }

/* ---------- About teaser / split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split div p { text-align: justify; text-align-last: left; }

/* ---------- Values list ---------- */
.values-list { display: grid; gap: 20px; }
.value-item {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.value-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.value-num img { width: 100%; height: 100%; object-fit: contain; }
.value-item h3 { margin-bottom: 6px; }
.value-item p { margin: 0; color: var(--text-light); text-align: justify; text-align-last: left; }

/* ---------- Quote / mission box ---------- */
.mission-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.mission-box img {
  width: 84px;
  height: auto;
  margin: 0 auto 20px;
}
.mission-box p {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.3rem;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--teal);
  color: #fff;
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,0.9); text-align: center; }
.cta-strip .btn-row { justify-content: center; }
.cta-strip .btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.cta-strip .btn-secondary:hover { background: #fff; color: var(--teal-dark) !important; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-item h4 { margin: 0 0 4px; color: var(--navy); font-family: "Playfair Display", serif; }
.contact-item p, .contact-item a { margin: 0; color: var(--text-light); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

form.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
form.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd7c8;
  border-radius: 10px;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
form.contact-form button { width: 100%; border: none; cursor: pointer; }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }

/* ---------- Infographics ---------- */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.infographic-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) { .infographic-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery teaser ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.gallery-grid img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Photo gallery (grid + lightbox) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .photo-grid { grid-template-columns: 1fr; } }

.photo-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.photo-grid button:hover img { transform: scale(1.05); }

.photo-more {
  border: 2px dashed rgba(27,58,92,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-weight: 700;
  padding: 20px;
  aspect-ratio: 4 / 3;
  background: var(--cream-alt);
}

/* ---------- Photo carousel (auto-scrolling strip) ---------- */
.photo-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.photo-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: photo-carousel-scroll 45s linear infinite;
}
.photo-carousel:hover .photo-carousel-track { animation-play-state: paused; }
.photo-carousel-track img {
  height: 260px;
  width: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .photo-carousel-track img { height: 180px; width: 240px; }
}
@keyframes photo-carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27, 34, 43, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Témoignages ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}
.testimonial-card p.quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.5;
}
.testimonial-card .who { color: var(--text-light); font-weight: 600; margin: 0; font-family: "Nunito", sans-serif; font-style: normal; }
.testimonial-card .who span { display: block; font-weight: 400; color: var(--text-light); font-size: 0.9rem; }

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.testimonial-grid .testimonial-card {
  flex: 1 1 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
}
@media (max-width: 860px) {
  .testimonial-grid .testimonial-card { flex: 1 1 100%; max-width: 100%; }
}

.coming-soon-box {
  background: var(--cream-alt);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.coming-soon-box img { width: 64px; margin: 0 auto 18px; }
.coming-soon-box p { text-align: center; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--text-light); margin: 0; text-align: justify; text-align-last: left; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { footer.site-footer .container { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: #fff; font-family: "Playfair Display", serif; margin-bottom: 14px; }
footer.site-footer .footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 20px;
}
footer.site-footer a { color: rgba(255,255,255,0.85); }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer .brand { margin-bottom: 12px; }
footer.site-footer .brand-name { color: #fff; }
footer.site-footer p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0;
  background: var(--cream-alt);
  text-align: center;
}
.page-hero p { color: var(--text-light); max-width: 60ch; margin: 0 auto; text-align: center; }
