/* ==========================================================================
   Adopte un glacier — feuille de style
   ========================================================================== */

:root {
  --color-dark: #0c3547;
  --color-dark-2: #082430;
  --color-ink: #16232a;
  --color-bg: #ffffff;
  --color-ice: #eef5f7;
  --color-border: #dce7ea;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap-width: 1180px;
  --nav-height: 76px;
  --section-min-height: 90vh;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.section-title {
  color: var(--color-dark);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

section {
  padding: 6rem 0;
  min-height: var(--section-min-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
section:nth-of-type(even) { background: var(--color-ice); }

/* ---------------------------------- Navbar ---------------------------------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 2rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(12, 53, 71, 0.08);
}

.navbar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.3s ease;
}

.navbar.scrolled .brand { color: var(--color-dark); }

.menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.3s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.menu a:hover { opacity: 0.7; }

.navbar.scrolled .menu a { color: var(--color-dark); }

.menu-cta {
  border: 1px solid currentColor;
  padding: 0.5rem 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: background-color 0.3s ease;
}

.navbar.scrolled .menu-toggle span { background: var(--color-dark); }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark-2);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,36,48,0.45) 0%, rgba(8,36,48,0.35) 50%, rgba(8,36,48,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 0 0 5rem;
  width: 100%;
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1;
  max-width: 560px;
  margin: 0 0 3rem;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.scroll-down span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounce-down 1.6s infinite;
  opacity: 0.85;
}

.scroll-down span:nth-child(2) { animation-delay: 0.15s; }
.scroll-down span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce-down {
  0% { opacity: 0; transform: translateY(-6px) rotate(45deg); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(6px) rotate(45deg); }
}

/* ---------------------------------- À propos ---------------------------------- */

#a-propos h2 {
  color: var(--color-dark);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
}

.intro {
  max-width: 820px;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.6;
}

.propos-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.propos-col p { margin: 0 0 1.2rem; }

.propos-image img {
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(12, 53, 71, 0.18);
}

.propos-cta {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.propos-cta p { margin: 0 0 1rem; }

/* ---------------------------------- Témoignages ---------------------------------- */

#temoignages { padding: 0; }

.slideshow-container { position: relative; }

.slideshow-container input[type="radio"] { display: none; }

.slides { position: relative; }

.slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  height: var(--section-min-height);
  overflow: hidden;
}

.slide-photo {
  height: 100%;
  overflow: hidden;
}

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

.slide-legend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem 3rem 3.5rem;
  height: 100%;
  overflow-y: auto;
  font-size: 0.85rem; // taille de la typo témoignage
  line-height: 1.45;
}

.slide-legend h3 {
  color: var(--color-dark);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.slide-age {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  text-transform: none;
  color: var(--color-dark);
  opacity: 0.7;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.slide-legend p { margin: 0 0 0.6rem; }

#slide1:checked ~ .slides .slide:nth-child(1),
#slide2:checked ~ .slides .slide:nth-child(2),
#slide3:checked ~ .slides .slide:nth-child(3),
#slide4:checked ~ .slides .slide:nth-child(4),
#slide5:checked ~ .slides .slide:nth-child(5) {
  display: grid;
}

.nav {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-dark);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#slide1:checked ~ .nav label[for="slide1"],
#slide2:checked ~ .nav label[for="slide2"],
#slide3:checked ~ .nav label[for="slide3"],
#slide4:checked ~ .nav label[for="slide4"],
#slide5:checked ~ .nav label[for="slide5"] {
  background: var(--color-dark);
}

/* ---------------------------------- Parcours ---------------------------------- */

#parcours { padding: 0; }

.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--section-min-height);
}

.parcours-stats {
  background: var(--color-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 4rem 2rem;
  text-align: center;
}

.stat-chiffre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--color-ice);
}

.stat-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  margin-top: 0.4rem;
}

.parcours-map iframe {
  display: block;
  height: 100%;
  min-height: var(--section-min-height);
  border: 0;
}

/* ---------------------------------- Extraits de presse ---------------------------------- */

#extraits-de-presse { background: var(--color-ice); }

#extraits-de-presse blockquote {
  margin: 0 auto;
  max-width: 780px;
  text-align: left;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.1;
  color: var(--color-dark);
}

#extraits-de-presse blockquote p { margin: 0 0 1.2rem; }

#extraits-de-presse cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ---------------------------------- Presse ---------------------------------- */

.presse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  align-items: center;
}

.presse-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.presse-grid a:hover {
  filter: grayscale(0);
  opacity: 1;
}

.presse-grid img { max-height: 56px; width: auto; margin: 0 auto; }

/* ---------------------------------- Partenariat ---------------------------------- */

#partenariat {
  min-height: auto;
  padding: 4rem 0;
  background: var(--color-bg);
}

.partenariat-content {
  text-align: center;
}

.partenariat-content p {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.partenariat-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partenariat-logos img { max-height: 140px; width: auto; }

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 1.4rem;
  color: var(--color-ink);
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-grid {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: #fff;
  color: var(--color-ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-dark);
  outline-offset: 1px;
}

.contact-form button {
  margin-top: 1.6rem;
  align-self: flex-start;
  background: var(--color-dark);
  color: #fff;
  border: 0;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover { background: var(--color-dark-2); }

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success { color: #1b7a3d; }
.form-status.error { color: #b3261e; }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.icon-link {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.icon-link:hover { border-color: var(--color-dark); }

/* ---------------------------------- Footer ---------------------------------- */

footer#footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
}

footer#footer p { margin: 0.3rem 0; }

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 900px) {
  .propos-grid,
  .slide,
  .parcours-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .propos-image { order: -1; }

   .parcours-map iframe { min-height: 420px; }

  .slide { height: auto; }
  .slide-photo img { height: 50vh; min-height: 320px; }
  .slide-legend { height: auto; overflow: visible; padding: 2.5rem 1.5rem; }

  .presse-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  section { padding: 4rem 0; }

  .menu-toggle { display: flex; }

  .menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255,255,255,0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
  }

  .menu.open { max-height: 480px; padding: 1rem 2rem 2rem; }

  .menu a {
    color: var(--color-dark);
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-cta { border: 0; }

  .presse-grid { grid-template-columns: repeat(2, 1fr); }

  .parcours-stats { padding: 3rem 1.5rem; gap: 2rem; }
}
