/* =====================================================
   JBC INFO - STYLE CSS
   Site vitrine professionnel, moderne et 100% responsive
===================================================== */

/* =========================
   1. VARIABLES GLOBALES
========================= */
:root {
    --primary-color: #003366;
    --primary-dark: #002244;
    --primary-light: #004d99;
    --secondary-color: #0055a4;
    --accent-color: #ff6b00;
    --dark-color: #111827;
    --light-color: #f5f7fb;
    --light-blue: #e8f0fe;
    --light-alt: #f0f7ff;
    --white-color: #ffffff;
    --text-color: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #25d366;
    --success-hover: #1da851;
    --danger-color: #ef4444;

    --font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 51, 102, 0.15);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

/* =========================
   2. RESET CSS & BASE
========================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: var(--font-family);
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================
   3. CLASSES GÉNÉRALES
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
    position: relative;
}

.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;
    font-weight: 700;
    line-height: 1.3;
}

.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);
    font-size: 1.05rem;
}

.section-heading span {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.35);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--success-color);
    color: var(--white-color);
}

.btn-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-3px);
}

/* =========================
   4. HEADER & NAVIGATION
========================= */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
    padding: 8px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo-slogan {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 1.2px;
}

/* Navbar desktop */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

/* Actions Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
    white-space: nowrap;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.3);
    color: var(--white-color);
}

.btn-header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    flex-shrink: 0;
}

.btn-header-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Bouton Menu Burger (mobile/tablette) */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--light-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.menu-toggle:hover {
    background-color: var(--border-color);
}

/* =========================
   5. SECTION ACCUEIL (HERO)
========================= */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(0, 25, 55, 0.75), rgba(0, 25, 55, 0.75)),
        url("images/Gemini_Generated_Image_rm8pq0rm8pq0rm8p.jfif.jpeg") center/cover no-repeat;
    color: var(--white-color);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 820px;
}

.hero-text {
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: var(--white-color);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-badge i {
    color: var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: #60a5fa;
}

.hero-slogan {
    color: #f3f4f6;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #e5e7eb;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-features i {
    color: var(--success-color);
    font-size: 1.1rem;
}



/* =========================
   6. SECTION À PROPOS
========================= */
.about {
    background:
        linear-gradient(rgba(0, 20, 45, 0.85), rgba(0, 20, 45, 0.85)),
        url("images/Gemini_Generated_Image_i9dbbui9dbbui9db.jfif.jpeg") center/cover no-repeat;
    color: var(--white-color);
}

.about .section-heading span,
.about .section-heading h2 {
    color: var(--white-color);
}

.about-grid {
    display: flex;
    flex-direction: column;
    max-width: 820px;
    margin-bottom: 20px;
}

.about-content h3 {
    color: #60a5fa;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 18px;
    color: #e5e7eb;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 30px;
}

.about-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 500;
}

.about-list i {
    color: var(--success-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about .about-heading {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 0;
}

.about .about-heading h2::after {
    margin: 12px 0 0;
}

/* =========================
   7. SERVICES
========================= */
.services {
    background-color: var(--light-blue);
}

.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: left;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
    flex-shrink: 0;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.35;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.service-card ul {
    list-style: none;
    margin: 10px 0 20px;
    padding: 0;
    flex-grow: 1;
}

.service-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--text-color);
}

.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.service-card a:hover {
    color: var(--primary-color);
    gap: 12px;
}

/* =========================
   8. FORMATIONS
========================= */
.formations {
    background-color: var(--light-alt);
}

.formations-filter {
    margin-bottom: 40px;
    position: relative;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.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: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.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);
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.formation-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-color);
}

.formation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.formation-card:hover .formation-image img {
    transform: scale(1.05);
}

.formation-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.formation-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.formation-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.35;
}

.formation-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.formation-card ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex-grow: 1;
}

.formation-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.formation-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.formation-card .btn-primary {
    margin-top: auto;
    width: 100%;
}

