/* =====================================================
   JBC INFO - STYLE CSS
   Site vitrine professionnel et responsive/* =====================================================
   JBC INFO - STYLE CSS
   Site vitrine professionnel et responsive
===================================================== */

/* =========================
   1. VARIABLES GLOBALES
========================= */

:root {
    --primary-color: #003366;
    --secondary-color: #0055a4;
    --dark-color: #111827;
    --light-color: #f5f7fb;
    --white-color: #ffffff;
    --text-color: #4b5563;
    --border-color: #e5e7eb;
    --success-color: #25d366;

    --font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

/* =========================
   2. RESET CSS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-family);
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* =========================
   3. CLASSES GÉNÉRALES
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-title,
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2,
.section-heading h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after,
.section-heading h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 12px auto 0;
    border-radius: 5px;
}

.section-title p,
.section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-color);
}

.section-heading span {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #072c6b;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--success-color);
    color: var(--white-color);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: #1da851;
    transform: translateY(-3px);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* =========================
   4. HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 90px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.navbar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-slogan {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
}

.logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white-color);
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    border: 3px solid var(--white-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.logo-tagline {
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-whatsapp {
    padding: 9px 15px;
    border-radius: 5px;
    color: var(--white-color);
}

.nav-links .btn-whatsapp::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.btn-header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 8px;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-header-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* =========================
   5. SECTION ACCUEIL
========================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        url("images/Gemini_Generated_Image_rm8pq0rm8pq0rm8p.jfif.jpeg") center/cover no-repeat;
    color: var(--white-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text {
    max-width: 600px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-slogan {
    color: var(--white-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.hero-features i {
    color: var(--secondary-color);
}

/* =========================
   6. SECTION À PROPOS
========================= */

.about {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4)
        ),
        url("images/Gemini_Generated_Image_i9dbbui9dbbui9db.jfif.jpeg") center/cover no-repeat;
    color: var(--white-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Le bloc texte reste en une seule colonne */
.about-content {
    display: block;
}

.about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h3 {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 18px;
    color: #e5e7eb;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.about-list li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
}

.about-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #e5e7eb;
}

.about-list i {
    color: var(--secondary-color);
}

/* Titre « Qui sommes-nous ? / À propos de JBC INFO » :
   en bas à gauche, en blanc pour être bien lisible */
.about .about-heading {
    text-align: left;
    margin-top: 50px;
    margin-bottom: 0;
}

