:root {
    --primary-green: #2c5f2d;
    --primary-green-light: #97cba9;
    --accent-red: #b33f2f;
    --dark-bg: #1a2a1f;
    --overlay-dark: rgba(10, 20, 10, 0.85);
    --text-light: #f4f4f4;
    --transition-speed: 0.4s;
    --border-radius-card: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f4f0;
    line-height: 1.6;
}

/* HEADER PRINCIPAL */
.header3 {
    overflow: hidden;
    /* background-image: url('./image/ministere.jpg'); */
    height: 100vh;
    width: 100vw;
    display: flex;
    /* background-repeat: no-repeat;
     background-position: center;
     background-size: cover; */
}

.header3 .background-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.91);
    background-position: center;
    background-size: cover;
    border-radius: 0 0 100% 0;
    z-index: 0;
    box-shadow: 0 0 200px black;
    opacity: 0.5;
}

.header31 {
    overflow: hidden;
    height: 20vh;
    width: 100vw;
    display: flex;
}

.header31 .background-overlay {
    position: absolute;
    width: 100%;
    height: 20vh;
    background-color: rgba(0, 0, 0, 0.91);
    background-position: center;
    background-size: cover;
    z-index: 0;
    box-shadow: 0 0 200px black;
    opacity: 0.5;
}

.main-wrapper {
    width: 100%;
    padding: 40px 80px;
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 20px; */
    z-index: 30;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 5px 20px black;
}

.logo img {
    width: 100px;
}

.slogan {
    color: white;
    margin-left: 10%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.3rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-green-light);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #fefffe;
    text-shadow:
        0 0 5px #508b5f,
        0 0 10px #68c286,
        0 0 20px #25ad2a,
        0 0 40px #4CAF50,
        0 0 80px #4CAF50;
}

/* Menu burger (mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 40;
}

/* CONTENU HERO */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.text-content {
    z-index: 20;
    width: 50%;
}

.title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.outline {
    font-weight: 600;
    display: block;
    font-size: 3rem;
    color: var(--primary-green-light);
}

.description {
    max-width: 500px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 30px 0;
    line-height: 1.8;
    transition: opacity 0.4s, transform 0.4s;
}

.btn-main {
    background: var(--accent-red);
    color: white;
    padding: 15px 45px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-main:hover {
    background: #942e1f;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.image-container {
    width: 45%;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    transition: opacity 0.5s, transform 0.5s;
    border-radius: 30px;
}

/* FLÈCHES DE NAVIGATION */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-green-light);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* INDICATEURS (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 200;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.dot.active {
    background: var(--primary-green-light);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-green-light);
}

/* CARTES SOUS LE HEADER */
.cardpart {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 5%;
    background: #f9fff9;
    flex-wrap: wrap;
    margin-top: -50px;
    position: relative;
    z-index: 50;
}

