/* style.css */


:root {
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-accent: #0055aa;
  --section-height: 100vh;
}

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

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 1.5rem;
}



header, footer {
  background-color: #f4f4f4;
  padding: 1rem;
  text-align: center;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
}

nav a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
}

nav a:focus,
nav a:hover {
  text-decoration: underline;
  outline: 2px solid var(--color-accent);
}

.section {
  min-height: var(--section-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.section:nth-child(even) {
  background-color: #eef2f5;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}


p {
  max-width: 600px;
  text-align: center;
  font-size: 1.5rem;
}

/* Responsive design*/
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  .section {
    padding: 1.5rem;
  }



  p {
    font-size: 1.5rem;
  }
}

.caroussel_btn {
    font-weight: bold;
    font-size: 1.5rem;
    background-color: #ccc; /* gris clair */
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

/*****************************************/
header {
    background-color: #f4f4f4;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid #ccc;
    position: relative;
}

/* Conteneur de la ligne logo + titre */
.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

/* Logo à gauche */
.logo-link {
    flex-shrink: 0;
}

.logo {
    height: 150px;
    width: auto;
}

/* Titre centré par rapport à toute la page */
.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.8rem;
    color: #111;
    white-space: nowrap;
}

/* Menu */
nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

nav a {
    text-decoration: none;
    color: #0055aa;
    font-weight: bold;
}

    nav a:hover,
    nav a:focus {
        text-decoration: underline;
        outline: 2px solid transparent;
        outline-offset: 2px;
    }

.image-grid-container {
    max-width: 900px;
    margin: 0 auto;
}

.row.g-4 {
    /* Espacement entre colonnes et lignes */
}

.img-cell {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.img-cell img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        height: auto;
    }

    .logo {
        height: 150px;
    }

    .site-title {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

.btn-inscription {
    background-color: #007BFF; /* bleu type hyperlien */
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-inscription:hover {
    background-color: #0056b3; /* bleu plus foncé au survol */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-inscription:active {
    background-color: #00408d;
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-inscription:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}