/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-color: #0b3d2e;
    --secondary-color: #c9a227;
    --accent-color: #8c6b1f;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --border-light: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    margin-bottom: 15px;
}

h2,
.page-banner h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

h2::after,
.page-banner h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    flex: 1;
}

.logo {
    margin: 0;
    line-height: 0;
}

.logo-img {
    height: 72px;
    width: auto;
    display: block;
}

.logo-link {
    display: inline-block;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Lien vers la plateforme e-learning, mis en avant */
.nav-link.nav-elearning {
    padding: 6px 14px;
    border: 2px solid var(--secondary-color);
    border-radius: 999px;
}

.nav-link.nav-elearning:hover {
    background: var(--secondary-color);
    color: #fff;
}

.nav-link.nav-elearning::after {
    display: none;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(11, 61, 46, 0.3);
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #062319;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 61, 46, 0.4);
}

.call-icon {
    width: 22px;
    height: 22px;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    padding: 10px 20px 10px 12px;
    border-radius: 30px;
    background: #1877f2;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: #0d65d9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.facebook-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.phone-buttons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.btn-whatsapp-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 5px;
    background: #25d366;
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp-wide:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-wide svg {
    width: 20px;
    height: 20px;
}

.status-wait-box {
    background: #f7f4ea;
    border: 1px solid #e6dfc4;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.status-wait-box p {
    margin-bottom: 14px;
    color: #555;
}

/* ===== SECTION HÉRO ===== */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    background: #062319;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("background.jpg") center 8% / cover no-repeat;
    background-image: image-set(url("background.webp") type("image/webp"), url("background.jpg") type("image/jpeg"));
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(6, 35, 25, 0.1) 0%, rgba(6, 35, 25, 0.25) 100%),
        radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(140, 107, 31, 0.12) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.55);
}

.hero-content h1::after {
    display: none;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BANDEAU DE PAGE (sous-pages) ===== */
.page-banner {
    padding: 90px 0 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #062319);
    color: white;
}

.page-banner h1 {
    color: white;
}

.page-banner p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTION À PROPOS ===== */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-text h2::after {
    left: 0;
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    font-size: 1.1rem;
    margin: 15px 0;
    color: var(--text-dark);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: var(--shadow-large);
}

.about-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== APERÇU (page d'accueil) ===== */
.overview {
    padding: 80px 0;
    background: #f8f9fa;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.overview-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.overview-card p {
    margin-bottom: 0;
}

/* ===== GROUPES DE FORMATION ===== */
.groups {
    padding: 80px 0;
    background: white;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.group-card {
    cursor: pointer;
}

.card-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== MODALE DÉTAIL GROUPE ===== */
.group-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 35, 25, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.group-modal.active {
    display: flex;
}

.group-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-large);
}

.group-modal-content h3 {
    margin-bottom: 15px;
    padding-right: 20px;
}

.group-modal-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.group-modal-duration {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.program-slider {
    margin-top: 15px;
}

.program-slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.program-slide-header h4 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.slide-arrow {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
}

.slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-light);
    transition: background 0.2s ease;
}

.slide-dot.active {
    background: var(--secondary-color);
}

.group-modal-content ul {
    list-style: none;
}

.group-modal-content ul li {
    color: #555;
    padding: 6px 0 6px 26px;
    position: relative;
}

.group-modal-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.group-modal-fee {
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(201, 162, 39, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.group-modal-fee div + div {
    margin-top: 8px;
}

.group-modal-fee-detail {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}

.group-modal-fee span {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.group-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.group-modal-close:hover {
    color: var(--primary-color);
}

/* ===== SECTION FORMATION ===== */
.formation {
    padding: 80px 0;
    background: #f8f9fa;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.08), rgba(201, 162, 39, 0.14));
    color: var(--primary-color);
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.7;
}

.formation-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== SECTION SERVICES ===== */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    padding: 30px;
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.05), rgba(201, 162, 39, 0.05));
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.1), rgba(201, 162, 39, 0.1));
    transform: translateX(10px);
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.services h2 {
    margin-top: 70px;
}

