/* Header Styles - Rouge et Vert */

.site-header {
  background: white;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #22c55e;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

/* Brand/Logo Section */
.brand {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.5) rotate(-2deg);
}

.logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.3));
  transition: filter 0.3s ease;
}

.brand:hover .logo {
  filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.8));
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: #22c55e;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid transparent;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-nav a:hover {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.main-nav a:hover::before {
  width: 80%;
}

.main-nav a:active {
  transform: translateY(0);
}

/* Auth Section */
.auth {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.auth span {
  color: #22c55e;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 20px;
  border: 2px solid #22c55e;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Default Button (Déconnexion, Connexion, Admin) */
.btn:not(.primary) {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.btn:not(.primary):hover {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* Primary Button (Inscription) */
.btn.primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border-color: #dc2626;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  border-color: #b91c1c;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(34, 197, 94, 0.3);
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .main-nav a {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .auth {
    width: 100%;
    justify-content: center;
  }

  .auth span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .logo {
    height: 40px;
  }

  .header-inner {
    padding: 0.5rem;
    gap: 1rem;
  }
}

/* Animation on page load */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-header {
  animation: slideDown 0.5s ease-out;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Carousel  */

/* Carousel Container */
.carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
  border: 3px solid #22c55e;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Images Setup */
.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: carouselSlide 15s infinite;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

/* Animation delays for each slide */
.carousel img:nth-child(1) {
  animation-delay: 0s;
  z-index: 3;
}

.carousel img:nth-child(2) {
  animation-delay: 5s;
  z-index: 2;
}

.carousel img:nth-child(3) {
  animation-delay: 10s;
  z-index: 1;
}

/* Keyframe Animation - Défilement avec effet */
@keyframes carouselSlide {
  0% {
    opacity: 0;
    transform: scale(1.1) translateX(100%);
  }
  6.66% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  33.33% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  40% {
    opacity: 0;
    transform: scale(0.9) translateX(-100%);
  }
  100% {
    opacity: 0;
    transform: scale(1.1) translateX(100%);
  }
}

/* Overlay avec dégradé animé */
.carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(220, 38, 38, 0.3) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.3) 100%
  );
  z-index: 4;
  pointer-events: none;
  animation: overlayShift 8s ease-in-out infinite;
}

@keyframes overlayShift {
  0%,
  100% {
    background: linear-gradient(
      45deg,
      rgba(220, 38, 38, 0.3) 0%,
      transparent 50%,
      rgba(34, 197, 94, 0.3) 100%
    );
  }
  50% {
    background: linear-gradient(
      45deg,
      rgba(34, 197, 94, 0.3) 0%,
      transparent 50%,
      rgba(220, 38, 38, 0.3) 100%
    );
  }
}

/* Bordure animée */
.carousel::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #dc2626, #22c55e, #dc2626, #22c55e);
  background-size: 400% 400%;
  border-radius: 15px;
  z-index: -1;
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
    filter: blur(8px);
  }
  50% {
    background-position: 100% 50%;
    filter: blur(12px);
  }
}

/* Indicateurs de progression */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.carousel-indicator {
  width: 60px;
  height: 5px;
  background: rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid #22c55e;
}

.carousel-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #dc2626, #22c55e);
  animation: indicatorProgress 5s linear infinite;
}

.carousel-indicator:nth-child(1)::before {
  animation-delay: 0s;
}

.carousel-indicator:nth-child(2)::before {
  animation-delay: 5s;
}

.carousel-indicator:nth-child(3)::before {
  animation-delay: 10s;
}

@keyframes indicatorProgress {
  0%,
  33.33% {
    width: 0;
  }
  33.33%,
  66.66% {
    width: 100%;
  }
  66.66%,
  100% {
    width: 0;
  }
}

/* Effets de coins animés */
.carousel-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 5;
  pointer-events: none;
}

