:root {
  --primary: #0f2a44;
  --secondary: #1e90ff;
  --background: #ffffff;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

/* Section */
#actualites {
  font-family: Arial, Helvetica, sans-serif;
  margin: 40px 0;
}


/* Header */
.actualites-header {
  display: flex;
  justify-content: space-between;   
  align-items: center;
  margin-bottom: 24px; 
  margin-top: 50px;    
}

.actualites-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.title-bar {
  width: 8px;
  height: 32px;
  background: var(--primary);
  border-radius: 4px;
}

/* Pour la barre sous "À la Une" */
.actualites-header h2 {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.actualites-header h2 .w-2 {
  display: inline-block;
  width: 8px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 9999px;
  margin-right: 12px;
}

.voir-tout {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.voir-tout:hover {
  text-decoration: underline;
}

/* Card */
.actualites-card {
  display: grid;
  grid-template-columns: 7fr 5fr;
  background: var(--background);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Image */
.image-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.actualites-card:hover img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Content */
.card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 28px;
}

.card-title a {
  color: var(--primary);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--secondary);
}

.card-body {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Actions */
.actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .actualites-card {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 24px;
  }
}



/* Style du titre de la section des actualités */
.actualites-section-header {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.actualites-section-header span.material-icons-outlined {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Grid layout pour les cartes des actualités */
.actualites-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Style des cartes des actualités */
.actualites-section-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
  transition: box-shadow 0.3s ease-in-out;
  position: relative;
}

.actualites-section-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Image de la carte */
.actualites-section-card .image-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.actualites-section-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actualites-section-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #FF6B35;
  color: white;
  font-size: 0.625rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* Contenu de la carte */
.actualites-section-card .card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 300px;
  overflow: hidden;
}

.actualites-section-card .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  flex-shrink: 0;
}

/* TITRE LIMITÉ À 2 LIGNES AVEC ... */
.actualites-section-card .card-title {
  font-size: 1.0rem;
  font-weight: bold;
  color: var(--primary);
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.actualites-section-card .card-title a {
  text-decoration: none;
  color: inherit;
}

/* DESCRIPTION LIMITÉE À 2 LIGNES AVEC ... - FORCE BRUTALE */
.actualites-section-card .card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  height: 2.7em;
  flex-shrink: 0;
}

/* Forcer tous les enfants du card-body à respecter la limite */
.actualites-section-card .card-body * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

.actualites-section-card .card-body p,
.actualites-section-card .card-body div,
.actualites-section-card .card-body span {
  display: inline !important;
}

/* BOUTON "LIRE PLUS" EN BAS */
.actualites-section-card .read-more {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.actualites-section-card .read-more:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.actualites-section-card .read-more span.material-icons-outlined {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .actualites-section-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .actualites-section-card {
    width: 100%;
  }
}







/* Section gallery */
.media-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.media-section-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.media-section-indicator {
  width: 0.5rem;
  height: 2rem;
  background-color: var(--secondary);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.media-navigation-buttons {
  display: flex;
  gap: 0.5rem;
}

.media-nav-button {
  border: 1px solid var(--fga-grey);
  background-color: transparent;
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fga-slate);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.media-nav-button:hover {
  background-color: var(--fga-white);
  color: var(--primary);
}

/* Grid container for gallery */
.media-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem; /* Espace entre les items de la galerie */
  padding: 1rem;
}

/* Grid item */
.media-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for subtle depth */
  transition: transform 0.3s ease;
}

/* Hover effect */
.media-grid-item:hover {
  transform: translateY(-10px); /* Un léger effet de translation pour attirer l'attention */
}

/* Image wrapper */
.media-image-wrapper {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;
}

.media-grid-item:hover .media-image-wrapper {
  transform: scale(1.05); /* Légère mise en valeur de l'image au survol */
}

/* Overlay on hover */
.media-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.media-grid-item:hover .media-image-overlay {
  opacity: 1;
}

/* Info section of each item */
.media-item-info {
  padding: 1rem;
  background-color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid #e0e0e0; /* Légère séparation entre l'image et le texte */
}

.media-grid-item:hover .media-item-info {
  transform: translateY(0); /* Montre le texte au survol */
}

.media-item-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-grid-item:hover .media-item-title {
  opacity: 1; /* Affiche le titre au survol */
}

.media-item-accent {
  height: 2px;
  background-color: var(--primary);
  margin-top: 0.5rem;
}



/* CONTENEUR FLEX PRINCIPAL */
.layout-404 {
  min-height: 100vh;        /* hauteur écran */
  display: flex;
  flex-direction: column;
}

/* LE CONTENU POUSSE LE FOOTER */
.layout-404-content {
  flex: 1;                  /* clé magique */
  display: flex;
  align-items: center;      /* centre verticalement */
}

/* Contenu 404 */
.page-404 {
  width: 100%;
}

.page-404 .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



/* CONTENEUR FLEX PRINCIPAL */
.layout-403 {
  min-height: 100vh;        /* prend toute la hauteur de l'écran */
  display: flex;
  flex-direction: column;
}