.minicard {
    background: white;
    width: 20%;
    padding: 30px 20px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 15px 30px rgba(0, 40, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(150, 230, 150, 0.3);
}

.minicard:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(44, 95, 45, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.titcard {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.descricard {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.btn-plus {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-green);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-plus:hover {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

/* SECTIONS D'INFORMATION (accueilinfo) */
.containaccueil {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 5%;
    background: linear-gradient(135deg, #e8f3e8, #ffffff);
}

.accueilinfo {
    max-width: 1100px;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(150, 200, 150, 0.3);
}

.titinfo {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 20px;
    position: relative;
}

.titinfo::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-green);
    margin-top: 10px;
}

.descriinfo {
    color: #2d3a2d;
    line-height: 1.8;
}

.descriinfo ul {
    margin: 20px 0 0 20px;
}

/* FOOTER */
.footer-elegant {
    background: var(--dark-bg);
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 20px;
}

.footer-col {
    flex: 1 1 300px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--primary-green-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col ul {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #3a4a3a;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom i {
    margin-right: 8px;
}

/* CLASSES D'ANIMATION (utilisées par JS) */
.fade-hidden {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
}

.text-hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* ---------formresult------- */

.resultcontain {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5% 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0px 3px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    width: 15%;
}

input, select {
    width: 85%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
} */

.label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    width: 15%;
}

.input,
.select {
    width: 85%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
}

.label1 {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    width: 31%;
}

.input1 {
    width: 69%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
}

.nom-prenom {
    display: flex;
    flex: 1;
    gap: 2.5%;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    background: #3d6831;
    background: linear-gradient(to right, #3d6831, #d43935);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 3%;
}

.tab-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    width: 50%;
}

.tab-btn.active {
    background: #3d6831;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.titresu {
    margin-bottom: 2%;
    font-size: 30px;
    font-weight: 600;
    color: #3d6831;
    text-align: center;
    text-shadow: 0 0 1px black;
}


/* -------------------style spécial résultat--------------- */
/* 1. Base et Mise en page */

#result-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.result-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Par défaut (1 seul résultat) */
.result-cards-container>div {
    flex: 1 1 100%;
    max-width: 100%;
}

/* Si 2 résultats exactement */
.result-cards-container>div:first-child:nth-last-child(2),
.result-cards-container>div:first-child:nth-last-child(2)~div {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

/* Si 3 résultats ou plus */
.result-cards-container>div:first-child:nth-last-child(n+3),
.result-cards-container>div:first-child:nth-last-child(n+3)~div {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
}

.result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.result-header {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f1 100%);
    border-bottom: 1px solid #f0f0f0;
}

.congrats-box {
    text-align: center;
}

.emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.congrats-box h3 {
    margin: 10px 0;
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.4;
}

.success-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.danger-badge {
    display: inline-block;
    background: #edd4d4;
    color: #571515;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-detail {
    display: block;
    width: 80%;
    margin: 15px auto;
    background: #f8f9fa;
    color: #3d6831;
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-detail:hover {
    background: #e2e6ea;
}

.btn-detail1 {
    display: block;
    width: 80%;
    margin: 15px auto;
    background: #3d6831;
    color: #f8f9fa;
    border: 1px solid #3d6831;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-detail1:hover {
    background: #e2e6ea;
    color: #3d6831;
}

.result-detail {
    border-top: 1px solid #eee;
    background: #fafafa;
    animation: slideDown 0.3s ease-out;
}

.detail-info {
    padding: 20px;
    font-size: 0.9rem;
    color: #000000;
}

.detail-info p {
    margin: 8px 0;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 4px;
}

.detail-info strong {
    color: #000000;
}

.mention-text {
    color: #3d6831;
    font-weight: bold;
}

.action-box {
    padding: 15px;
    text-align: center;
}

.btn-diplome {
    display: block;
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-diplome:hover {
    background: #218838;
}

.hidden {
    display: none;
}

@media (max-width: 1024px) {
    #result-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    #result-area {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .congrats-box h3 {
        font-size: 1rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Fond sombre transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease-out;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.btn-close-modal {
    margin-top: 20px;
    background: #34495e;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
}

.modal-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-container {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* LE RAIL : On a 6 sections, donc 600% de large */
.form-rail {
    display: flex;
    width: 700%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border-left: 4px solid #00660A;
    width: 14.2854143%;
    box-sizing: border-box;
}

/* Conteneur des boutons pour les aligner sur une ligne */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Style commun aux boutons */
.btn-next,
.btn-prev {
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
}

/* Style spécifique : SUIVANT (Couleur d'action) */
.btn-next {
    background-color: #28a745;
    color: white;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.btn-next:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* Style spécifique : RETOUR (Couleur neutre) */
.btn-prev {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-prev:hover {
    background-color: #e2e6ea;
    color: #212529;
    transform: translateY(-2px);
}

/* Effet quand on clique (appui) */
.btn-next:active,
.btn-prev:active {
    transform: translateY(0);
}

/* Fond sombre et flou */
.modald-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Couleur ardoise sombre */
    backdrop-filter: blur(4px);
    /* Floute l'arrière-plan */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* La carte du message */
.modald-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease-out;
}

/* Icône stylisée */
.modald-icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    color: #ef4444;
    /* Rouge doux */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.modald-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modald-body {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Bouton moderne */
.modald-btn {
    background: #10b981;
    color: white;
    /* Vert moderne */
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.modald-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

.submit-btn:disabled {
    background-color: #cccccc;
    /* Gris */
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    /* Empêche l'animation de survol */
}

.result-parent {
    position: relative;
    list-style: none;
}

.resultsub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(120, 120, 120, 0.854);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
}

.resultsub-menu li {
    list-style: none;
}

.resultsub-menu a {
    color: #ffffff;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: background 0.3s;
}

.resultsub-menu a:hover {
    background-color: transparent;
    color: #28a745;
}

.result-parent:hover .resultsub-menu {
    display: block;
}

.bg-attente {
    background-color: burlywood;
}





















/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 1600px) {

    /* NAVIGATION */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        z-index: 30;
    }

    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 10px;
        color: white;
        font-size: 1.5rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 80px;
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 30px;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-light);
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.3s;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--primary-green-light);
        transition: width 0.3s;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .nav-links li a:hover {
        color: #fefffe;
        text-shadow:
            0 0 5px #508b5f,
            0 0 10px #68c286,
            0 0 20px #25ad2a,
            0 0 40px #4CAF50,
            0 0 80px #4CAF50;
    }

    .minicard {
        background: white;
        width: 24%;
        padding: 30px 20px;
        border-radius: var(--border-radius-card);
        box-shadow: 0 15px 30px rgba(0, 40, 0, 0.1);
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
        border: 1px solid rgba(150, 230, 150, 0.3);
    }
}


@media (max-width: 1280px) {
    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 10px;
        color: white;
        font-size: 1rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 80px;
    }

    .slogan {
        color: white;
        margin-left: 8%;
        margin-top: -3%;
    }

    .title {
        font-size: 2rem;
        line-height: 1.1;
        font-weight: 700;
        color: white;
        margin-bottom: 20px;
    }

    .outline {
        font-weight: 600;
        display: block;
        font-size: 2rem;
        color: var(--primary-green-light);
    }
}


@media (max-width: 1150px) {
    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 10px;
        color: white;
        font-size: 1rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 80px;
    }

    .slogan {
        color: white;
        margin-left: 8%;
        margin-top: -3%;
    }

    .title {
        font-size: 2rem;
        line-height: 1.1;
        font-weight: 700;
        color: white;
        margin-bottom: 20px;
    }

    .outline {
        font-weight: 600;
        display: block;
        font-size: 2rem;
        color: var(--primary-green-light);
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-light);
        font-weight: 500;
        font-size: 0.7rem;
        transition: all 0.3s;
        position: relative;
    }
}





@media (max-width: 1024px) {
    .main-wrapper {
        padding: 30px 40px;
    }

    .title {
        font-size: 3rem;
    }

    .outline {
        font-size: 2rem;
    }

    .hero-content {
        gap: 20px;
    }

    .text-content {
        width: 60%;
    }

    .image-container {
        width: 40%;
    }
}

@media (max-width: 880px) {
    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 40px;
        color: white;
        font-size: 1.5rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
        text-align: center;
    }

    .navbar {
        position: relative;
        z-index: 999;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 30, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        gap: 15px;
        text-align: center;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .text-content {
        width: 100%;
        margin-bottom: 30px;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .image-container {
        width: 80%;
    }

    .hero-img {
        max-height: 40vh;
    }

    .title {
        font-size: 2.5rem;
        margin-top: 25%;
    }

    .slogan {
        margin-left: 30%;
    }

    .header3 .background-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.91);
        background-position: center;
        background-size: cover;
        border-radius: 0 0 0 0;
        z-index: 0;
        box-shadow: 0 0 200px black;
        opacity: 0.5;
    }
}

@media (max-width: 600px) {
    .main-wrapper {
        padding: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .outline {
        font-size: 1.6rem;
    }

    .btn-main {
        padding: 12px 30px;
    }

    .cardpart {
        padding: 40px 20px;
        margin-top: -30px;
    }

    .minicard {
        width: 100%;
        max-width: 350px;
    }

    .accueilinfo {
        padding: 25px;
    }

    .titinfo {
        font-size: 1.8rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 500px) {

    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 35px;
        color: white;
        font-size: 0.7rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 50px;
    }

    .slogan {
        color: white;
        margin-left: 30%;
        font-size: 0.6rem;
    }

    .image-container {
        display: none;
    }

    .input-group {
        margin-bottom: 15px;
        display: block;
    }

    .label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input,
    .select {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }

    .nom-prenom {
        display: block;
    }

    .label1 {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input1 {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }

    .tab-btn{
        font-size: 0.6rem;
    }
}


@media (max-width: 400px) {

    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 20px;
        color: white;
        font-size: 0.7rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 50px;
    }

    .slogan {
        color: white;
        margin-left: 30%;
        font-size: 0.6rem;
    }

    .image-container {
        display: none;
    }

    .input-group {
        margin-bottom: 15px;
        display: block;
    }

    .label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input,
    .select {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }

    .nom-prenom {
        display: block;
    }

    .label1 {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input1 {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }
}

@media (max-width: 400px) {

    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 20px;
        color: white;
        font-size: 0.7rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 40px;
    }

    .slogan {
        color: white;
        margin-left: 25%;
        font-size: 0.6rem;
    }

    .image-container {
        display: none;
    }

    .input-group {
        margin-bottom: 15px;
        display: block;
    }

    .label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input,
    .select {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }

    .nom-prenom {
        display: block;
    }

    .label1 {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input1 {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }
}
@media (max-width: 370px) {

    .logo {
        display: flex;
        align-items: center;
        font-weight: 600;
        gap: 10px;
        color: white;
        font-size: 0.7rem;
        text-transform: uppercase;
        text-shadow: 0 5px 20px black;
    }

    .logo img {
        width: 40px;
    }

    .slogan {
        color: white;
        margin-left: 25%;
        font-size: 0.6rem;
    }

    .image-container {
        display: none;
    }

    .input-group {
        margin-bottom: 15px;
        display: block;
    }

    .label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input,
    .select {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }

    .nom-prenom {
        display: block;
    }

    .label1 {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 5px;
        width: 100%;
    }

    .input1 {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        outline: none;
    }
}