.carousel-corner::before,
.carousel-corner::after {
  content: '';
  position: absolute;
  background: #22c55e;
  animation: cornerPulse 2s ease-in-out infinite;
}

.carousel-corner.top-left {
  top: 10px;
  left: 10px;
}

.carousel-corner.top-left::before {
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.carousel-corner.top-left::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.carousel-corner.top-right {
  top: 10px;
  right: 10px;
}

.carousel-corner.top-right::before {
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
}

.carousel-corner.top-right::after {
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
}

.carousel-corner.bottom-left {
  bottom: 10px;
  left: 10px;
}

.carousel-corner.bottom-left::before {
  bottom: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.carousel-corner.bottom-left::after {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.carousel-corner.bottom-right {
  bottom: 10px;
  right: 10px;
}

.carousel-corner.bottom-right::before {
  bottom: 0;
  right: 0;
  width: 3px;
  height: 100%;
}

.carousel-corner.bottom-right::after {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
}

@keyframes cornerPulse {
  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 10px #22c55e;
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 20px #22c55e,
      0 0 30px #dc2626;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }

  .carousel-indicator {
    width: 30px;
    height: 3px;
  }

  .carousel-corner {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 200px;
    border-radius: 8px;
  }

  .carousel-indicators {
    bottom: 10px;
    gap: 8px;
  }

  .carousel-indicator {
    width: 25px;
    height: 3px;
  }
}

/* Global: center the menu toggle for all headers on medium/smaller screens */
@media (max-width: 1024px) {
  /* ensure header inner centers the toggle */
  .header-inner {
    justify-content: center !important;
  }
  /* show and center the toggle itself (covers #adminMenuToggle too) */
  .menu-toggle,
  #adminMenuToggle {
    display: flex !important;
    margin: 0 auto !important;
  }
}

/* Stronger centering fallback: absolutely center the toggle inside .site-header when other rules override centering */
@media (max-width: 1024px) {
  .site-header {
    position: relative;
  }
  .menu-toggle,
  #adminMenuToggle {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2000 !important;
  }
}

/* Effet hover - pause animation */
.carousel:hover img {
  animation-play-state: paused;
}

.carousel:hover::before {
  animation-play-state: paused;
}

/* apres le carousel du index.php*/

.media-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: black;
}

.side-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 120px;
}

.side-images img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.video-container {
  flex: 2;
  min-width: 250px;
  max-width: 600px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain; /* Evite le rognage */
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .media-section {
    flex-direction: column;
  }

  .side-images {
    flex-direction: row;
    justify-content: center;
  }

  .side-images img {
    max-width: 48%;
  }
}

/* animation de Groupe sup'formation  */

.GSF {
  text-align: center;
  margin-top: 40px;
}

.GSF h1 {
  font-size: 2.8rem;
  color: #0f172a;
  font-weight: 800;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation:
    fadeUpZoom 1.4s ease-out forwards,
    pulse 3.5s ease-in-out infinite 2s;
}

/* Apparition fluide vers le haut + zoom */
@keyframes fadeUpZoom {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Respiration douce en boucle */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 8px rgba(15, 23, 42, 0.1);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 18px rgba(15, 23, 42, 0.25);
  }
}

/* présentation pour la section de groupe sup'formation  */

