/* ============================================================
   AMBIOS — IDENTITÉ GRAPHIQUE OFFICIELLE
   Version optimisée pour le site reconstruit (2026)
   Auteur : AMBIOS / MABB
============================================================ */

/* --------------------------
   VARIABLES
-------------------------- */
:root {
  --green-main: #009688;
  --green-dark: #00695C;
  --blue-main: #004D80;
  --blue-light: #2b7cff;
  --dark: #0d1b2a;
  --accent: #4cc9f0;

  --gray-light: #F5F7FA;
  --gray-text: #444;

  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --------------------------
   BASE
-------------------------- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--gray-text);
  background: #ffffff;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-main);
  color: #fff;
  padding: 10px 20px;
  z-index: 2000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------
   HEADER
-------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 48px;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-main);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--blue-main);
  font-weight: 600;
}

nav a:hover {
  color: var(--green-main);
}

/* --------------------------
   HERO + SLIDER
-------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(65%);
}

.slide-text {
  position: absolute;
  left: 8%;
  bottom: 15%;
  color: white;
  max-width: 600px;
}

.slide-text h1, .slide-text h2 {
  font-family: 'Poppins', sans-serif;
}

.slide-text h1 {
  font-size: 42px;
}

/* Navigation slider */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slider-dots .dot.active {
  background: var(--green-main);
}

/* --------------------------
   BOUTONS
-------------------------- */
.btn-primary,
.btn-form,
.btn-admin {
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary { background: var(--green-main); }
.btn-form { background: var(--blue-light); }
.btn-admin { background: var(--blue-main); }

.btn-primary:hover {
  background: var(--green-dark);
}

/* --------------------------
   SECTIONS
-------------------------- */
section {
  padding: 80px 40px;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  color: var(--blue-main);
}

/* --------------------------
   GRID
-------------------------- */
.grid-2 { display: grid; gap: 30px; grid-template-columns: repeat(2,1fr); }
.grid-3 { display: grid; gap: 30px; grid-template-columns: repeat(3,1fr); }

/* --------------------------
   CARDS
-------------------------- */
article {
  background: var(--gray-light);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------
   CONTACT
-------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--blue-light);
  outline: none;
}

/* --------------------------
   FOOTER
-------------------------- */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 50px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px;
}

.footer a {
  color: #e0e0e0;
}

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

.footer-admin {
  text-align: center;
  margin-top: 20px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.8;
}

/* --------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  nav ul {
    display: none;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .slide img {
    height: 300px;
  }

  .slide-text {
    max-width: 90%;
    font-size: 0.9rem;
  }
}

/* --------------------------
   MENU MOBILE
-------------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  gap: 6px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--blue-main);
  border-radius: 3px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }

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

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  nav li {
    text-align: center;
  }

  nav a {
    display: block;
    padding: 10px;
    font-size: 18px;
  }
}
/* ============================================================
   TABLEAU PREMIUM – BUREAU EXECUTIF AMBIOS
   Version modernisée 2026
============================================================ */

.table-container {
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 0;
}

/* TABLE */
.bureau-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 900px;
}

/* HEADER */
.bureau-table thead {
  background: linear-gradient(90deg, var(--blue-main), var(--green-main));
  color: #fff;
}

.bureau-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  white-space: nowrap;
}

/* LIGNES */
.bureau-table tbody tr {
  transition: background 0.25s ease;
}

.bureau-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.bureau-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

/* HOVER */
.bureau-table tbody tr:hover {
  background: rgba(0, 150, 136, 0.08);
}

/* CELLULES */
.bureau-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

/* MISE EN VALEUR DES POSTES */
.bureau-table td:nth-child(3) {
  font-weight: 600;
  color: var(--blue-main);
}

.bureau-table td:nth-child(4) {
  font-style: italic;
  color: #555;
}

/* CONTACT */
.bureau-table td:last-child {
  font-size: 14px;
  color: var(--green-dark);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .bureau-table {
    font-size: 14px;
  }

  .bureau-table th,
  .bureau-table td {
    padding: 10px 8px;
  }
}
/* GLOBAL */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #0a4f7a, #00a3c7);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
}

/* MAIN */
.programme-page {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* SECTIONS */
.programme-page section {
  background: white;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.programme-page h2 {
  color: #0a4f7a;
  margin-bottom: 15px;
}

/* GRID MODULES */
.programme-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

/* CARDS MODULES */
.programme-block article {
  background: #f9fbfc;
  border-left: 4px solid #00a3c7;
  padding: 15px;
  border-radius: 8px;
  transition: 0.3s;
}

.programme-block article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.programme-block h3 {
  font-size: 1rem;
  color: #0a4f7a;
}

.programme-block ul {
  padding-left: 18px;
}

.programme-block li {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

/* LISTES CLASSIQUES */
.programme-page ul {
  padding-left: 20px;
}

/* ORGANISATION */
.organisation {
  background: linear-gradient(135deg, #eef7fb, #ffffff);
  border-left: 5px solid #0a4f7a;
}

.organisation a {
  color: #00a3c7;
  text-decoration: none;
}

.organisation a:hover {
  text-decoration: underline;
}

/* BADGES INFO (durée, public) */
.info-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.info-item {
  background: #0a4f7a;
  color: white;
  padding: 15px;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

/* FOOTER */
footer {
  background: #0a4f7a;
  color: white;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-content h3 {
  margin-bottom: 10px;
}

.footer-content a {
  color: #ddd;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .info-box {
    flex-direction: column;
  }
}