.about .about-heading span,
.about .about-heading h2 {
    color: var(--white-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.about .about-heading h2::after {
    margin: 12px 0 0;
}

/* =========================
   7. SERVICES
========================= */

.services {
    background-color: #e8f0fe;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px 25px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.service-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #e8effc;
    color: var(--primary-color);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
}

/* =========================
   8. FORMATIONS
========================= */

.formations {
    background-color: #f0f7ff;
}

.formations-filter {
    margin-bottom: 40px;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.dropdown-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown-btn i {
    transition: transform 0.3s ease;
}

.dropdown-btn.active i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.formation-card {
    background-color: var(--white-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.formation-card:hover {
    transform: translateY(-8px);
}

.formation-image {
    overflow: hidden;
}

.formation-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.formation-content {
    padding: 25px;
}

.formation-card-content {
    padding: 25px;
}

.formation-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.formation-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.formation-card p {
    margin-bottom: 20px;
}

/* =========================
   9. AVANTAGES
========================= */

.advantages {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.advantages .section-title h2 {
    color: var(--white-color);
}

.advantages .section-title p {
    color: #e5e7eb;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    text-align: center;
    padding: 20px;
}

.advantage-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.advantage-card p {
    color: #e5e7eb;
    font-size: 0.95rem;
}

/* =========================
   10. GALERIE
========================= */

.gallery {
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: var(--white-color);
}

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* =========================
   11. CONTACT
========================= */

.contact {
    background-color: #e3f2fd;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 3px;
}

.contact-item h3,
.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* =========================
   12. FORMULAIRE
========================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    background-color: var(--white-color);
    color: var(--dark-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.btn-submit-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.35);
}

.btn-submit-form:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.btn-submit-form i {
    transition: transform 0.3s ease;
}

.btn-submit-form:hover i {
    transform: translateX(4px);
}

/* =========================
   13. FOOTER
========================= */

footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about,
.footer-links,
.footer-contact {
    padding-bottom: 0;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links a {
    display: block;
    color: #d1d5db;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: #d1d5db;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    margin-top: 20px;
    text-decoration: none;
}

.btn-footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
}

.footer-column p {
    color: #d1d5db;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #263244;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 0.9rem;
}

/* =========================
   14. BOUTON RETOUR EN HAUT
========================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 900;
    transition: var(--transition);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: translateY(-4px);
}

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 80px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 900;
    transition: var(--transition);
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    background-color: #1da851;
    transform: translateY(-4px);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* =========================
   15. ANIMATIONS
========================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

/* =========================
   16. RESPONSIVE TABLETTE
========================= */

@media (max-width: 992px) {

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .services-grid,
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   17. RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {

    section {
        padding: 60px 0;
    }

    .container {
        width: 92%;
    }

    .navbar {
        min-height: 70px;
    }

    .logo img {
        width: 120px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 13px 20px;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links .btn-whatsapp {
        display: inline-block;
        margin-top: 10px;
    }

    .hero {
        min-height: 570px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .about-image img {
        height: 300px;
    }

    .services-grid,
    .formations-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item img {
        height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================
   18. PETITS ÉCRANS
========================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 230px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-buttons .btn {
        text-align: center;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* =========================
   19. RESPONSIVE – AJUSTEMENTS
   (ordinateur, tablette, iPhone / Android)
   Règles ajoutées à la fin : elles complètent
   les sections 16 à 18 sans modifier le design.
========================= */

/* ---- Ordinateurs portables / petits écrans (≤ 1200px) ---- */
@media (max-width: 1200px) {

    .header-content {
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .btn-header-cta {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .logo-slogan {
        font-size: 1.3rem;
    }
}

/* ---- Tablettes (iPad, Android) : menu hamburger (≤ 1024px) ---- */
@media (max-width: 1024px) {

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .navbar {
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 13px 20px;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-content {
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .about-grid {
        gap: 30px;
    }

    .about-image img {
        height: 320px;
    }

    .contact-grid {
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* ---- Tablette portrait / grands mobiles (≤ 768px) ---- */
@media (max-width: 768px) {

    .header-content {
        gap: 10px;
    }

    .logo {
        gap: 10px;
    }

    .logo img {
        height: 50px;
        width: auto;
    }

    .logo-slogan {
        font-size: 1.2rem;
    }

    .btn-header-cta {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .btn-header-cta i {
        display: none;
    }

    .btn-header-whatsapp {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .about .about-heading {
        margin-top: 30px;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .formation-image img {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 35px;
    }

    .footer-about {
        grid-column: auto;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* ---- Smartphones : iPhone / Android (≤ 576px) ---- */
@media (max-width: 576px) {

    section {
        padding: 50px 0;
    }

    .container {
        width: 92%;
    }

    .header-content {
        gap: 8px;
    }

    .logo-slogan {
        font-size: 1rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .btn-header-cta {
        padding: 9px 12px;
        font-size: 0.78rem;
    }

    /* Le bouton WhatsApp flottant est déjà présent sur mobile */
    .btn-header-whatsapp {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-slogan {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        text-align: center;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .section-heading p {
        font-size: 0.95rem;
    }

    .about-image img {
        height: 240px;
    }

    .service-card {
        padding: 25px 18px;
    }

    .formation-content,
    .formation-card-content {
        padding: 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 220px;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.35rem;
    }

    .contact-item h3,
    .contact-item h4 {
        font-size: 1.1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit-form {
        padding: 14px 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-float {
        right: 15px;
        bottom: 65px;
    }
}

/* ---- Très petits écrans (≤ 360px) ---- */
@media (max-width: 360px) {

    .btn-header-cta {
        display: none;
    }

    .hero h1 {
        font-size: 1.7rem;
    }
}


/* =========================
   1. VARIABLES GLOBALES
========================= */

:root {
    --primary-color: #003366;
    --secondary-color: #0055a4;
    --dark-color: #111827;
    --light-color: #f5f7fb;
    --white-color: #ffffff;
    --text-color: #4b5563;
    --border-color: #e5e7eb;
    --success-color: #25d366;

    --font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

/* =========================
   2. RESET CSS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-family);
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* =========================
   3. CLASSES GÉNÉRALES
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-title,
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2,
.section-heading h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after,
.section-heading h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 12px auto 0;
    border-radius: 5px;
}

.section-title p,
.section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-color);
}

.section-heading span {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #072c6b;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--success-color);
    color: var(--white-color);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: #1da851;
    transform: translateY(-3px);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* =========================
   4. HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 90px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.navbar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-slogan {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
}

.logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white-color);
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    border: 3px solid var(--white-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.logo-tagline {
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-whatsapp {
    padding: 9px 15px;
    border-radius: 5px;
    color: var(--white-color);
}

.nav-links .btn-whatsapp::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.btn-header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 8px;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-header-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* =========================
   5. SECTION ACCUEIL
========================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        url("images/Gemini_Generated_Image_rm8pq0rm8pq0rm8p.jfif.jpeg") center/cover no-repeat;
    color: var(--white-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text {
    max-width: 600px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-slogan {
    color: var(--white-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.hero-features i {
    color: var(--secondary-color);
}

/* =========================
   6. SECTION À PROPOS
========================= */

.about {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4)
        ),
        url("images/Gemini_Generated_Image_i9dbbui9dbbui9db.jfif.jpeg") center/cover no-repeat;
    color: var(--white-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Le bloc texte reste en une seule colonne */
.about-content {
    display: block;
}

.about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h3 {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 18px;
    color: #e5e7eb;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.about-list li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
}

.about-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #e5e7eb;
}

.about-list i {
    color: var(--secondary-color);
}

/* Titre « Qui sommes-nous ? / À propos de JBC INFO » :
   en bas à gauche, en blanc pour être bien lisible */
.about .about-heading {
    text-align: left;
    margin-top: 50px;
    margin-bottom: 0;
}

.about .about-heading span,
.about .about-heading h2 {
    color: var(--white-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.about .about-heading h2::after {
    margin: 12px 0 0;
}

/* =========================
   7. SERVICES
========================= */

.services {
    background-color: #e8f0fe;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px 25px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.15);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.service-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #e8effc;
    color: var(--primary-color);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
}

/* =========================
   8. FORMATIONS
========================= */

.formations {
    background-color: #f0f7ff;
}

.formations-filter {
    margin-bottom: 40px;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.dropdown-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown-btn i {
    transition: transform 0.3s ease;
}

.dropdown-btn.active i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.formation-card {
    background-color: var(--white-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.formation-card:hover {
    transform: translateY(-8px);
}

.formation-image {
    overflow: hidden;
}

.formation-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.formation-content {
    padding: 25px;
}

.formation-card-content {
    padding: 25px;
}

.formation-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.formation-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.formation-card p {
    margin-bottom: 20px;
}

/* =========================
   9. AVANTAGES
========================= */

.advantages {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.advantages .section-title h2 {
    color: var(--white-color);
}

.advantages .section-title p {
    color: #e5e7eb;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    text-align: center;
    padding: 20px;
}

.advantage-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.advantage-card p {
    color: #e5e7eb;
    font-size: 0.95rem;
}

/* =========================
   10. GALERIE
========================= */

.gallery {
    background-color: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: var(--white-color);
}

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* =========================
   11. CONTACT
========================= */

.contact {
    background-color: #e3f2fd;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 3px;
}

.contact-item h3,
.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* =========================
   12. FORMULAIRE
========================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    background-color: var(--white-color);
    color: var(--dark-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.btn-submit-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.35);
}

.btn-submit-form:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.btn-submit-form i {
    transition: transform 0.3s ease;
}

.btn-submit-form:hover i {
    transform: translateX(4px);
}

/* =========================
   13. FOOTER
========================= */

footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about,
.footer-links,
.footer-contact {
    padding-bottom: 0;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links a {
    display: block;
    color: #d1d5db;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: #d1d5db;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    margin-top: 20px;
    text-decoration: none;
}

.btn-footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
}

.footer-column p {
    color: #d1d5db;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #263244;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 0.9rem;
}

/* =========================
   14. BOUTON RETOUR EN HAUT
========================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 900;
    transition: var(--transition);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: translateY(-4px);
}

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 80px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 900;
    transition: var(--transition);
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    background-color: #1da851;
    transform: translateY(-4px);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* =========================
   15. ANIMATIONS
========================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

/* =========================
   16. RESPONSIVE TABLETTE
========================= */

@media (max-width: 992px) {

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .services-grid,
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   17. RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {

    section {
        padding: 60px 0;
    }

    .container {
        width: 92%;
    }

    .navbar {
        min-height: 70px;
    }

    .logo img {
        width: 120px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 13px 20px;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links .btn-whatsapp {
        display: inline-block;
        margin-top: 10px;
    }

    .hero {
        min-height: 570px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .about-image img {
        height: 300px;
    }

    .services-grid,
    .formations-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item img {
        height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================
   18. PETITS ÉCRANS
========================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 230px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-buttons .btn {
        text-align: center;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}