/* ============================================================
   GSEP — Feuille de style principale
   Palette : bleu institutionnel + or (identité de marque GSEP)
   Typo : Poppins (titres) / Inter (texte courant)
   ============================================================ */

:root {
  --blue-900: #06264d;
  --blue-800: #0a3a7a;
  --blue-700: #0a4eaf;
  --blue-600: #1361c9;
  --blue-50: #eef4fc;
  --gold-500: #f4b400;
  --gold-600: #d99a00;
  --ink: #101826;
  --ink-soft: #45516b;
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --line: #e4e9f2;
  --success: #1e8e5a;
  --danger: #c62828;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(10, 38, 77, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 38, 77, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 38, 77, 0.18);

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ============ HEADER / NAV ============ */

header {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 68%, var(--blue-600) 100%);
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 54px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  line-height: 1;
}

@media (max-width: 900px) {
  .navbar { padding: 18px 24px; }
  .menu-btn { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 84px;
    right: 20px;
    left: 20px;
    width: auto;
    padding: 26px;
    gap: 18px;
    background: var(--blue-800);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
  }

  .nav-links.active { display: flex; }
}

/* ============ HERO (page d'accueil) ============ */

.hero {
  position: relative;
  text-align: center;
  padding: 130px 24px 150px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(244, 180, 0, 0.16) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08) 0, transparent 45%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  margin: 22px auto 20px;
  max-width: 900px;
}

.hero p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  width: min(680px, 90%);
  margin: 0 auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 42px;
  flex-wrap: wrap;
}

/* ============ SUB-HEADER (pages intérieures) ============ */

header.sub-header {
  min-height: auto;
}

.sub-hero {
  padding: 70px 24px 60px;
  text-align: center;
  position: relative;
}

.sub-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
}

.breadcrumb {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumb a:hover { color: white; }

/* ============ BOUTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--blue-900);
  box-shadow: 0 10px 24px rgba(244, 180, 0, 0.3);
}

.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(244, 180, 0, 0.38);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: white;
  transform: translateY(-3px);
}

button { font-family: var(--font-head); }

/* ============ SECTION GÉNÉRIQUE ============ */

section {
  padding: 90px 60px;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-head h1, .section-head h2 {
  color: var(--blue-900);
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 16px;
  line-height: 1.8;
}

/* ============ BANDE STATS (accueil) ============ */

.stats-band {
  background: var(--blue-50);
  padding: 56px 60px;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--blue-700);
}

.stat-item .stat-label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============ APROPOS ============ */

.apropos {
  max-width: 1000px;
  margin: auto;
}

.apropos p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.valeurs-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.valeur-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.valeur-card i {
  color: var(--gold-600);
  font-size: 26px;
  margin-bottom: 14px;
  display: block;
}

.valeur-card h3 {
  color: var(--blue-900);
  font-size: 18px;
  margin-bottom: 10px;
}

.valeur-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ============ SERVICES ============ */

.services { background: var(--paper-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 34px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: 0.35s;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold-500);
}

.service-card i {
  color: var(--blue-700);
  font-size: 26px;
  background: var(--blue-50);
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h2 {
  color: var(--blue-900);
  font-size: 19px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* ============ RÉALISATIONS / GALERIE ============ */

.filter-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: white;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto;
}

.realisation {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.35s;
}

.realisation:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.media-zone {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}

.media-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.realisation:hover .media-zone img {
  transform: scale(1.06);
}

.media-zone .media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  padding: 20px;
}

.media-zone .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.media-zone .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 38, 77, 0.25);
}

.media-zone .play-badge i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.realisation .body { padding: 22px 24px 28px; }

.realisation h2 {
  color: var(--blue-900);
  font-size: 19px;
  margin-bottom: 10px;
}

.realisation p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* Lecteur vidéo intégré (YouTube etc.) */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Mini-galerie photo (ex: événement avec plusieurs photos) */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
}

.mini-gallery a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mini-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mini-gallery a:hover img {
  transform: scale(1.08);
}

/* ============ ÉQUIPE ============ */

.equipe { background: var(--paper-soft); }

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto;
}

.membre {
  background: white;
  padding: 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: 0.35s;
}

.membre:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  background: var(--blue-50);
}

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

.membre h2 {
  color: var(--blue-900);
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.membre p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ============ CONTACT ============ */

.contact-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  max-width: 1150px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-info {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: white;
  padding: 46px 40px;
  border-radius: var(--radius-lg);
}

.contact-info h2 {
  margin-bottom: 24px;
  font-size: 24px;
}

.contact-info .info-line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info .info-line i {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Champ honeypot anti-spam (invisible pour les humains) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[type="submit"] {
  background: var(--gold-500);
  color: var(--blue-900);
  border: none;
  padding: 17px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.contact-form button[type="submit"]:hover:not(:disabled) {
  background: var(--gold-600);
  transform: translateY(-2px);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
}

.form-feedback.show { display: block; }

.form-feedback.success {
  background: #e7f6ee;
  color: var(--success);
  border: 1px solid #b9e4cc;
}

.form-feedback.error {
  background: #fdecec;
  color: var(--danger);
  border: 1px solid #f5c2c2;
}

@media (max-width: 800px) {
  .contact-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ CTA BAND ============ */

.cta-band {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: white;
  text-align: center;
  padding: 80px 24px;
}

.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 18px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ============ FOOTER ============ */

footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.85);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 50px;
  padding: 70px 60px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-logo { display: flex; flex-direction: column; gap: 16px; }

.footer-logo img {
  height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer-logo p {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-head);
  font-size: 15px;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-500); }

.footer-contact p {
  margin-bottom: 14px;
  font-size: 14.5px;
  display: flex;
  gap: 10px;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.socials a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  transition: 0.25s;
}

.socials a:hover {
  background: var(--gold-500);
  color: var(--blue-900);
  transform: translateY(-4px);
}

.copyright {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ RESPONSIVE GÉNÉRAL ============ */

@media (max-width: 900px) {
  section { padding: 70px 24px; }
  .services, .realisations, .equipe, .contact, .apropos { padding: 70px 24px; }
  .footer-container { grid-template-columns: 1fr; padding: 50px 30px 30px; gap: 36px; }
}

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content,
.section-head,
.service-card,
.realisation,
.membre,
.valeur-card {
  animation: fadeUp 0.8s ease both;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ ACCESSIBILITÉ ============ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
