/* --------------------------------------------------------
   style.css - CFEC Louviers (UTF-8)
   Couleur primaire #1E90FF, navbar fond bleu,
   Galerie affichant toutes les images
   -------------------------------------------------------- */

/* Google Font : Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Variables */
:root {
  --primary: #1E90FF; /* Bleu "DodgerBlue" */
  --secondary: #ffa43a;
  --dark: #444444;
  --light: #f8f9fa;
  --white: #ffffff;
  --font-main: 'Poppins', sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background-color: var(--white);
}

/* NAVBAR - Fond bleu soutenu */
.navbar {
  background-color: var(--primary);
  min-height: 80px;
}
.navbar-brand {
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--white) !important;
}
.navbar-brand img {
  height: 50px;
  margin-right: 8px;
}
.nav-link {
  color: var(--white) !important;
  margin: 0 0.5rem;
}
.nav-link:hover {
  color: var(--secondary) !important;
}

/* CAROUSEL */
.carousel-item {
  min-height: 70vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
.carousel-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.carousel-caption h1 {
  color: #fff;
}

/* Bouton principal */
.btn-primary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* FOOTER */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 1.5rem 0;
  margin-top: 2rem;
  text-align: center;
}
.footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 5px;
}
.footer a:hover {
  color: var(--secondary);
}

/* Sections en fond gris clair */
.courses-section, .section-gray {
  background-color: #f8f8f8;
  padding: 3rem 1rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Titres en bleu pour accentuer la couleur primaire */
h2, h3, .section-title {
  color: var(--primary);
}

/* Cards */
.card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.card-img-top {
  object-fit: cover;
  height: 220px;
  width: 100%;
}

/* Galerie */
.gallery-img {
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
