﻿/* Global reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #398c56;
  --blue: #1e465d;
  --dark: #0f2431;
  --light: #f5f8f6;
  --text: #1d2a32;
  --muted: #5c6b75;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

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

/* Layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(24, 54, 72, 0.94);
  color: #fff;
  padding: 2px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

header nav ul { list-style: none; display: flex; align-items: center; gap: 12px; }
header nav a { color: #fff; font-weight: 700; letter-spacing: 0.15px; text-decoration: none; padding: 4px 6px; font-size: 0.95rem; line-height: 1; }
header nav a:hover { color: #dfe3e6; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 10px;
  background: rgba(24, 54, 72, 0.94); /* entre le header et le dropdown initial */
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1050;
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a { display: block; color: #fff; padding: 8px 10px; border-radius: 8px; }
.dropdown-menu a:hover { background: rgba(255,255,255,0.08); }
.dropdown.open .dropdown-menu { display: flex; }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: flex; }
.logo-md { max-width: 140px; height: auto; }
.logo-link { display: inline-flex; align-items: center; }
.logo-link:hover { text-decoration: none; }
.nav-toggle { margin-left: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 8px;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

section { padding: 20px; }
section:not(#hero) { margin-top: 64px; }

.content-container { max-width: 1180px; margin: 0 auto; }

/* Hero */
#hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  background: url('images/background.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 110px 20px 90px;
}
#hero.hero-formation-section {
  min-height: 720px;
  padding: 110px 20px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero.hero-moe-section {
  min-height: 720px;
  padding: 110px 20px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/photos_act/moe1.jpg') center/cover no-repeat;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(15,36,49,0.18) 0%, rgba(30,70,93,0.18) 50%, rgba(57,140,86,0.16) 100%);
  z-index: 0;
}

.hero-text { max-width: 720px; margin: 0 auto; }
.hero-logo { width: 220px; margin: 0 auto 16px; }
#hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 12px; }
.hero-tagline { font-size: 1.05rem; color: #e5edf2; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-text {
  position: relative;
  z-index: 1;
  background: rgba(15, 36, 49, 0.74);
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.35);
}
.hero-formation {
  width: min(92%, 680px);
  max-width: 680px;
  padding: 18px 22px;
  margin: 0 auto;
  background: rgba(15, 36, 49, 0.68);
}
.hero-formation-section {
  background-position: center;
  background-size: cover;
}