/* =========================
   9. AVANTAGES
========================= */
.advantages {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white-color);
}

.advantages .section-heading span,
.advantages .section-heading h2 {
    color: var(--white-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.advantage-card i {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 20px;
    display: inline-block;
}

.advantage-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--white-color);
}

.advantage-card p {
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================
   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);
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    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 1.15fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e8f0fe;
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h3,
.contact-item h4 {
    color: var(--dark-color);
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Formulaire */
.contact-form {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.95rem;
    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(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.35);
}

.btn-submit-form i {
    transition: transform 0.3s ease;
}

.btn-submit-form:hover i {
    transform: translateX(4px);
}

.form-message {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =========================
   12. FOOTER
========================= */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 45px;
}

.footer-column h3,
.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--white-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after,
.footer-about h3::after,
.footer-links h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo img {
    height: 60px;
    background-color: var(--white-color);
    padding: 4px;
    border-radius: 6px;
}

.footer-about p {
    color: #d1d5db;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 25px;
    padding: 0;
}

.footer-clients li {
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #e5e7eb;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links a {
    display: block;
    color: #d1d5db;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

.footer-contact p {
    color: #d1d5db;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact p a {
    color: #d1d5db;
}

.footer-contact p a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
    color: var(--white-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* =========================
   13. BOUTONS FLOTTANTS
========================= */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 950;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 80px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 950;
    transition: var(--transition);
    font-size: 1.7rem;
}

.whatsapp-float:hover {
    background-color: var(--success-hover);
    transform: translateY(-3px) scale(1.05);
}

/* =====================================================
   14. RESPONSIVE DESIGN COMPLET
===================================================== */

/* ---- Grands écrans / Laptops standards (≤ 1200px) ---- */
@media (max-width: 1200px) {
    .container {
        width: 92%;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-header-cta {
        padding: 9px 16px;
        font-size: 0.84rem;
    }
}

/* ---- Tablettes & Écrans intermédiaires (≤ 992px) ---- */
@media (max-width: 992px) {
    section {
        padding: 65px 0;
    }

    /* Activation du Menu Hamburger */
    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: static;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease-in-out;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 14px 30px;
        font-size: 1rem;
        border-bottom: 1px solid #f3f4f6;
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active,
    .nav-links a:hover {
        background-color: #f8fafc;
        color: var(--secondary-color);
        padding-left: 36px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    /* À Propos */
    .about-grid {
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .about .about-heading {
        text-align: center;
    }

    .about .about-heading h2::after {
        margin: 12px auto 0;
    }

    /* Grids 2 colonnes */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* ---- Tablettes portrait & Mobiles larges (≤ 768px) ---- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }

    section {
        padding: 55px 0;
    }

    .header-content {
        min-height: 70px;
    }

    .logo img {
        height: 44px;
    }

    .logo-slogan {
        font-size: 1.25rem;
    }

    .btn-header-cta {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .btn-header-cta span {
        display: inline;
    }

    .btn-header-cta i {
        display: none;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-slogan {
        font-size: 1.15rem;
    }

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

    .section-title h2,
    .section-heading h2 {
        font-size: 1.85rem;
    }

    .services-grid,
    .formations-grid {
        grid-template-columns: 1fr;
    }

    .about-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }
}

/* ---- Smartphones (≤ 576px) ---- */
@media (max-width: 576px) {
    .container {
        width: 93%;
    }

    section {
        padding: 45px 0;
    }

    .header-content {
        min-height: 65px;
        gap: 10px;
    }

    .logo-slogan {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .logo img {
        height: 40px;
    }

    /* Sur très petit écran, masquer le bouton CTA header pour garder de la place */
    .btn-header-cta {
        display: none;
    }

    .btn-header-whatsapp {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }





    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 150px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-float {
        right: 15px;
        bottom: 65px;
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
    }
}

/* ---- Très petits smartphones (≤ 380px) ---- */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.65rem;
    }

    .section-title h2,
    .section-heading h2 {
        font-size: 1.6rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 180px;
    }
}