/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --navy:       #1B2F55;
  --navy-mid:   #253A60;
  --glacier:    #C8D8E8;
  --gold:       #D4A017;
  --green:      #27AE60;
  --red:        #E74C3C;
  --white:      #FFFFFF;
  --af-blue:    #002157;
  --to-green:   #00A651;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--glacier);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.btn-vote {
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: not-allowed;
  opacity: 0.85;
  border: none;
  position: relative;
}

.btn-vote:hover::after {
  content: "Bientot disponible";
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--glacier);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    transform: translateY(0);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

/* Motif geometrique subtil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 750px;
  animation: fadeInUp 0.8s ease-out both;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: var(--glacier);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border: 2px solid var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ============================================================
   ENGAGEMENTS
   ============================================================ */
.engagements {
  background: var(--navy-mid);
  padding: 5rem 1.5rem;
}

.section-title {
  text-align: center;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 3rem;
}

.section-title.dark {
  color: var(--navy);
}

.engagements-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .engagements-grid {
    grid-template-columns: 1fr;
  }
}

.engagement-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.engagement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.engagement-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.engagement-card-header i,
.engagement-card-header svg {
  color: var(--gold);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  stroke-width: 1.5;
}

.engagement-card-header h3 {
  color: var(--white);
  font-size: 1.15rem;
}

.engagement-card p {
  color: var(--glacier);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   PROGRAMME
   ============================================================ */
.programme {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.programme-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .programme-grid {
    grid-template-columns: 1fr;
  }
}

.programme-card {
  background: var(--white);
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27, 47, 85, 0.1);
}

.programme-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.programme-card-header i {
  color: var(--gold);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.programme-card-header h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.programme-resume {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.programme-detail {
  color: #5a6a7e;
  font-size: 0.9rem;
  line-height: 1.7;
}

.programme-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.publications-section {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.publications-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  color: inherit;
}

.publication-card:hover {
  background: var(--glacier);
  box-shadow: 0 4px 15px rgba(27, 47, 85, 0.08);
  transform: translateY(-2px);
}

.publication-icon {
  background: var(--navy);
  color: var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.publication-icon i {
  width: 24px;
  height: 24px;
}

.publication-info {
  flex: 1;
}

.publication-info h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.publication-info p {
  color: #5a6a7e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.publication-date {
  font-size: 0.8rem;
  color: #8a9ab0;
  margin-top: 0.3rem;
  display: inline-block;
}

.publication-download {
  color: var(--navy);
  flex-shrink: 0;
  transition: color 0.2s;
}

.publication-card:hover .publication-download {
  color: var(--gold);
}

.publication-download i {
  width: 22px;
  height: 22px;
}

/* ============================================================
   RESEAUX SOCIAUX
   ============================================================ */
.reseaux {
  background: var(--glacier);
  padding: 5rem 1.5rem;
  text-align: center;
}

.reseaux-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.reseau-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.reseau-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.reseau-btn i {
  width: 20px;
  height: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--glacier);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--glacier);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.site-footer p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================================
   PAGE BANNER (Candidats, Profil)
   ============================================================ */
.page-banner {
  background: var(--navy);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.page-banner p {
  color: var(--glacier);
  font-size: 1.1rem;
}

/* ============================================================
   CANDIDATS GRID
   ============================================================ */
.candidats-section {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.candidats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .candidats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .candidats-grid { grid-template-columns: repeat(3, 1fr); }
}

.candidat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: inherit;
}

.candidat-card:hover {
  background: var(--glacier);
  box-shadow: 0 4px 15px rgba(27, 47, 85, 0.08);
}

.candidat-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.candidat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.candidat-prenom {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.candidat-nom {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.candidat-detail {
  font-size: 1.15rem;
  color: #6b7a8d;
  margin-top: 0.15rem;
}

.compagnie-AF,
.profil-detail.compagnie-AF,
.candidat-detail.compagnie-AF {
  color: var(--af-blue);
  font-weight: 600;
}

.compagnie-TO,
.profil-detail.compagnie-TO,
.candidat-detail.compagnie-TO {
  color: var(--to-green);
  font-weight: 600;
}

.btn-profil {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-profil:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.35);
}

/* ============================================================
   PROFIL PAGE
   ============================================================ */
.profil-section {
  background: var(--glacier);
  min-height: 60vh;
  padding: 3rem 1.5rem 4rem;
}

.profil-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .profil-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Sidebar */
.profil-sidebar {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(27, 47, 85, 0.08);
}

.profil-sidebar img {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  border: 4px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 1rem;
}

.profil-sidebar h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.profil-prenom {
  font-weight: 400;
}

.profil-nom {
  font-weight: 700;
  text-transform: uppercase;
}

.profil-detail {
  font-size: 0.9rem;
  color: #6b7a8d;
  margin-top: 0.2rem;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  margin-bottom: 0.8rem;
}

.btn-email:hover {
  background: var(--navy-mid);
}

.btn-email i {
  width: 18px;
  height: 18px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-back:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-back i {
  width: 18px;
  height: 18px;
}

/* Main content */
.profil-main {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(27, 47, 85, 0.08);
}

.profil-main h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.profil-main .presentation {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a4a5e;
  margin-bottom: 2rem;
  text-align: justify;
}

.profil-main h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.engagements-list {
  margin-bottom: 2rem;
}

.engagements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #3a4a5e;
}

.engagements-list li i {
  color: var(--green);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.profil-quote {
  border-left: 4px solid var(--gold);
  background: var(--glacier);
  padding: 1.2rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.7;
}

/* Erreur profil introuvable */
.profil-error {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(27, 47, 85, 0.08);
}

.profil-error h2 {
  color: var(--red);
  margin-bottom: 1rem;
}

.profil-error a {
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