/* LE CONTENU POUSSE LE FOOTER */
.layout-403-content {
  flex: 1;                  /* clé pour pousser le footer en bas */
  display: flex;
  align-items: center;      /* centre verticalement le contenu */
}

/* Contenu de la page */
.page-403 {
  width: 100%;
}

.page-403 .content {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centre verticalement */
  align-items: center;      /* centre horizontalement */
  text-align: center;
}
 

/* TITRE */
.article-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #4E6896; /* couleur spécifique demandée */
  animation: fadeIn 1s ease-in-out;
}

/* WRAPPER pour l'image + texte */
.article-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre horizontalement */
  width: fit-content;  /* la largeur correspond à l'image la plus large */
  margin: 0 auto;
}

/* IMAGE - taille réelle, bord arrondi */
.article-image-card img,
.article-image-secondary-card img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

/* BODY - largeur = 90% de la card image, texte justifié */
.article-text-card {
  width: 80%; /* 90% de la largeur du wrapper */
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  margin-top: 20px;
}

/* ANIMATIONS */
.animated {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}

.fade-in {
  animation-name: fadeIn;
}

.slide-up {
  animation-name: slideUp;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* TITRE */
.album-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #4E6896;
  animation: fadeIn 1s ease-in-out;
}

/* IMAGE DE COUVERTURE */
.album-cover img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* TEXTE BODY */
.album-body-text {
  max-width: 90%;     /* 90% de la largeur de la couverture */
  margin: 0 auto 40px auto;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* GALERIE EN CASCADE */
.album-gallery-cascade {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  perspective: 1000px;
}

.album-gallery-cascade .gallery-item {
  width: 200px; /* largeur des miniatures */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transform: rotate(-5deg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.album-gallery-cascade .gallery-item:nth-child(even) {
  transform: rotate(5deg);
}

.album-gallery-cascade .gallery-item:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* ANIMATIONS */
.animated {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-duration: 0.8s;
  animation-delay: 0.2s;
}

.fade-in {
  animation-name: fadeIn;
}

.slide-up {
  animation-name: slideUp;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

.album-gallery-cascade {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  perspective: 1000px;
  margin-bottom: 20px;
}

.album-gallery-cascade img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transform: rotate(-5deg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.album-gallery-cascade img:nth-child(even) {
  transform: rotate(5deg);
}

.album-gallery-cascade img:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}


/* OVERLAY LIGHTBOX */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ACTIVE */
.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* IMAGE EN GRAND */
.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  animation: zoomIn 0.3s ease;
}

.image-lightbox::after {
  content: "✕";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}


/* ANIMATION */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* CURSEUR */
.album-gallery-cascade img {
  cursor: zoom-in;
}


/* BOUTONS NAVIGATION */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px 15px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(0,0,0,0.6);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* MOBILE */
@media (max-width: 768px) {
  .lightbox-nav {
    font-size: 30px;
    padding: 8px 12px;
  }
}


/* =========================
   BLOG CARD – STRUCTURE 
========================= */

.blog-card {
  background: #F7F9F7;
  border: 1px solid #C4CDD4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  margin-bottom: 24px;
}

.blog-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.blog-card__inner {
  display: flex;
  height: 176px; /* ← HAUTEUR FIXE GARANTIE */
}

/* =========================
   IMAGE À GAUCHE
========================= */

.blog-card__media {
  width: 176px;
  height: 100%;
  flex-shrink: 0;
  background: #C4CDD4;
  position: relative;
  overflow: hidden;
}

.blog-card__media-inner {
  position: absolute;
  inset: 0;
}

.blog-card__media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   CONTENU À DROITE
========================= */

.blog-card__content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.blog-card__title {
  font-size: 10px;
  font-weight: 400;
  color: #4E6896;
  margin-bottom: 8px;
  line-height: 1;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  text-decoration: underline;
}

.blog-card__excerpt {
  font-size: 14px;
  color: #7B8CA0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   LIEN galerie
========================= */

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: #557196;
  text-decoration: none;
}

.blog-card__link:hover {
  color: #4E6896;
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .blog-card__inner {
    height: auto;
    flex-direction: column;
  }

  .blog-card__media {
    width: 100%;
    height: 180px;
  }
}





#galerie {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.galerie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.galerie-header h2 {
  color: #4E6896;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.galerie-header h2 span {
  width: 8px;
  height: 32px;
  background-color: #4E6896;
  border-radius: 4px;
}

.galerie-controls {
  display: flex;
  gap: 8px;
}

.galerie-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #D1D5DB;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.galerie-controls button:hover {
  background-color: white;
  color: #4E6896;
  box-shadow: 0 2px 8px rgba(78, 104, 150, 0.15);
}

/* GRID CORRIGÉ : fonctionne même sans JS */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  height: auto;
}

/* Pattern : 4 petites + 1 grande (span 2x2) */
.galerie-item:nth-child(5n+1),
.galerie-item:nth-child(5n+2),
.galerie-item:nth-child(5n+3),
.galerie-item:nth-child(5n+4) {
  grid-row: span 1;
}

.galerie-item:nth-child(5n) {
  grid-column: span 2;
  grid-row: span 2;
}