.services-intro,
.services .container > p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: #444;
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    line-height: 1.8;
}

.services-list li {
    margin-bottom: 10px;
}

.services a:not(.btn),
.temoignages-intro a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Questions fréquentes (page Services) */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    border-left: 4px solid var(--secondary-color);
    background: rgba(11, 61, 46, 0.04);
    border-radius: 5px;
    margin-bottom: 12px;
    padding: 16px 20px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.faq details p {
    margin-top: 12px;
    line-height: 1.7;
}

/* Texte d'introduction (page Témoignages) */
.testimonials-grid + .temoignages-intro {
    margin-top: 50px;
}

.temoignages-intro + h2 {
    margin-top: 50px;
}

.temoignages-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: #444;
}

/* ===== SECTION TÉMOIGNAGES ===== */
.temoignages {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.testimonial:hover {
    box-shadow: var(--shadow-large);
}

.testimonial-text {
    font-size: 1.1rem;
    color: #333;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== GALERIE PHOTO (SPIRALE) ===== */
.gallery {
    padding: 80px 0 100px;
    background: white;
    text-align: center;
}

.gallery-caption {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-hint {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.gallery-year-block {
    margin-bottom: 70px;
}

.gallery-year-block:last-child {
    margin-bottom: 0;
}

.gallery-year {
    position: absolute;
    left: 50%;
    top: calc(50% + var(--item-size, 120px) / 2 + 14px);
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    pointer-events: none;
}

.spiral-gallery {
    position: relative;
    width: min(90vw, 620px);
    aspect-ratio: 1;
    margin: 50px auto 0;
}

.gallery-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transform:
        translate(var(--sx, 0), var(--sy, 0))
        rotate(var(--sr, 0deg))
        scale(0.92);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.spiral-gallery:hover .gallery-item,
.spiral-gallery.open .gallery-item {
    transform:
        translate(var(--x, 0), var(--y, 0))
        rotate(0deg)
        scale(1);
    box-shadow: var(--shadow-large);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ===== LIGHTBOX GALERIE ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 35, 25, 0.95);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: var(--shadow-large);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

/* ===== SECTION STATISTIQUES ===== */
.statistics {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #062319);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== SECTION CONTACT ===== */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    max-width: 500px;
    margin: 50px auto 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.info-item p {
    color: #666;
    margin: 0;
}

.contact-email {
    color: var(--accent-color);
    font-weight: 500;
    word-break: break-all;
}

.contact-email:hover,
.contact-email:focus-visible {
    color: var(--primary-color);
}

/* ===== FORMULAIRE D'INSCRIPTION ===== */
.registration-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.registration-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
}

.form-errors {
    background: rgba(192, 57, 43, 0.08);
    border-left: 4px solid #c0392b;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== CHOIX DU MODE DE PAIEMENT ===== */
.payment-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.payment-choice-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-family: inherit;
    transition: all 0.3s ease;
}

.payment-choice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--secondary-color);
}

.payment-choice-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-choice-desc {
    font-size: 0.9rem;
    color: #777;
}

.payment-choice-card.payment-choice-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.payment-choice-card.payment-choice-disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.payment-choice-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #999;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin: 10px 0;
    color: var(--text-light);
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow);
        padding: 20px;
        gap: 18px;
        font-size: 1rem;
        z-index: 200;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2,
    .page-banner h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .formation-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 52px;
    }

    .hero {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2,
    .page-banner h1 {
        font-size: 1.5rem;
    }

    .card,
    .testimonial {
        padding: 25px 20px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text {
    animation: slideInLeft 0.8s ease-out;
}

.about-image {
    animation: slideInRight 0.8s ease-out;
}

/* Rappel d'une inscription non payée (script.js) */
.resume-banner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    padding: 12px 48px 12px 16px;
    background: #fff6dc;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    font-weight: 500;
}
.resume-banner p { margin: 0; }
.resume-banner .btn { padding: 8px 18px; font-size: 0.95rem; }
.resume-banner-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
