/* =========================================================
   BASE.CSS — STYLES GLOBAUX
   ========================================================= */

/* -------------------------
   VARIABLES
   ------------------------- */
:root {
  --color-blue: #283587;
  --color-yellow: #F1DD00;
  --color-purple: #78273A;
  --color-white: #FFFFFF;

  --text-main: #1a1a1a;
  --text-muted: #6b6b6b;
  --bg-light: #f9fafb;

  --radius: 16px;
  --transition: 0.3s ease;
  --max-width: 1100px;

  --font-title: "MuseoModerno", sans-serif;
  --font-quote: "Kalam", cursive;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
}

/* -------------------------
   RESET / BASE
   ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* -------------------------
   ACCESSIBILITÉ
   ------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-yellow);
  color: var(--color-blue);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* -------------------------
   TYPOGRAPHIE
   ------------------------- */
h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--color-blue);
  margin-top: 0;
}

.section-accent h2 {
  color: var(--color-white);
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 900px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.quote {
  font-family: var(--font-quote);
  font-size: 1.3rem;
  max-width: 800px;
}

.section-note {
  max-width: 900px;
  color: var(--text-muted);
}

.inline-links a {
  font-weight: 600;
  text-decoration: underline;
}

.text-justify{
    text-align: justify;
}

/* -------------------------
   LAYOUT GÉNÉRAL
   ------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 1rem 0;
}

.section-compact {
  padding: 2.5rem 0;
}

.section-accent {
  background: var(--color-blue);
  color: var(--color-white);
}

/* -------------------------
   NAVBAR
   ------------------------- */
header.navbar {
  position: sticky;
  top: 0;
  height: 100px;
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
}

header.navbar .logo img {
  height: 90px;
}

nav.tabs {
  display: flex;
  height: 100%;
}

a.tab {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 28px;

  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--color-white);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

a.tab:hover,
a.tab:focus {
  background: rgba(255,255,255,0.08);
}

a.tab.active,
a.tab[aria-current="page"] {
  background: var(--color-yellow);
  color: var(--color-blue);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  header.navbar {
    height: 72px;
    padding: 0 24px;
  }

  header.navbar .logo img {
    height: 62px;
  }

  a.tab {
    padding: 0 16px;
    font-size: 12px;
  }
}

/* =========================
   BURGER MENU
   ========================= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  /* Afficher le burger */
  .nav-toggle {
    display: block;
  }

  /* Menu mobile */
  nav.tabs {
    display: flex;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--color-blue);
    flex-direction: column;
    z-index: 999;

    /* caché par défaut */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Menu ouvert */
  nav.tabs[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Liens */
  nav.tabs a.tab {
    width: 100%;
    padding: 1rem;
    background: var(--color-blue);
    color: var(--color-white);
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  nav.tabs a.tab:hover,
  nav.tabs a.tab:focus {
    background: rgba(255,255,255,0.12);
  }

  nav.tabs a.tab.active,
  nav.tabs a.tab[aria-current="page"] {
    background: var(--color-yellow);
    color: var(--color-blue);
  }
}


/* =========================================================
   HERO – BANNIÈRE PLEINE LARGEUR
   ========================================================= */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-size: cover;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-logo {
  padding-right: 1.5rem;
}

/* Overlay pour lisibilité */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Contenu texte */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;      /* centré par défaut */
  text-align: left;
}

.hero-title {
  font-family: var(--font-quote);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.hero-intent {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-white);
  max-width: 600px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    transform: translateX(100px); /* décalage visuel à gauche */
  }

  .hero-banner {
    min-height: 60vh;
    padding-right: 3rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-intent {
    font-size: 1rem;
  }
}

/* -------------------------
   BOUTONS
   ------------------------- */
/* CTA */
.cta-button {
  display: inline-block;
  padding: 18px 52px;
  font-weight: 600;
  background: var(--color-purple);
  color: var(--color-white);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cta-button {
  cursor: pointer;
  border: none;
}

/* Focus accessible et élégant */
.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(40,53,135,0.35);
}

@media (max-width: 900px) {
  .cta-button {
    padding: 14px 36px;
  }
}

/* -------------------------
   SÉPARATEUR DE SECTION
   ------------------------- */
.section-separator {
  border: none;
  height: 3px;
  width: 25%;
  background-color: var(--color-blue);
  opacity: 1;
  margin: 2rem auto;
}

/* -------------------------
   CTA – RENCONTRE
   ------------------------- */

.cta-meet {
  background: linear-gradient(
    to right,
    rgba(40,53,135,0.95),
    rgba(40,53,135,0.85)
  );
  color: #ffffff;
}

.cta-meet-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* Texte */
.cta-meet-text h2 {
  margin-bottom: 1rem;
}

.cta-lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Image */
.cta-meet-visual img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* Desktop */
@media (min-width: 900px) {
  .cta-meet-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* -------------------------
   LETTRES
   ------------------------- */

.letter-more {
  font-weight: 700;
  color: var(--color-blue);
  text-decoration: underline;
  transition: color var(--transition);
}

.letter-more:hover,
.letter-more:focus {
  color: var(--color-yellow);
  text-decoration: none;
}

/* -------------------------
   FOOTER
   ------------------------- */
.site-footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.footer-links li {
  display: inline-block;
  margin: 0 1rem;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
}

/* RÉSEAUX SOCIAUX */

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background: var(--color-yellow);
}

.social-links svg {
  width: 40px;
  height: 40px;
  fill: var(--color-white);
}

.social-links a:hover svg {
  fill: var(--color-blue);
}

.flash-container {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(90%, 420px);
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: slideDown 0.4s ease, fadeOut 0.4s ease 4.5s forwards;
}

/* Success */
.flash-success {
  background: #e9f7ef;
  color: #1e7f45;
  border-left: 5px solid #2ecc71;
}

/* Error */
.flash-error {
  background: #fdecea;
  color: #b71c1c;
  border-left: 5px solid #e74c3c;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
