/* ================================================================
   L'Atelier des Petits Philosophes — CSS matching original site
   Fonts: Fredoka (headings/nav), Nunito (body — SIL OFL)
   ================================================================ */

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  /* Site colors — blue/teal palette derived from logo #6B9FD4 */
  --white:        #ffffff;
  --text:         #333333;
  --text-light:   #595959;
  --orange:       #5B8DC4;           /* logo-blue — button fill, nav accent */
  --cream:        #EAF2F9;           /* pale sky blue — hero/about section bg */
  --sage:         rgba(147,196,224,0.42); /* activity cards bg */
  --sage-solid:   #6B9FD4;           /* logo blue — headings, rule, legal */
  --yellow-green: rgba(200,225,245,0.48); /* activities section overlay */
  --warm-card:    #A8C8E8;           /* soft steel blue */
  --light-peach:  #BEE0F0;           /* light sky blue */
  --cream-yellow: #D4EBF5;           /* pale blue */
  --border:       rgba(51,51,51,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── TYPOGRAPHY ──────────────────────────────────── */

h1, h2, h3, h4, h5,
.nav-link, .btn {
  font-family: 'Fredoka', sans-serif;
}

/* ─── BUTTONS ─────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  text-transform: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-white {
  background: var(--white);
  color: var(--text);
}

.btn-white:hover {
  opacity: 0.88;
}

/* ─── HEADER ──────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-size: 15px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  color: var(--text);
  padding: 8px 16px;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link.active {
  color: var(--orange);
}

.nav-book {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 24px;
  margin-left: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  display: inline-block;
  transition: opacity 0.2s;
}

.nav-book:hover {
  opacity: 0.88;
  color: #fff;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  padding: 4px 6px;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.04em;
}

.lang-btn:hover {
  color: var(--orange);
}

.lang-btn.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ─── HERO ────────────────────────────────────────── */

/* ─── HERO — full-bleed ───────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 72vh;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 25%;
  display: block;
  z-index: 0;
}

.hero-center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 90px 40px 60px 64px;
}

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 520px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.18);
}

.hero-btns {
  display: flex;
  justify-content: flex-start;
}

/* pill-shaped button — logo blue */
.btn-hero {
  background: rgba(107, 159, 212, 0.9);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 14px 44px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero:hover {
  background: rgba(107, 159, 212, 1);
  transform: translateY(-2px);
}

/* three enjeu cards — overlap bottom edge of image */
.hero-enjeux {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 40px;
  max-width: 1100px;
  margin: -48px auto 0;
  width: 100%;
}

.enjeu-card {
  border-radius: 18px;
  padding: 32px 24px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Each card has its own blue tone */
.enjeu-card:nth-child(1) { background: #A8C4E0; } /* soft steel blue */
.enjeu-card:nth-child(2) { background: #B8DCF0; } /* pale sky blue */
.enjeu-card:nth-child(3) { background: #D0E8F5; } /* very pale blue */

.enjeu-num {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.enjeu-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.enjeu-card p {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* ─── SCROLL REVEAL ───────────────────────────────── */

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--anim-delay, 0s);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ABOUT — wave top, sketched arrow ────────────── */

.about {
  background: var(--cream);
  padding: 110px 0 180px; /* bottom padding clears the 160px wave zone */
  position: relative;
  overflow: visible;      /* allow top wave SVG to extend above section edge */
  z-index: 1;             /* sit above hero section in stacking order */
  margin-top: -20px;      /* slight overlap so top wave fully covers hero bottom edge */
}

/* Cream wave extending above (into hero bottom area) */
.about-wave-top {
  position: absolute;
  top: -89px;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
}

/* White S-curve wave at bottom — dramatic sweep low-left → high-right */
.about-wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
}

.about-wave-top svg,
.about-wave-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Arrow + heading row */
.about-heading-wrap {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 44px;
}

.about-arrow {
  width: 90px;
  height: 76px;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.about-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 52px;
  font-weight: 400;
  color: var(--sage-solid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* Body paragraphs */
.about-body {
  max-width: 880px;
  margin-bottom: 52px;
}

.about-body p {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  margin-bottom: 22px;
}

.about-body p:last-child { margin-bottom: 0; }

.about-body strong {
  font-weight: 700;
}

/* Philosophy quote block */
.about-philo {
  margin-top: 8px;
}

.philo-question {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--sage-solid);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.philo-quote {
  text-align: center;
  margin: 0;
  border: none;
  padding: 0;
}

.philo-quote p {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.philo-quote cite {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  font-style: normal;
}

/* Keep .section-title for activities / gallery headings */
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.tag {
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
}

/* ─── À L'ORIGINE ────────────────────────────────── */

.origine {
  background: var(--white);
  padding: 80px 0 90px;
  position: relative;
  z-index: 1;
}

.origine-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.origine-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 34px;
  font-weight: 400;
  color: #7aaac8;
  text-align: center;
  line-height: 1.28;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.origine-body p {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 20px;
}

.origine-body p:last-child { margin-bottom: 0; }

.origine-signature {
  margin-top: 28px !important;
  font-size: 14px !important;
  color: var(--text-light) !important;
}

/* SVG illustration column */
.origine-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
}

.origine-svg {
  width: 100%;
  max-width: 260px;
}

/* path draw-in animation */
.svg-path {
  stroke: #94bdd8;
  stroke-width: 1.8;
  fill: none;
  /* large initial dasharray; JS will set the real length */
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-path:nth-child(1) { transition-delay: 0.05s; }
.svg-path:nth-child(2) { transition-delay: 0.3s;  }
.svg-path:nth-child(3) { transition-delay: 0.7s;  }
.svg-path:nth-child(4) { transition-delay: 1.1s;  }

.origine-svg.is-drawn .svg-path {
  stroke-dashoffset: 0;
}

@media (max-width: 860px) {
  .origine-inner { grid-template-columns: 1fr; }
  .origine-visual { padding-top: 0; }
  .origine-svg { max-width: 200px; }
}

/* ─── REVEAL DIRECTIONS (extends reveal-up) ──────── */

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--anim-delay, 0s);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--anim-delay, 0s);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── ACTIVITIES ──────────────────────────────────── */

.activities {
  background: var(--yellow-green);
  padding: 70px 0 80px;
}

/* Top: title + list stacked and centered */
.act-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.act-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
}

.act-main-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--sage-solid);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.brain-illo {
  display: inline-flex;
  align-items: center;
}

.brain-illo img {
  display: block;
  mix-blend-mode: multiply;
}

.act-rule {
  border: none;
  border-top: 1.5px solid var(--sage-solid);
  opacity: 0.45;
  width: 100%;
  max-width: 620px;
  margin: 0 0 32px;
}

/* Lamp bullet list — single centered column */
.lamp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  width: 100%;
}

.lamp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.lamp-icon {
  flex-shrink: 0;
  width: 26px;
  height: 34px;
  margin-top: 1px;
}

/* Three skill columns */
.skill-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-col {
  background: var(--sage);
  border-radius: 0;
  overflow: hidden;
}

.skill-col-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.skill-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.skill-col:hover .skill-col-img img {
  transform: scale(1.04);
}

.skill-col-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
  padding: 22px 20px 16px;
  margin: 0;
}

.skill-col-body {
  padding: 0 20px 28px;
}

.skill-col-body p {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text);
  margin-bottom: 14px;
}

.skill-col-body p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .act-main-title { font-size: 28px; }
  .skill-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .act-main-title { font-size: 24px; }
}

/* ─── GALLERY ─────────────────────────────────────── */

.gallery {
  background: var(--white);
  padding: 70px 0;
}

.gallery-header {
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.gallery-header p {
  font-size: 16px;
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 231px);
  gap: 5px;
  justify-content: center;
}

.gallery-item {
  width: 231px;
  height: 231px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* ─── PERLES SLIDESHOW ────────────────────────────── */

.perles {
  margin-top: 60px;
}

.perles h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.perles-sub {
  font-size: 15px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 32px;
}

.perles-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
}

.perles-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.perles-track {
  display: flex;
  gap: 5px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.perle-slide {
  flex: 0 0 280px;
  width: 280px;
}

/* Color schemes — cycle every 4 cards */
.perle-slide:nth-child(4n+1) .perle-card { --perle-bg: #dceef8; --perle-accent: #2e6da8; }
.perle-slide:nth-child(4n+2) .perle-card { --perle-bg: #d4f0f5; --perle-accent: #2e7d8c; }
.perle-slide:nth-child(4n+3) .perle-card { --perle-bg: #dff0ea; --perle-accent: #2e8070; }
.perle-slide:nth-child(4n+0) .perle-card { --perle-bg: #e0eaf8; --perle-accent: #4470a8; }

.perle-card {
  position: relative;
  height: 340px;
  background: var(--perle-bg, #dceef8);
  color: var(--perle-accent, #2e6da8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 22px 22px;
  text-align: center;
}

/* Top bracket */
.perle-card::before {
  content: '';
  position: absolute;
  top: 14px; left: 18px; right: 18px;
  height: 66px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  pointer-events: none;
}

/* Bottom bracket */
.perle-card::after {
  content: '';
  position: absolute;
  bottom: 14px; left: 18px; right: 18px;
  height: 28px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  pointer-events: none;
}

.perle-icon {
  flex-shrink: 0;
  margin-top: 6px;
  margin-bottom: 4px;
}

.perle-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.perle-question {
  font-size: 14px;
  font-weight: 700;
  color: #3a3a3a;
  line-height: 1.4;
  margin-bottom: 14px;
}

.perle-answer {
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
  flex: 1;
}

.perles-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(51, 51, 51, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: background 0.2s;
  z-index: 2;
}

.perles-arrow:hover {
  background: rgba(51, 51, 51, 0.9);
}

.perles-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.perles-prev { margin-right: 8px; }
.perles-next { margin-left: 8px; }

/* ─── PERLE FULLSCREEN EXPAND (Wix pro-gallery fullscreen-bright) ─── */

.perle-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 2000;
  flex-direction: column;
  align-items: stretch;
}

.perle-fullscreen.is-open {
  display: flex;
}

/* Top navbar — close button row */
.pf-navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  min-height: 52px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.pf-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.pf-close:hover { opacity: 1; }

/* Image stage — fills remaining height */
.pf-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.pf-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px 70px;
}

#pf-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

/* Chevron arrow buttons */
.pf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 10;
}

.pf-arrow:hover { opacity: 1; }
.pf-arrow:disabled { opacity: 0.15; cursor: default; }

.pf-prev { left: 25.5px; }
.pf-next { right: 25.5px; }

.pf-chevron { display: block; pointer-events: none; }

/* Counter — e.g. "3 / 25" */
.pf-counter {
  text-align: center;
  padding: 8px 0 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .perle-slide { flex: 0 0 240px; width: 240px; }
  .perle-card  { height: 310px; }
}

@media (max-width: 640px) {
  .perle-slide { flex: 0 0 200px; width: 200px; }
  .perle-card  { height: 290px; padding: 18px 16px 18px; }
  .perle-answer { font-size: 12.5px; }
  .perles-arrow { width: 28px; height: 28px; font-size: 22px; }
}

/* ─── CONTACT ─────────────────────────────────────── */

.contact {
  background: var(--white);
  padding: 70px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-info .lead {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail .ci {
  width: 20px;
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 2px;
}

.contact-detail .ct h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-detail .ct p,
.contact-detail .ct a {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.social-link:hover {
  border-color: var(--text);
  background: var(--text);
}

.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social-link:hover img {
  filter: brightness(0) invert(1);
}

/* Contact Form */

.contact-form {
  padding: 0;
}

.contact-form h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
  font-family: 'Nunito', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--text);
}

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

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
}

/* ─── FOOTER ──────────────────────────────────────── */

footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.footer-bottom .legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--text); }

/* ─── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .gallery-item { width: auto; height: auto; aspect-ratio: 1; }
}

@media (max-width: 860px) {
  .hero h1 { font-size: 42px; }
  .hero-enjeux { grid-template-columns: 1fr; gap: 12px; margin-top: -24px; padding: 0 24px; }
  .about-title { font-size: 38px; }
  .about-arrow { width: 70px; height: 58px; }
  .skill-cols { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 86px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 20px 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 99;
  }
  nav.open .nav-link { padding: 10px 0; border-bottom: 1px solid var(--border); }
  nav.open .nav-book { margin: 12px 0 0; text-align: center; }
  nav.open .lang-switcher { margin: 12px 0 0; justify-content: center; }
  .hamburger { display: flex; }
  .header-inner { position: relative; }

  .hero h1 { font-size: 30px; }
  .hero-image-wrap { min-height: 60vh; }
  .hero-center { padding: 70px 24px 48px; text-align: center; align-items: center; }
  .hero-enjeux { padding: 0 16px; gap: 10px; margin-top: -16px; }
  .about { padding-top: 80px; padding-bottom: 140px; }
  .about-title { font-size: 30px; }
  .about-arrow { width: 56px; height: 46px; }
  .philo-quote p { font-size: 16px; }
  .section-title,
  .section-header h2,
  .about-content h2,
  .gallery-header h2,
  .contact-info h2 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom .legal { flex-wrap: wrap; justify-content: center; }
}

/* ─── LEGAL PAGES ───────────────────────────────────── */
.legal-page { padding: 80px 0 100px; }

.legal-page h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 38px;
  color: var(--sage-solid);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  color: var(--text);
  margin: 40px 0 10px;
}

.legal-page p { margin-bottom: 14px; line-height: 1.7; }

.legal-page ul {
  margin: 0 0 14px 24px;
  line-height: 1.7;
}

.legal-page ul li { margin-bottom: 6px; }

.legal-page a { color: var(--sage-solid); text-decoration: underline; }
.legal-page a:hover { color: var(--text); }
