body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #ddd;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #121212;
}

nav {
    background-color: #1f1f1f;
    color: #ddd;
    padding: 1.5em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #ddd;
    margin: 4px 0;
    transition: 0.4s;
}

nav img {
    height: 40px;
}

nav ul {
    z-index: 10;
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

nav ul li {
    margin: 0 1.5em;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #bbb;
}

header {
    background-color: #181818;
    padding: 4em 2em;
    text-align: center;
    border-bottom: 1px solid #333;
}

header h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: #00bcd4;
}

header p {
    font-size: 1.5em;
    color: #aaa;
}

section {
    padding: 3em 2em;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}

section h2 {
    color: #00bcd4;
    margin-bottom: 1em;
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 0.5em;
}

footer {
    background-color: #1f1f1f;
    color: #ddd;
    text-align: center;
    padding: 1.5em 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

footer p {
    margin: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1f1f1f;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }

    nav ul.active {
        opacity: 1;
        pointer-events: auto;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    nav ul li a {
        padding: 1em;
        display: block;
    }

    header {
        padding: 3em 1em;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    section {
        padding: 2em 1em;
    }

    section h2 {
        font-size: 1.5em;
    }
}
/* Style pour la section de contact */
article#contact {
    padding: 3em 2em;
    max-width: 900px;
    margin: 2em auto;
    background-color: #1f1f1f;
    color: #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article#contact h2.major {
    color: #00bcd4;
    margin-bottom: 1em;
    text-align: center;
}

article#contact h3 {
    font-size: 1.2em;
    margin-bottom: 2em;
    text-align: center;
    color: #aaa;
}

/* Style pour le formulaire */
article#contact form {
    display: flex;
    flex-direction: column;
}

.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.field {
    flex: 1 1 100%;
}

.field.half {
    flex: 1 1 48%;
}

.field label {
    display: block;
    margin-bottom: 0.5em;
    color: #ddd;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.7em;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #333;
    color: #ddd;
    margin-bottom: 1em;
}

.field textarea {
    resize: vertical;
}

/* Style pour les actions du formulaire */
.actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

.actions button {
    padding: 0.7em 2em;
    border: none;
    border-radius: 4px;
    background-color: #00bcd4;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actions button:hover {
    background-color: #0097a7;
}

/* Style pour les alertes */
.alert {
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 1em;
}

.alert-success {
    background-color: #4caf50;
    color: #fff;
}

.alert-danger {
    background-color: #f44336;
    color: #fff;
}

/* Style pour les icônes de réseaux sociaux */
ul.icons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 2em;
    padding: 0;
}

ul.icons li {
    list-style: none;
}

ul.icons li a {
    color: #ddd;
    font-size: 1.5em;
    transition: color 0.3s;
}

ul.icons li a:hover {
    color: #00bcd4;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .field.half {
        flex: 1 1 100%;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Thème par défaut (sombre) */
:root {
    --background-color: #121212;
    --text-color: #ddd;
    --primary-color: #00bcd4;
    --secondary-color: #ffffff;
    --nav-color: #1f1f1f;
    --link-color: #bbb;
    --link-hover-color: #ddd;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}


header {
    background-color: #181818;
    border-bottom: 1px solid var(--secondary-color);
}

header h1 {
    color: var(--primary-color);
}

header p {
    color: var(--text-color);
}

article#contact {
    background-color: var(--nav-color);
}

.theme-toggle {
    position: absolute;
    top: 1em;
    right: 1em;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: #0097a7;
}

/* Thème clair */
body.light-theme {
    --background-color: #f4f4f9;
    --text-color: #333;
    --primary-color: #007BFF;
    --secondary-color: #2e2e2e;
    --nav-color: #fff;
    --link-color: #007BFF;
    --link-hover-color: #0056b3;
}

body.light-theme header {
    background-color: #fff;
    border-bottom: 1px solid var(--secondary-color);
}

/* Style pour le formulaire de contact */
article#contact {
    padding: 3em 2em;
    max-width: 900px;
    margin: 2em auto;
    background-color: var(--nav-color);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

article#contact h2.major {
    color: var(--primary-color);
    margin-bottom: 1em;
    text-align: center;
}

article#contact h3 {
    font-size: 1.2em;
    margin-bottom: 2em;
    text-align: center;
    color: var(--secondary-color);
}

/* Style pour les champs du formulaire */
.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.field {
    flex: 1 1 100%;
}

.field.half {
    flex: 1 1 48%;
}

.field label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.7em;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    background-color: var(--nav-color);
    color: var(--text-color);
    margin-bottom: 1em;
    transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Style pour les actions du formulaire */
.actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

.actions button {
    padding: 0.7em 2em;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.actions button:hover {
    background-color: #007399;
}

/* Style pour le reCAPTCHA */
.form-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

#google-recaptcha {
    margin: 1em 0;
}

/* Style pour les icônes de réseaux sociaux */
ul.icons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 2em;
    padding: 0;
}

ul.icons li {
    list-style: none;
}

ul.icons li a {
    color: var(--primary-color);
    font-size: 1.5em;
    transition: color 0.3s;
}

ul.icons li a:hover {
    color: #0056b3;
}

/* Galerie Photo */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    padding: 2em;
}

.gallery-item {
    width: calc(33% - 1em);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 1em);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
    }
}

/* Galerie Photo avec CSS Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 1em;
    padding: 2em;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-out;
}

/* Effet de survol */
.gallery-item:hover,
.gallery-item:focus-within {
    transform: scale(1.1);
    z-index: 1;
}

/* Effet de survol pour l'image */
.gallery-item:hover img,
.gallery-item:focus-within img {
    transform: scale(1.2);
}

/* Assurer que le clic fonctionne */
.gallery-item:focus {
    outline: none;
}
 /* Lightbox styles */
 .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
}

/* Style pour les tableaux en mode sombre */
table {
    width: 90%;
    margin: 20px auto; /* Centre le tableau */
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background-color: #1f1f1f;
    color: #ddd;
}

thead {
    background-color: #005bb5;
    color: #fff;
    font-weight: bold;
}

th, td {
    padding: 14px 16px;
    text-align: center; /* Centre le texte */
    border-bottom: 1px solid #333;
}

th {
    border-bottom: 2px solid #007BFF;
}

tr:nth-child(even) {
    background-color: #2c2c2c;
}

tr:hover {
    background-color: #3a3a3a;
}

td ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

td a {
    color: #007BFF;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* Style pour l'article d'informations */
article#infos {
    padding: 3em 2em;
    max-width: 900px;
    margin: 4em auto;
    background-color: #1f1f1f;
    color: #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article#infos h2, article#infos h3 {
    text-align: center;
    color: #00bcd4;
}

article#infos p {
    text-align: center;
    margin: 1em 0;
    line-height: 1.6;
}

article#infos hr {
    border: 0;
    height: 1px;
    background: #333;
    margin: 1.5em auto;
    width: 80%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2em;
}

.about-image {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.6s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text {
    flex: 1;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        max-width: 100%;
        margin-bottom: 2em;
    }
}
