/* =========================================
   VARIABLES (Couleurs exactes du flyer)
========================================= */
:root {
    --color-main-blue: #183e6b;       /* Bleu profond du flyer */
    --color-flyer-light-blue: #93b9c6; /* Bleu clair du bandeau compétence */
    --color-accent-blue: #5285a4;     
    --color-orange: #c6914b;          /* Couleur Soins & Confort */
    --color-green: #7d9e76;           /* Couleur Administration (ajusté flyer) */
    --color-light-blue-bg: #f2f7fb;   /* Fond très clair des services */
    --color-text-dark: #2c3e50;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* =========================================
   BASE & RESET
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitaires texte/fond */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.color-main-blue { color: var(--color-main-blue); }
.color-accent-blue { color: var(--color-accent-blue); }
.text-orange { color: var(--color-orange); }
.text-green { color: var(--color-green); }
.mt-20 { margin-top: 20px; }

.bg-deep-blue { background-color: var(--color-main-blue); }
.bg-light-blue { background-color: var(--color-light-blue-bg); }
.bg-white { background-color: #fff; }

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo-nav {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--color-main-blue);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.5rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-orange);
}

/* =========================================
   HERO (Style Flyer 100% Fidèle)
========================================= */
.hero-flyer {
    background-color: #fff;
    padding-top: 65px; /* Espace sous la navbar fixe */
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-container {
    position: relative; 
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: 380px;
    overflow: hidden;
}

.hero-blue-shape {
    background-color: var(--color-main-blue);
    color: white;
    width: 100%;
    text-align: left;

    /* Trapèze : bord droit diagonal
       Haut plat à 82%, bas plat à 65% 
       → la diagonale est centrée vers 73.5% */
    clip-path: polygon(0 0, 82% 0, 65% 100%, 0 100%);

    /* Padding : texte à gauche, dégagement avant la diagonale */
    padding: 80px 42% 55px 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-blue-shape h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0px;
}

/* Le slogan */
.hero-blue-shape h2 {
    font-size: 3rem;
    font-weight: 500;
    margin: 8px 0 28px;
}

/* Bouton Hero */
.btn-hero {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
    background-color: white;
    border: 2px solid #fff;
    color: #183e6b;
    align-self: flex-start;
    font-size: 1.5rem;
}

.btn-hero:hover {
    background-color: var(--color-flyer-light-blue);
    border-color: var(--color-flyer-light-blue);
    transform: translateY(-2px);
}

/* Positionnement logo SUR la ligne diagonale
   clip-path: polygon(0 0, 82% 0, 65% 100%, 0 100%)
   À mi-hauteur (50%) : X = 65% + (82%-65%) * 0.5 = 73.5% */
.hero-logo {
    position: absolute;
    left: 70.5%;
    top: 15%;
    transform: translate(-50%, -50%);
    width: 195px;
    z-index: 5;
    filter: drop-shadow(2px 4px 12px rgba(0,0,0,0.12));
}

/* =========================================
   BANDEAU DOUBLE COMPÉTENCE
========================================= */
.competence-band {
    background-color: var(--color-flyer-light-blue);
    padding: 30px 20px;
}

.comp-title {
    color: var(--color-main-blue);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.comp-details {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1px;
}

/* =========================================
   SECTIONS GÉNÉRALES
========================================= */
section {
    padding: 30px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.5rem;
    font-weight: 500;
}

/* =========================================
   SECTION ACCOMPAGNEMENTS (Services)
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border-top: 6px solid transparent;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-5px); }

.card-orange { border-top-color: var(--color-orange); }
.card-blue { border-top-color: var(--color-main-blue); }
.card-green { border-top-color: var(--color-green); }

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.service-icon-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon-placeholder img {
    max-width: 60%;
    height: auto;
}

.orange-bg { background-color: rgba(198, 145, 75, 0.15); border: 2px solid var(--color-orange); }
.blue-bg { background-color: rgba(24, 62, 107, 0.1); border: 2px solid var(--color-main-blue); }
.green-bg { background-color: rgba(125, 158, 118, 0.15); border: 2px solid var(--color-green); }

.service-card ul {
    list-style: none;
    margin-top: auto;
    text-align: left;
}

.service-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    font-size: 1.05rem;
    color: var(--color-main-blue);
    font-weight: 500;
}

.service-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.card-orange ul li::before { color: var(--color-orange); }
.card-blue ul li::before { color: var(--color-main-blue); }
.card-green ul li::before { color: var(--color-green); }

/* =========================================
   SECTION QUI SUIS-JE
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.values {
    margin-top: 30px;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
}

/* =========================================
   SECTION CONTACT
========================================= */
.contact-section {
    /* On remet un padding en haut et en bas pour que la section respire avec son nouveau fond */
    padding: 30px 0 50px 0; 
}

.contact-slogan {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    
    /* Le nouveau design du slogan */
    background-color: var(--color-main-blue); /* Fond bleu foncé #183e6b */
    color: #fff; /* Texte en blanc pour la lisibilité */
    padding: 15px 40px; /* Marges internes */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Petite ombre légère */
}

.secteurs {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--color-main-blue);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    
    /* On passe les boutons en blanc pour qu'ils contrastent avec le fond de la section */
    background: #fff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Légère ombre pour les détacher */
    transition: background 0.3s, transform 0.3s, color 0.3s;
}

.contact-item:hover {
    background: var(--color-main-blue);
    color: #fff;
    transform: scale(1.05);
}

/* =========================================
   ANIMATIONS & FOOTER
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 0.95rem;
}

/* =========================================
   RESPONSIVE (Téléphones & Tablettes)
========================================= */
@media (max-width: 1024px) {
    .hero-blue-shape h1 { font-size: 3.2rem; }
    .hero-blue-shape h2 { font-size: 1.8rem; }
    .hero-logo { width: 170px; }
    .hero-blue-shape { padding: 50px 40% 50px 40px; }
    .comp-details { font-size: 2.1rem; }
}

@media (max-width: 768px) {
    .nav-links a { font-size: 0.8rem; }
    .hero-flyer {
        padding-top: 65px;
    }
    .hero-container {
        flex-direction: column;
        padding: 60px 0px 0px 0px;
    }
    .hero-blue-shape {
        width: 100%;
        clip-path: none;
        padding: 65px 20px 70px 20px;
        text-align: center;
        align-items: center;
    }
    .hero-blue-shape h1 { font-size: 2.8rem; }
    .hero-blue-shape h2 { font-size: 1.6rem; }
    .btn-hero {
        align-self: center;
    }
   .hero-logo {
        /* On supprime les règles de positionnement du mode ordinateur */
        position: static; /* Se comporte comme un élément normal */
        top: auto;
        right: auto;
        transform: none;
        margin: -50px auto auto;
        
        /* TAILLE DU LOGO SUR MOBILE */
        width: 150px; 
        height: auto;
        
        display: block;
    }

    .section-title { font-size: 1.8rem; }

    .section-intro {font-size: 1.3rem; text-align: justify;}
    .comp-title { font-size: 1.6rem; }
    .comp-details { font-size: 1.2rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-container { flex-direction: column; gap: 10px; }
    .contact-info { flex-direction: column; gap: 15px; align-items: center; }
    .contact-slogan { font-size: 1.4rem; padding: 12px 25px; }
    
}