/* ======================================================
   RESET & VARIABLES
====================================================== */
:root {
  --primary: #0b3c5d;
  --secondary: #1d70b8;
  --accent: #00b4d8;
  --bg-light: #f4f7fb;
  --text-dark: #2b2b2b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 15px 35px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================================================
   BASE
====================================================== */
body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #edf2f8, #f9fbff);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ======================================================
   HEADER — IMAGE DE FOND
====================================================== */
header {
  background: url("../image/IUT.jpg") center / cover no-repeat;
  height: 240px;
  padding: 0 20px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 60, 93, 0.65);
}

header h1,
header p {
  position: relative;
  z-index: 1;
}

/* ======================================================
   NAVIGATION
====================================================== */
.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 3000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 18px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: absolute;
  right: 30px;
  z-index: 5000;
}

.burger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: 0.35s;
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ======================================================
   MENU MOBILE
====================================================== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 4000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.4rem;
  }
}

/* ======================================================
   MAIN & SECTIONS
====================================================== */
main {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

section {
  background: var(--white);
  padding: 40px;
  margin-bottom: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* ======================================================
   HERO
====================================================== */
.hero {
  text-align: center;
}

.hero h2 {
  font-size: 2.2rem;
  line-height: 1.3;
}

.hero p {
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.05rem;
}

/* ======================================================
   TEXTES
====================================================== */
h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 20px;
}

p {
  margin-bottom: 18px;
}

/* ======================================================
   ALERTES
====================================================== */
.alert {
  background: linear-gradient(135deg, #e8f6fb, #f4fbff);
  border-left: 6px solid var(--accent);
  padding: 18px 25px;
  margin: 30px auto;
  border-radius: var(--radius);
  font-weight: 600;
  max-width: 600px;
}

#compteur {
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 800;
}

/* ======================================================
   LISTES
====================================================== */
ul {
  margin-top: 15px;
  padding-left: 0;
}

ul li {
  list-style: none;
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
}

ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ======================================================
   FORMULAIRE
====================================================== */
form {
  max-width: 800px;
  margin: auto;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

input {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #d0d7e2;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0;
}

/* ======================================================
   BOUTON CTA
====================================================== */
.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,180,216,0.35);
  transition: all 0.3s ease;
}

.button:hover,
button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,180,216,0.45);
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  background: linear-gradient(135deg, var(--primary), #06283d);
  color: var(--white);
  text-align: center;
  padding: 35px 20px;
  margin-top: 80px;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ======================================================
   RESPONSIVE GLOBAL
====================================================== */
@media (max-width: 768px) {
  header {
    height: 190px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .row {
    flex-direction: column;
  }

  section {
    padding: 25px;
  }

  .button {
    display: block;
    text-align: center;
  }
}

/* ======================================================
   PROGRAMME — TEXTE INTRO AVANT TABLEAU
====================================================== */
.programme-intro {
  max-width: 850px;
  margin: 0 auto 30px auto;
  padding: 18px 24px;

  background: linear-gradient(135deg, #e8f6fb, #f4fbff);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);

  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);

  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
  .programme-intro {
    font-size: 1rem;
    padding: 16px 20px;
  }
}