.galerie-item {
  position: relative !important;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #F9FAFB;
  transition: all 0.3s ease;
  height: 100%;
}

.galerie-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(78, 104, 150, 0.2);
}

.galerie-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease;
}

.galerie-item:hover img {
  transform: scale(1.08);
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(78, 104, 150, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galerie-item:hover .galerie-overlay {
  opacity: 1;
}

.galerie-overlay span {
  color: white;
  font-size: 3rem;
}

.galerie-caption {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: end;
  padding: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.galerie-item:hover .galerie-caption {
  background: rgba(78, 104, 150, 0.6);
  opacity: 1;
}

.galerie-caption p {
  color: white;
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
}

.galerie-play {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galerie-item:nth-child(5n) .galerie-play {
  opacity: 1;
}

.galerie-play span {
  color: #4E6896;
  font-size: 1.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .galerie-grid {
    grid-template-columns: 1fr;
  }
  .galerie-item {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
  }
}
.galerie-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.galerie-link:hover {
  text-decoration: none;
}

/* ==========================================================================
   VARIABLES FGA
   ========================================================================== */
:root {
  --primary: #4E6896;
  --primary-dark: #3B5578;
  --grey: #6B7280;
  --light-grey: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.header-main {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) { .header-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .header-container { padding-left: 2rem; padding-right: 2rem; } }

.header-content {
  border-bottom: 1px solid #E5E7EB;
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.header-inner {
  height: 5rem;
}

@media (min-width: 768px) { .header-inner { height: 6rem; } }

/* ==========================================================================
   LOGO PLUS GRAND
   ========================================================================== */
.logo-hamburger {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 3.5rem; /* PLUS GRAND */
  width: auto;
  max-height: 4rem;
  max-width: 12rem; /* PLUS LARGE */
}

@media (min-width: 640px) { .logo-img { height: 4rem; } }
@media (min-width: 768px) { .logo-img { height: 4.5rem; } }
@media (min-width: 1024px) { .logo-img { height: 5rem; } }

/* ==========================================================================
   HAMBURGER MOBILE UNIQUEMENT
   ========================================================================== */
#mobile-menu-toggle {
  display: none;
}

.mobile-hamburger-btn {
  display: none; /* Caché par défaut (desktop) */
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--light-grey);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.mobile-hamburger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light-grey);
}

/* ==========================================================================
   MENU MOBILE EN LONGUEUR - UNIQUEMENT MOBILE
   ========================================================================== */
.mobile-menu-dropdown {
  /* Caché par défaut partout */
  display: none;
  position: fixed;
  top: 6.5rem;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 40;
  overflow: hidden;
}

/* UNIQUEMENT en mobile ET ouvert */
@media (max-width: 1023px) {
  #mobile-menu-toggle:checked ~ .mobile-menu-dropdown {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .mobile-hamburger-btn {
    display: flex; /* Visible en mobile */
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav {
  padding: 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.mobile-nav-link {
  display: block;
  padding: 1.25rem 1.5rem;
  color: var(--grey);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background: var(--light-grey);
  border-color: rgba(78,104,150,0.2);
}

.mobile-nav-link.primary {
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  text-align: center;
  margin-top: 1.5rem;
  border-color: transparent;
}

.mobile-nav-link.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile Dropdowns */
.mobile-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}

.mobile-dropdown[open] .mobile-nav-link {
  background: var(--light-grey);
  color: var(--primary);
}

.mobile-submenu {
  padding-left: 2.25rem;
  margin-top: 1rem;
}

.mobile-submenu-item {
  display: block;
  padding: 1rem 1.25rem;
  color: #9CA3AF;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  font-weight: 400;
}

.mobile-submenu-item:hover {
  color: var(--primary);
  background: rgba(78,104,150,0.08);
}

/* ==========================================================================
   DESKTOP MENU - UNIQUEMENT DESKTOP
   ========================================================================== */
.desktop-menu {
  display: none; /* Caché mobile */
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .desktop-menu { 
    display: flex; 
  }
}

/* Nav links desktop */
.nav-link,
.nav-button {
  color: var(--grey);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-button:hover {
  color: var(--primary);
}

.nav-dropdown { position: relative; }

.group-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  margin-top: 0.5rem;
  z-index: 100;
}

.nav-dropdown:hover .group-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.group-menu.wide {
  min-width: 300px;
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--grey);
  text-decoration: none;
  font-size: 0.925rem;
  border-bottom: 1px solid var(--light-grey);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--light-grey);
  color: var(--primary);
  padding-left: 1.5rem;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-icon {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   RIGHT ACTIONS
   ========================================================================== */
.right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--light-grey);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.375rem;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light-grey);
}

.icon-btn-link { display: contents; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
}

.contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 639px) {
  .right-actions { gap: 0.75rem; }
  .contact-btn { 
    padding: 0.625rem 1.25rem; 
    font-size: 0.85rem; 
  }
}

@media (min-width: 1024px) {
  .right-actions { gap: 1.25rem; }
}

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */
#mobile-menu-toggle:focus + .header-container .mobile-hamburger-btn,
.mobile-nav-link:focus,
.dropdown-item:focus,
.mobile-submenu-item:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
