/* ===========================
   FONTS
=========================== */
@font-face {
    font-family: 'MaPolice';
    src: url('composants/font/Rubik-SemiBold.ttf');
}

@font-face {
    font-family: 'MAPoliceBold';
    src: url('composants/font/Rubik-Bold.ttf');
}

@font-face {
    font-family: 'regular';
    src: url('composants/font/Rubik-Regular.ttf');
}

/* ===========================
   GLOBAL
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    font-family: 'MaPolice', sans-serif;
    color: #031A47;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ===========================
   TOP BAR FINE
=========================== */
.top-bar {
    width: 100%;
    height: 20px;
    /* très fin */
    background-color: #031A47;
}

/* ===========================
   NAVIGATION PRINCIPALE
=========================== */

nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: #fff;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
}

/* Logo */
.nav-left img.logoblanc {
    max-height: 120px; /* logo plus grand */
    width: auto;
}

/* Liens du menu - desktop */
.nav-links {
    display: flex;
    flex: 1; /* prend tout l’espace disponible entre logo et LinkedIn */
    justify-content: center;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-weight: 500;
    color: #031A47;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

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

/* LinkedIn */
.nav-right img.linkedinbleu {
    max-height: 40px;
    width: auto;
}

/* Hamburger - mobile */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #031A47;
}