.logo-band {
  display: inline-flex;
}
.logo-band img { width: 220px; height: auto; }
.logo-band-contact { display: flex; justify-content: center; margin-bottom: 12px; }
.logo-contact-inline {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 18px; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-tile { position: relative; border-radius: 18px; overflow: hidden; min-height: 320px; display: block; color: #fff; text-align: left; background-color: #1e465d; box-shadow: 0 18px 50px rgba(0,0,0,0.25); }
.hero-tile::after { content: none; }
.hero-tile .tile-overlay { position: absolute; inset: 0; padding: 32px 26px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.hero-tile h2 { margin: 0; font-size: 1.4rem; }
.hero-tile .tile-link { font-weight: 700; color: #e5f4ec; text-decoration: underline; text-underline-offset: 4px; }
.hero-tile.tile-training { background: rgba(57, 140, 86, 0.88); }
.hero-tile.tile-vrd { background: linear-gradient(135deg, rgba(57,140,86,0.9) 0%, rgba(24,54,72,0.9) 100%); }
.hero-tile.tile-conduite { background: rgba(24, 54, 72, 0.9); }
.tile-desc { color: #f1f7f4; font-size: 0.95rem; line-height: 1.4; }
.tile-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { background: rgba(255,255,255,0.16); color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em; border: 1px solid rgba(255,255,255,0.28); }
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: rgba(30, 70, 93, 0.06);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
}
.pdf-link:hover {
  background: rgba(30, 70, 93, 0.12);
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: all 0.2s ease; }
.btn.primary { background: #1e465d; color: #fff; border-color: #1e465d; }
.btn.primary:hover { background: #16374a; border-color: #16374a; color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn.ghost:hover { border-color: #fff; }
.btn.primary-submit { justify-self: flex-start; }

.section-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; color: var(--green); font-weight: 700; }
.hero-tile .section-label { color: #fff; }
.lead { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.card { position: relative; padding: 24px; background: #fff; border: 1px solid #d5dfda; border-radius: 14px; box-shadow: 0 16px 50px rgba(15,36,49,0.12); overflow: visible; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 6px 0 12px; color: var(--blue); }
.card.service-training .section-label,
.card.service-vrd .section-label { color: var(--green); font-size: 1rem; letter-spacing: 0.1em; }
.card ul { padding-left: 18px; color: var(--muted); }
.card li { margin: 8px 0; }
.card p { color: var(--text); margin-bottom: 12px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.card.service-training,
.card.service-vrd { background: #fff; }
.card.service-training::after,
.card.service-vrd::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 12px;
  right: 12px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.card.service-training::after { background-image: url('images/service-formation.svg'); }
.card.service-vrd::after { background-image: url('images/service-moe.svg'); }
.card.service-training,
.card.service-vrd { padding-right: 32px; }
#formation-details,
#formation-compactage { position: relative; }

#formation-details::before,
#formation-compactage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
}

#formation-details::before { background-image: url('images/photos_act/background_finisseur.jpg'); }
#formation-compactage::before { background-image: url('images/photos_act/background_compacteur.png'); }

#formation-details .content-container,
#formation-compactage .content-container {
  position: relative;
  z-index: 1;
}

#formation-details .section-header,
#formation-compactage .section-header {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 14px 32px rgba(15, 36, 49, 0.16);
}
.mini-block { margin-top: 12px; padding: 12px; background: var(--light); border-radius: 10px; border: 1px solid #d9e4dd; }
.mini-block ul { margin: 0; padding-left: 18px; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 16px; }
.story-card h3 { color: var(--blue); margin-bottom: 10px; }
.story-card p { margin-bottom: 10px; color: var(--muted); }
.text-accent { color: var(--green); font-weight: 700; }
.story-narrative { display: grid; gap: 16px; color: var(--text); }
.story-narrative h3 { color: var(--blue); margin: 10px 0 2px; }
.story-narrative p { margin: 0; line-height: 1.6; color: var(--text); }
.services-text { align-items: start; gap: 24px; }
.services-text article { align-self: start; }
.services-text article:first-child { border-right: 2px solid var(--green); padding-right: 18px; }
.services-text article:last-child { padding-left: 18px; }
.moe-illustration { margin-top: 20px; text-align: center; }
.moe-illustration img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15,36,49,0.12);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill-list li { background: var(--light); border: 1px solid #d9e4dd; padding: 10px 14px; border-radius: 12px; color: var(--dark); font-weight: 600; }

.highlight-box { background: var(--dark); color: #fff; padding: 24px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.highlight-box h3 { margin-bottom: 12px; font-size: 1.25rem; }
.highlight-box ul { padding-left: 18px; }
.highlight-box li { margin: 10px 0; color: #e8f1f5; }

#zones { background: var(--light); }
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.zone-card {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 260px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 12px 30px rgba(15,36,49,0.2);
  background-size: cover;
  background-position: center;
}
.zone-card > * { position: relative; z-index: 1; }
.zone-card h3 { color: #fff; margin-bottom: 10px; }
.zone-card p { color: #f1f5f7; font-weight: 700; }
.zone-formation { background-image: url('images/photos_act/france.jpg'); }
.zone-moe { background-image: url('images/photos_act/landes_paysbasque.jpg'); }
.zone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  backdrop-filter: blur(2px);
  z-index: 0;
}

#approach {
  position: relative;
  background: linear-gradient(135deg, #e8f1ed 0%, #f5f8f6 100%);
  overflow: hidden;
}
#approach::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, #e8f1ed 100%);
}
#approach .content-container {
  position: relative;
  z-index: 1;
}
#approach .highlight-box {
  background: rgba(15,36,49,0.92);
}

#contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 18px 0 10px; }
.contact-card { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid #dfe7e2; border-radius: 12px; background: var(--light); }
.contact-card i { font-size: 1.2rem; color: var(--blue); display: grid; place-items: center; }
.contact-card .label { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; height: 100%; }

#contact form { display: grid; gap: 12px; padding: 20px; border: 1px solid #dfe7e2; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(15,36,49,0.06); align-self: start; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--dark); }
.form-group input,
.form-group textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd9d3; border-radius: 10px; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(57,140,86,0.12); }
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] { width: auto; }
.captcha-placeholder .g-recaptcha { display: inline-block; margin-top: 6px; }
.required { color: var(--green); }

footer { background: var(--dark); color: #fff; padding: 24px 20px 12px; }
.footer-container { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-logo { max-width: 150px; height: auto; }
.footer-contact p { margin: 4px 0; color: #e7edf2; }
.footer-legal { text-align: center; padding: 0; font-size: 0.95rem; }
.footer-legal a { color: #e7edf2; }
.mentions-studio-chax { text-align: right; margin-top: 0; padding-right: 0; align-self: flex-end; }
.mentions-studio-chax a { color: #9fb5c2; font-size: 0.85rem; }
.footer-bottom {
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact a { color: #9fb5c2; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100%;
    background: rgba(15,36,49,0.97);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 120px 28px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.35);
    z-index: 1100;
  }
  nav.open { transform: translateX(0); }
  header nav ul { flex-direction: column; align-items: center; gap: 22px; text-align: center; }
  header nav a { font-size: 1rem; display: block; }
  .dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    display: flex;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 6px 0 0;
    gap: 2px;
  }
  .dropdown-menu a { padding: 8px 0; }
  .dropdown:hover .dropdown-menu { display: flex; }
  section { padding: 70px 16px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 200px; }
  #hero { padding-top: 130px; min-height: 600px; }
  .hero-tiles { grid-template-columns: 1fr; max-width: 640px; }
  .hero-text { max-width: 90%; }
  #hero.hero-formation-section { min-height: 640px; padding: 110px 18px 80px; display: flex; align-items: center; justify-content: center; }
  #hero.hero-moe-section { min-height: 640px; padding: 110px 18px 80px; display: flex; align-items: center; justify-content: center; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-info { height: auto; }
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 0;
  }
  .dropdown-menu a { padding: 8px 0; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
}

@media (max-width: 640px) {
  header { flex-direction: row; align-items: center; gap: 8px; }
  section:not(#hero) { margin-top: 60px; }
  .btn { width: 100%; }
  #hero { padding: 120px 14px 70px; min-height: auto; }
  #hero.hero-formation-section { padding: 110px 14px 70px; min-height: auto; display: flex; align-items: center; justify-content: center; }
  #hero.hero-moe-section { padding: 110px 14px 70px; min-height: auto; display: flex; align-items: center; justify-content: center; }
  .hero-logo { width: 170px; }
  .hero-text { padding: 16px; }
  .hero-formation { max-width: 100%; }
  .hero-tiles { gap: 12px; grid-template-columns: 1fr; }
  .hero-tile { min-height: auto; padding-bottom: 10px; }
  .hero-tile .tile-overlay { position: relative; inset: auto; padding: 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-info { height: auto; }
}

html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body.no-scroll,
html.no-scroll { overflow: hidden; height: 100%; }