.services-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.section-title {
  font-size: 2.4rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 10px;
  animation: fadeDown 1.2s ease forwards;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 50px;
  animation: fadeUp 1.4s ease forwards;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-items: center;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px 25px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  animation: fadeIn 1.2s ease forwards;
  max-width: 340px;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: floatIcon 3s ease-in-out infinite;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.service-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Bouton d'inscription */
.cta-container {
  margin-top: 60px;
}

.btn-register {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 1.1rem;
  padding: 14px 34px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.4s ease,
    transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-register:hover {
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  transform: translateY(-4px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .service-card .icon {
    font-size: 2rem;
  }

  .btn-register {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .services-grid {
    gap: 15px;
  }

  .service-card {
    padding: 15px 12px;
  }
}

/* enseignement. php premiere div  */

/* Section Enseignement Supérieur */
.enseignement-section {
  background: linear-gradient(135deg, #f7f8fc, #eef2f3);
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.enseignement-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Texte */
.enseignement-text {
  flex: 1 1 450px;
  animation: slideInLeft 1.2s ease-in-out forwards;
}

.enseignement-text h2 {
  font-size: 2.3rem;
  color: #1e3a8a;
  margin-bottom: 20px;
  position: relative;
}

.enseignement-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
}

.enseignement-text p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.enseignement-text ul {
  list-style: none;
  padding: 0;
}

.enseignement-text ul li {
  background: #e0ebff;
  color: #1e40af;
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.enseignement-text ul li:hover {
  transform: translateX(8px);
  background: #d6e4ff;
}

/* Bouton */
.btn-inscription {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.4s,
    transform 0.3s ease;
}

.btn-inscription:hover {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transform: scale(1.05);
}

/* Illustration */
.enseignement-illustration {
  flex: 1 1 350px;
  position: relative;
  animation: slideInRight 1.2s ease-in-out forwards;
}

.enseignement-illustration img {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

.light-glow {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .enseignement-section {
    padding: 30px 5%;
  }

  .enseignement-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .enseignement-text h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .enseignement-text p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .enseignement-text ul li {
    text-align: left;
    font-size: 0.85rem;
    padding: 6px 10px;
    margin: 5px 0;
  }

  .btn-inscription {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin-top: 15px;
  }

  .enseignement-illustration img {
    max-width: 80%;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .enseignement-section {
    padding: 20px 4%;
  }

  .enseignement-text h2 {
    font-size: 1.3rem;
  }

  .enseignement-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .enseignement-text ul li {
    font-size: 0.8rem;
    padding: 5px 8px;
    margin: 4px 0;
  }

  .enseignement-illustration img {
    max-width: 100%;
    max-height: 180px;
  }
}

/* placement.php  */

/* Section Placement */
.placement-section {
  background: linear-gradient(135deg, #f9fafc, #eef3f9);
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.placement-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
  animation: fadeInUp 1.3s ease-out forwards;
}

/* Texte */
.placement-text {
  flex: 1 1 450px;
  animation: slideInRight 1.3s ease-in-out forwards;
}

.placement-text h2 {
  font-size: 2.3rem;
  color: #0c4a6e;
  margin-bottom: 20px;
  position: relative;
}

.placement-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 70px;
  height: 4px;
  background: #0284c7;
  border-radius: 2px;
}

.placement-text p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.placement-text ul {
  list-style: none;
  padding: 0;
}

.placement-text ul li {
  background: #e0f2fe;
  color: #075985;
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.placement-text ul li:hover {
  transform: translateX(8px);
  background: #bae6fd;
}

/* Bouton */
.btn-placement {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.4s,
    transform 0.3s ease;
}

.btn-placement:hover {
  background: linear-gradient(90deg, #0284c7, #2563eb);
  transform: scale(1.05);
}

/* Illustration */
.placement-illustration {
  flex: 1 1 350px;
  position: relative;
  animation: slideInLeft 1.3s ease-in-out forwards;
}

.placement-illustration img {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

.pulse-glow {
  position: absolute;
  top: 25%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .placement-section {
    padding: 30px 5%;
  }

  .placement-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .placement-text h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .placement-text p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .placement-text ul li {
    text-align: left;
    font-size: 0.85rem;
    padding: 6px 10px;
    margin: 5px 0;
  }

  .btn-placement {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin-top: 15px;
  }

  .placement-illustration img {
    max-width: 80%;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .placement-section {
    padding: 20px 4%;
  }

  .placement-text h2 {
    font-size: 1.3rem;
  }

  .placement-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .placement-text ul li {
    font-size: 0.8rem;
    padding: 5px 8px;
    margin: 4px 0;
  }

  .placement-illustration img {
    max-width: 100%;
    max-height: 180px;
  }
}

/* fdfp.php  */

/* Section FDFP */
.fdfp-section {
  background: linear-gradient(120deg, #f0f9ff, #e0f2fe);
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.fdfp-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  flex-wrap: wrap;
  animation: fadeInUp 1.3s ease-out forwards;
}

/* Texte */
.fdfp-text {
  flex: 1 1 450px;
  animation: slideInRight 1.3s ease-in-out forwards;
}

.fdfp-text h2 {
  font-size: 2.4rem;
  color: #0f172a;
  margin-bottom: 20px;
  position: relative;
}

.fdfp-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: #0ea5e9;
  border-radius: 2px;
}

.fdfp-text p {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 25px;
}

.fdfp-text ul {
  list-style: none;
  padding: 0;
}

.fdfp-text ul li {
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.fdfp-text ul li:hover {
  transform: translateX(8px);
  background: #bae6fd;
}

/* Bouton */
.btn-fdfp {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.4s,
    transform 0.3s ease;
}

.btn-fdfp:hover {
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  transform: scale(1.05);
}

/* Illustration */
.fdfp-illustration {
  flex: 1 1 350px;
  position: relative;
  animation: slideInLeft 1.3s ease-in-out forwards;
}

.fdfp-illustration img {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

.fdfp-glow {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .fdfp-section {
    padding: 30px 5%;
  }

  .fdfp-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .fdfp-text h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .fdfp-text p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .fdfp-text ul li {
    text-align: left;
    font-size: 0.85rem;
    padding: 6px 10px;
    margin: 5px 0;
  }

  .btn-fdfp {
    padding: 8px 20px;
    font-size: 0.85rem;
    margin-top: 15px;
  }

  .fdfp-illustration img {
    max-width: 80%;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .fdfp-section {
    padding: 20px 4%;
  }

  .fdfp-text h2 {
    font-size: 1.3rem;
  }

  .fdfp-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .fdfp-text ul li {
    font-size: 0.8rem;
    padding: 5px 8px;
    margin: 4px 0;
  }

  .fdfp-illustration img {
    max-width: 100%;
    max-height: 180px;
  }

  .fdfp-glow,
  .placement-glow,
  .light-glow {
    display: none; /* Désactive les effets de lueur sur mobile pour améliorer les performances */
  }
}

/* Publications: centered media, responsive title and content */
.publication {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  text-align: center;
}
.publication h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  color: #0f172a;
  font-weight: 800;
}
.publication p {
  color: #334155;
  line-height: 1.6;
  margin: 0.5rem 0;
}
.publication img,
.publication video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.8rem auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}
.publication .pub-controls {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.publication .pub-controls form {
  display: inline-block;
}
.publication .pub-controls a,
.publication .pub-controls button {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}
.publication .pub-controls a.edit {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
}
.publication .pub-controls button.delete {
  background: #ef4444;
  color: #fff;
  border: none;
}

@media (max-width: 640px) {
  .publication {
    padding: 1rem;
    margin: 1rem;
  }
  .publication h4 {
    font-size: 1.25rem;
  }
}

/* Formulaire inscription - inputs plus compacts */
.register-form input,
.register-form select,
.register-form textarea {
  max-width: 360px; /* largeur maximale réduite */
  width: 100%; /* responsive sur petits écrans */
  padding: 8px 10px; /* padding interne plus compact */
  font-size: 0.92rem; /* texte légèrement plus petit */
  box-sizing: border-box;
  margin-bottom: 12px; /* espacement vertical */
  border-radius: 6px; /* coins légèrement arrondis */
  border: 1px solid #ccc;
}

/* Bouton submit ajusté */
.register-form button {
  max-width: 200px;
  padding: 8px 14px;
  font-size: 0.95rem;
  border-radius: 6px;
}