/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {

    /* Affiche hamburger */
    .hamburger {
        display: block;
    }

    /* Menu mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* juste sous le nav */
        left: 0;
        width: 100%;
        background-color: #031A47;
        z-index: 999;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

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

    .nav-links li a {
        color: white;
        font-size: 1.2rem;
    }

    /* LinkedIn centré sous menu */
    .nav-right {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ===========================
   HERO
=========================== */
.hero {
    position: relative;
    background-image: url('composants/pictures/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 700px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 50px;
}

.hero-left {
    flex: 2;
    color: white;
    gap: 20px;
}

.hero-left h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero-left .btn1 {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFB400;
    color: #031A47;
    border-radius: 5px;
}

.hero-right {
    flex: 1;
    max-width: 350px;
}

/* ===========================
   CALENDRIER
=========================== */
.calendar {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.weekdays,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.weekdays div {
    padding: 5px 0;
}

.days {
    gap: 5px;
}

.day {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
}

.day.available:hover {
    background: #2e86de;
    color: white;
}

.day.unavailable {
    color: #ccc;
    cursor: not-allowed;
}

#time-picker {
    margin-top: 15px;
    display: none;
}

/* ===========================
   SECTION INTRO
=========================== */
.intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    background-color: white;
    gap: 50px;
}

.intro p {
    flex: 1;
    max-width: 500px;
    line-height: 1.8;
}

.intro-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.intro-img img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===========================
   SECTION SERVICES
=========================== */
.services {
    position: relative;
    background-image: url('composants/pictures/services.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.services .overlayblue {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

.services .contenu {
    position: relative;
    background-color: #031A47;
    padding: 50px 30px;
    border-radius: 40px;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}

.services h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #FFB400;
}

.highlight {
    color: #FFB400;
}

.services .contenu .btn2 {
    display: block;
    margin: 20px auto 0;
    padding: 8px 20px;
    background-color: #FFB400;
    color: #031A47;
    border-radius: 20px;
    font-size: 16px;
    width: auto;
    text-align: center;
}

/* ===========================
   FOOTER
=========================== */
footer.footer {
    display: flex;
    justify-content: space-between;
    padding: 40px 10%;
    background-color: #031A47;
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

footer.footer .footer-column {
    flex: 1;
    min-width: 200px;
}

footer.footer h3 {
    color: #FFB400;
    margin-bottom: 15px;
}

footer.footer p,
footer.footer a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 0;
}

footer.footer a:hover {
    color: #FFB400;
}

footer.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.footer img {
    max-width: 120px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

/* ===========================
   MEDIA QUERIES
=========================== */
@media (max-width: 1024px) {

    .hero-content,
    .intro {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
    }

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

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

    .calendar {
        max-width: 100%;
        padding: 15px;
    }

    .intro p,
    .intro-img img {
        max-width: 90%;
    }

    .services .contenu {
        max-width: 90%;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero-left h1 {
        font-size: 1.8rem;
    }

    .hero-left .btn1 {
        font-size: 14px;
        padding: 10px 20px;
    }

    .day {
        padding: 6px;
        font-size: 0.8rem;
    }

    .weekdays div {
        font-size: 0.7rem;
    }

    footer.footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    footer.footer .footer-column {
        max-width: 90%;
    }
}

/* ===========================
   PAGE A PROPOS
=========================== */

/* HERO A PROPOS */

.hero-apropos {
    position: relative;
    background-image: url('composants/pictures/hero-apropos.jpg');
    background-size: cover;
    background-position: center;
    min-height: 700px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 50px;
    align-items: center;
}

.hero-apropos .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

.hero-apropos .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-apropos h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.hero-apropos h1 .highlight1 {
    color: #031A47;
}

/* === BLOCS CARTES === */

.hello {
    background-color: #e0e0e0;
}

/* Conteneur global */
.about-container {
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
}

/* Conteneur interne pour les cartes avec fond gris */
.about-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px;
    border-radius: 15px;
}

/* Chaque carte individuelle */
.about-section {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7;
    /* fond blanc */
}

/* Bandeau des titres */
.about-header {
    background-color: #fcb900;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.about-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #031a47;
    font-weight: 700;
}

.about-header .highlight {
    color: #031a47;
    font-weight: 900;
}

/* Contenu des cartes */
.about-content {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: #031a47;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content ul {
    padding-left: 20px;
    margin: 15px 0 0 0;
}

.about-content li {
    margin-bottom: 10px;
}

/* Valeurs (Bloc 2) */
.about-content .value {
    flex: 1 1 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.about-content .value img {
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
}

.about-content .value h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.about-content .value p {
    margin: 0;
    font-size: 0.95rem;
}

/* Bloc CEO */
.ceo-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.ceo-text {
    flex: 0 0 60%;
    max-width: 60%;
}

.ceo-card {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ceo-card img {
    width: 180px;
    height: 180px;

}

/* ===========================
   MEDIA QUERIES
=========================== */

/* Tablettes et petits écrans (768px et moins) */
@media (max-width: 768px) {

    /* HERO */
    .hero-apropos {
        min-height: 500px;
        padding: 30px 20px;
    }

    .hero-apropos h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    /* CONTENEUR CARDS */
    .about-inner {
        padding: 20px;
        gap: 25px;
    }

    /* VALEURS */
    .about-content .value {
        flex: 1 1 100%;
        /* carte pleine largeur sur mobile */
        margin-bottom: 15px;
    }

    /* CEO */
    .ceo-container {
        flex-direction: column;
        /* empile verticalement */
        align-items: center;
        gap: 30px;
    }

    .ceo-text,
    .ceo-card {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .ceo-card img {
        width: 150px;
        height: 150px;
    }

}

/* Très petits écrans (480px et moins) */
@media (max-width: 480px) {

    /* HERO */
    .hero-apropos {
        min-height: 400px;
        padding: 20px 10px;
    }

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

    /* CARDS */
    .about-inner {
        padding: 15px;
        gap: 20px;
    }

    .about-content {
        padding: 20px 10px;
        font-size: 0.95rem;
    }

    /* VALEURS */
    .about-content .value img {
        width: 30px;
        height: 30px;
    }

    .about-content .value h3 {
        font-size: 1rem;
    }

    .about-content .value p {
        font-size: 0.9rem;
    }

    /* CEO */
    .ceo-card img {
        width: 120px;
        height: 120px;
    }
}



/* ===========================
   PAGE NOS SERVICES
=========================== */

/* Hero section */

.hero-nosservices {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('composants/pictures/hero-apropos.jpg');
    overflow: hidden;
    background-size: cover;
}


.hero-nosservices .overlay_nosservices {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

.hero-nosservices .hero-content {
    position: relative;
    z-index: 2;
    /* passe au-dessus de l’overlay */
}

.hero-nosservices h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: white;
    /* tout le texte en blanc */
}

.hero-nosservices h1 .highlight3 {
    color: #FFB400;
}

/* Cartes section */

.hello2 {
    background-color: #e0e0e0;
}

.description {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    /* pour centrer le texte d’intro */
    color: #031A47;
    /* texte bleu par défaut */
    background-color: #e0e0e0;
}


.description .intro-text {
    margin-bottom: 50px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* espace entre les cartes */
    margin-top: 100px;
}

.card {

    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    min-height: 250px;
}

.card h2 {
    background-color: #FFB400;
    /* bandeau jaune */
    color: #031A47;
    /* texte bleu */
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card ul {
    list-style: disc;
    padding-left: 25px;
    /* aligne les puces à gauche */
    margin: 40px 20px 0 20px;
    /* ajoute de l’espace au-dessus de la liste */
    color: #031A47;
}

.card ul li {
    margin-bottom: 10px;
    /* espace entre les items */
}

/* A decouvrir section */


.discover {
    position: relative;
    padding: 80px 20px;
    /* espace autour du texte */
    text-align: left;
    color: white;
    /* texte en blanc */
    background-image: url('composants/pictures/consultants.jpg');
    /* remplace par ton chemin */
    background-size: cover;
    /* l’image couvre toute la section */
    background-position: left;
    background-repeat: no-repeat;

}

.discover h2,
.discover p {
    position: relative;
    /* permet de jouer avec le z-index */
    z-index: 2;
    /* supérieur à l’overlay */
}


.discover .overlay_mains {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

.discover {
    position: relative;
    padding: 80px 20px;
    color: white;
    background-image: url('composants/pictures/consultants.jpg');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
}

.discover .overlay_mains {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

/* Nouvelle partie pour le contenu */
.discover .content {
    position: relative;
    z-index: 2;
    /* texte et bouton au-dessus de l'overlay */
    display: flex;
    /* aligne le texte et le bouton horizontalement */
    align-items: center;
    /* centre verticalement le bouton par rapport au texte */
    justify-content: space-between;
    /* texte à gauche, bouton à droite */
}

/* Styles bouton */
.btn3 {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFB400;
    color: #031A47;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.1s;


}

.btn3:hover {
    background-color: #031A47;
    color: #FFB400;
    cursor: pointer;
}

/* ===========================
   MEDIA QUERIES
=========================== */

/* Tablettes et petits écrans (768px et moins) */
@media (max-width: 768px) {

    /* HERO */
    .hero-nosservices {
        height: 50vh;
        padding: 20px;
    }

    .hero-nosservices h1 {
        font-size: 2rem;
    }

    /* CARDS */
    .cards-container {
        grid-template-columns: 1fr;
        /* cartes empilées */
        gap: 20px;
        margin-top: 50px;
    }

    .card ul {
        margin: 30px 15px 0 15px;
    }

    /* DESCRIPTION */
    .description {
        padding: 30px 15px;
    }

    .description .intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* DISCOVER */
    .discover {
        padding: 50px 15px;
        background-position: center;
    }

    .discover .content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .btn3 {
        align-self: flex-start;
    }
}

/* Très petits écrans (480px et moins) */
@media (max-width: 480px) {

    /* HERO */
    .hero-nosservices {
        height: 40vh;
    }

    .hero-nosservices h1 {
        font-size: 1.5rem;
    }

    /* DESCRIPTION */
    .description .intro-text {
        font-size: 0.95rem;
    }

    /* CARDS */
    .card h2 {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .card ul {
        margin: 25px 10px 0 10px;
        padding-left: 20px;
    }

    /* DISCOVER */
    .discover {
        padding: 30px 10px;
    }

    .btn3 {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}



/* ===========================
   PAGE CONTACT
=========================== */

/* Hero section */

.hero-contact {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('composants/pictures/contact.jpg');
    overflow: hidden;
    background-size: cover;

}


.hero-contact .overlay_contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

/* ===========================
   SECTION CONTACT
=========================== */
.contact {
    display: flex;
    justify-content: flex-start;
    /* formulaire à gauche, infos à droite */
    gap: 50px;
    /* espace entre colonnes */
    padding: 50px 20px;
    flex-wrap: wrap;
    /* passe en colonne sur petits écrans */
    background-color: #f0f0f0;
    /* optionnel, fond léger pour la section */
}

/* --------------------------
   FORMULAIRE
-------------------------- */
.contact-form {
    flex: 1 1 400px;
    /* largeur flexible */
}

form {
    display: flex;
    flex-direction: column;
    /* tout en colonne */
    gap: 15px;
    /* espace entre les champs */
    max-width: 500px;
    /* largeur max du formulaire */
    padding: 20px;
    background-color: #f7f7f7;
    /* fond clair */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-left: 0;
    /* formulaire à gauche */
}

form h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #031A47;
}

form label {
    font-weight: 600;
    margin-bottom: 5px;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    /* permet de redimensionner verticalement */
}

form button {
    padding: 10px 18px;
    /* bouton plus petit */
    font-size: 0.9rem;
    /* texte plus petit */
    background-color: #031A47;
    color: #e6a200;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    align-self: center;
    /* centre le bouton horizontalement */
}

form button:hover {
    background-color: #e6a200;
    color: #031A47;
}

/* ===========================
   SECTION CONTACT
=========================== */
.contact {
    display: flex;
    justify-content: flex-start;
    /* formulaire à gauche, infos à droite */
    gap: 50px;
    /* espace entre colonnes */
    padding: 50px 20px;
    flex-wrap: wrap;
    /* passe en colonne sur petits écrans */
    background-color: #f0f0f0;
    /* optionnel, fond léger */
}

/* --------------------------
   FORMULAIRE
-------------------------- */
.contact-form {
    flex: 1 1 400px;
    /* largeur flexible */
}

form {
    display: flex;
    flex-direction: column;
    /* tout en colonne */
    gap: 15px;
    /* espace entre les champs */
    max-width: 500px;
    /* largeur max du formulaire */
    padding: 20px;
    background-color: #f7f7f7;
    /* fond clair */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-left: 0;
}

form h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #031A47;
}

form label {
    font-weight: 600;
    margin-bottom: 5px;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
}

form button {
    padding: 10px 18px;
    font-size: 0.9rem;
    background-color: #031A47;
    color: #e6a200;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    align-self: center;
}

form button:hover {
    background-color: #e6a200;
    color: #031A47;
}

/* --------------------------
   INFOS DE CONTACT
-------------------------- */
.contact-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.contact-info h2 {
    margin-bottom: 20px;
    color: #031A47;
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* espace entre icône et texte */
}

.contact-info li img {
    width: 24px;
    height: 24px;
}

/* Centrer et agrandir l’icône LinkedIn */
.contact-info li.linkedin-icon {
    display: flex;
    justify-content: center;
    /* centre horizontalement */
    margin-top: 20px;
    /* espace avec le reste */
}

.contact-info li.linkedin-icon img.linkedinnoir {
    width: 60px;
    height: 1000px;
}

/* --------------------------
   MEDIA QUERIES
-------------------------- */
/* ===========================
   HERO CONTACT - RESPONSIVE
=========================== */

/* Tablettes et petits écrans (768px et moins) */
@media (max-width: 768px) {
    .hero-contact {
        height: 40vh;
        /* réduit la hauteur */
        padding: 20px;
    }
}

/* Très petits écrans (480px et moins) */
@media (max-width: 480px) {
    .hero-contact {
        height: 30vh;
        /* encore plus petit */
        padding: 10px;
    }
}

@media (max-width: 1024px) {
    .contact {
        flex-direction: column;
        /* blocs en colonne */
        gap: 30px;
    }

    .contact-form,
    .contact-info {
        flex: 1 1 100%;
        margin-left: 0;
    }

    form {
        max-width: 100%;
    }
}

/* ===========================
   PAGE FORMATION
=========================== */



/* Hero section */
.hero-formation {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('composants/pictures/formation.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-formation .overlay_formation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    z-index: 1;
}

/* Section des formations */
.formation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Texte d’introduction */
.intro-formation {
    font-size: 1.1rem;
    line-height: 1.6rem;
    color: #031A47;
    margin-bottom: 3rem;
    max-width: 800px;
}

/* Grille des cards */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 3rem;
    justify-items: center;
    width: 100%;
    padding: 0 1rem;
}

/* Responsive : 1 colonne sur petits écrans */
@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
}

/* Card principale */
.formation-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 280px;
}

/* Hover effect */
.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Icône de la formation */
.formation-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background-color: #E0F0F9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.formation-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

/* Titre de la formation */
.formation-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Description de la formation */
.formation-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-family: 'regular';
}

/* Niveau de la formation */
.formation-level {
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    font-family: 'Mapolice';
}

/* Couleurs par niveau */
.formation-level.debutant {
    background-color: #DCFCE7;
    /* vert clair */
    color: #065f46;
    /* vert foncé */
}

.formation-level.intermediaire {
    background-color: #FFDBBB;
    /* orange clair */
    color: #D97706;
    /* orange foncé */
}

.formation-level.expert {
    background-color: #FCA5A5;
    /* rouge clair */
    color: #7F1D1D;
    /* rouge foncé */
}

/* Boutons de la formation */
.formation-btn {
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
    margin-top: auto;
    /* pousse le bouton en bas de la card */
}

/* Couleurs des boutons */
.formation-btn.violet {
    background-color: #7c3aed;
}

.formation-btn.violet:hover {
    background-color: #6d28d9;
}

.formation-btn.bleu {
    background-color: #2563eb;
}

.formation-btn.bleu:hover {
    background-color: #1d4ed8;
}

.formation-btn.vert {
    background-color: #16a34a;
}

.formation-btn.vert:hover {
    background-color: #15803d;
}

.formation-btn.rouge {
    background-color: #dc2626;
}

.formation-btn.rouge:hover {
    background-color: #b91c1c;
}

/* ===========================
   POURQUOI NOUS SECTION
=========================== */

.pourquoi {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

.pourquoi h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #031A47;
}

/* Conteneur des blocs */
.pourquoi .partie {
    display: flex;
    justify-content: center;
    gap: 50px;
    /* espace entre les blocs */
    flex-wrap: wrap;
    /* passe à la ligne sur petits écrans */
}

/* Chaque bloc */
.pourquoi .bloc {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    flex: 0 1 280px;
    /* largeur max pour chaque bloc */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Images */
.pourquoi .bloc img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* Titres */
.pourquoi .bloc h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #031A47;
}

/* Paragraphes */
.pourquoi .bloc p {
    max-width: 220px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #031A47;
}

/* Responsive */
@media (max-width: 768px) {
    .pourquoi .partie {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pourquoi .bloc {
        flex: 0 1 100%;
    }
}

/* ===========================
   SECTION PRET
=========================== */

.pret {
    position: relative;
    background-image: url('composants/pictures/formation1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pret .overlay-pret {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 26, 71, 0.4);
    /* sombre mais transparent */
    z-index: 1;
    /* derrière le texte */
}

.pret h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    z-index: 2;
    color:#FFB400

}

.pret p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    z-index: 2;
}

/* Conteneur boutons */
.pret .btn-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.pret .btn-container a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FFB400;
    color: #031A47;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.pret .btn-container a:hover {
    background-color: #031A47;
    color: #FFB400;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
    .pret h2 {
        font-size: 2rem;
    }

    .pret .btn-container {
        flex-direction: column;
        gap: 15px;
    }
}