/* Reset et polices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 100px;
}

/* Header fixe */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.scrolled-header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

.scrolled-header .logo {
    height: 60px;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #e74c3c;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e74c3c;
    transition: width 0.3s;
}

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

/* Style du burger */
.burger {
    display: none; /* caché par défaut sur desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row; /* garder horizontal */
        justify-content: space-between; /* logo à gauche, burger à droite */
        align-items: center;
        padding: 0 20px;
    }
    
    .nav-links {
        display: none; /* cacher menu principal */
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 70px; /* juste sous le header */
        right: 0;
        width: 200px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .burger {
        display: flex; /* afficher le burger sur mobile */
    }

    .nav-links.active {
        display: flex; /* afficher le menu quand actif */
    }
}


/* Typographie */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Conteneur principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Bannière hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('src/assets/fond1.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -100px;
    padding-top: 180px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Boutons */
.btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f9f9f9;
}

/* Grille des services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cartes de services */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateY(-10px);
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-link:hover .card {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card h3 {
    padding: 20px 20px 0;
    text-align: center;
}

.imgCard {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    margin-bottom: 20px;
    color: #555;
}

.card-cta {
    margin-top: auto;
    color: #e74c3c;
    font-weight: 500;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
    transition: color 0.3s;
}

.card-link:hover .card-cta {
    color: #c0392b;
}

/* Section Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info a {
    color: #e74c3c;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Pied de page */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
}

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

footer p {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .header-container {
        padding: 0 20px;
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 60px;
        margin-bottom: 10px;
    }

    .nav-links {
        margin-top: 15px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero {
        height: auto;
        padding: 120px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

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

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

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}

/* Styles pour la page contrôles */

/* Bannière des sous-pages */
.hero-subpage {
    color: white;
    text-align: center;
    height: 60vh;
    display: flex;
    align-items: center;
    margin-top: -100px;
    padding-top: 180px;
    background-size: cover;
    background-position: center;
}

.hero-subpage h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

/* Grille des contrôles */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.control-category {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.control-category:hover {
    transform: translateY(-5px);
}

.control-category h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.icon {
    margin-right: 10px;
    font-weight: bold;
}

.control-list {
    list-style-type: none;
}

.control-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.control-list li:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Section contact simplifiée */
.contact-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta h2 {
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-subpage {
        height: auto;
        padding: 120px 0;
    }
    
    .hero-subpage h1 {
        font-size: 2rem;
    }
}

/* Styles spécifiques formations */

/* Cartes formations */
.formation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.formation-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.formation-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.formation-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.formation-details {
    list-style: none;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.formation-details li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.formation-details strong {
    color: #333;
}

.formation-content p {
    color: #555;
    line-height: 1.7;
}

/* Bloc certification */
.certification-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.certification-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.certification-list {
    list-style: none;
    margin-top: 25px;
}

.certification-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
    color: #555;
}

.certification-list i {
    color: #e74c3c;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.certification-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section CTA */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .certification-block {
        grid-template-columns: 1fr;
    }
    
    .certification-content h2 {
        text-align: center;
    }
    
    .certification-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .formation-card {
        padding: 25px;
    }
    
    .cta-content p {
        font-size: 1rem;
    }

/* Boutons CTA – correction mobile uniquement */
@media (max-width: 576px) {
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 14px; /* espace entre les boutons */
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        box-sizing: border-box;
    }
}

}