/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE & VARIABLES (Couleurs JRJ Corporation)
   ========================================================================== */
:root {
    --primary-blue: #0b438c;     /* Bleu foncé du logo */
    --light-blue: #52b1e4;       /* Bleu clair du logo */
    --yellow-gold: #ebb11a;      /* Jaune or du logo */
    --pure-white: #ffffff;       /* Couleur de fond dominante épurée */
    --light-gray: #f8f9fa;       /* Fonds de sections légers */
    --dark-text: #222222;        /* Titres principaux */
    --muted-text: #555555;       /* Paragraphes */
    --font-titles: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--pure-white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* ==========================================================================
   2. COMPOSANTS RÉUTILISABLES (Boutons, Badges, En-têtes)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-titles);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--pure-white);
}

.btn-blue:hover {
    background-color: #08336d;
}

.btn-yellow {
    background-color: var(--yellow-gold);
    color: #000;
}

.btn-yellow:hover {
    background-color: #d19b13;
}

.btn-outline {
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--pure-white);
    color: var(--primary-blue);
}

.w-100 { 
    width: 100%; 
}

.section-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(11, 67, 140, 0.1);
    color: var(--primary-blue);
    font-family: var(--font-titles);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--primary-blue);
}

/* ==========================================================================
   3. EN-TÊTE ET BARRE DE NAVIGATION (Header & Nav)
   ========================================================================== */
header {
    background-color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    border-top-color: var(--yellow-gold);
    border-right-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle span {
    font-family: cursive, sans-serif;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.logo-text h1 {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* ==========================================================================
   4. SECTION HERO / BANNIÈRE PRINCIPALE
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, rgba(11, 67, 140, 0.95), rgba(82, 177, 228, 0.85)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1200') no-repeat center center/cover;
    color: var(--pure-white);
    text-align: center;
    padding: 100px 0;
}

.hero-content h2 {
    font-family: var(--font-titles);
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--yellow-gold);
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================================================
   5. SECTION À PROPOS
   ========================================================================== */
.about {
    background-color: var(--pure-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted-text);
    margin-bottom: 25px;
}

.about-image-placeholder {
    height: 350px;
    background-color: var(--light-gray);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.geo-shape-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(11, 67, 140, 0.1);
    transform: rotate(45deg);
    top: -50px;
    left: -50px;
}

.geo-shape-2 {
    position: absolute;
    width: 300px;
    height: 80px;
    background-color: rgba(235, 177, 26, 0.15);
    transform: rotate(-25deg);
    bottom: 20px;
    right: -50px;
}

/* ==========================================================================
   6. SECTION NOS SERVICES
   ========================================================================== */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--pure-white);
    padding: 35px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(11, 67, 140, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(11, 67, 140, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.service-card h3 {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--muted-text);
}

/* ==========================================================================
   7. SECTION NOS PARTENAIRES (Harmonisée & taille de logos réduite)
   ========================================================================== */
.partners-section {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.partners-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.partner-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--pure-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 12px;
    width: 140px;  
    height: 80px;  
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    transition: var(--transition);
}

.partner-logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 67, 140, 0.06);
    border-color: var(--light-blue);
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo-box span {
    font-size: 0.72rem;
    color: var(--muted-text);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   8. SECTION NOTRE ÉQUIPE (Mise en page fluide & ultra propre)
   ========================================================================== */
.team-section {
    background-color: var(--pure-white);
    overflow: hidden;
}

/* Alignement côte à côte du DG et du Coordonnateur */
.dg-exclusive-block {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap; 
    gap: 30px;
    margin-bottom: 50px;
}

.dg-card {
    background: var(--pure-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    transition: var(--transition);
}

/* Format carré strict pour les photos des dirigeants */
.dg-img-box.square-frame {
    width: 130px;        
    height: 130px;       
    margin: 0 auto 15px auto;
    border-radius: 0px;  
    border: 3px solid var(--light-blue); 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f6;
    overflow: hidden;    
}

.dg-img-box.square-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
}

.dg-img-box.square-frame i {
    font-size: 3.5rem;   
    color: var(--dark-text);
}

.btn-more-dg {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--light-blue);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: var(--transition);
}

.btn-more-dg:hover {
    background-color: #3ca2d6;
}

.staff-header {
    text-align: center;
    margin-bottom: 30px;
}

.staff-header h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    font-family: var(--font-titles);
}

/* Grille automatique adaptative (3, 4 ou 5 par ligne selon la largeur du PC) */
.staff-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    justify-content: center;
}

.staff-compact .team-card {
    padding: 20px 15px; 
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    border-top: 4px solid transparent;
    
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

.staff-compact .team-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--primary-blue);
    background-color: var(--pure-white);
    box-shadow: 0 10px 25px rgba(11, 67, 140, 0.08);
}

.staff-compact .member-img-box {
    width: 80px;  
    height: 80px;
    border-radius: 50%;
    background-color: rgba(11, 67, 140, 0.05);
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(11, 67, 140, 0.1);
    transition: var(--transition);
}

.staff-compact .team-card:hover .member-img-box {
    background-color: var(--primary-blue);
}

.staff-compact .member-img-box i {
    font-size: 2rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.staff-compact .team-card:hover .member-img-box i {
    color: var(--pure-white);
}

.staff-compact .member-info h4 {
    font-family: var(--font-titles);
    font-size: 1rem; 
    color: var(--dark-text);
    margin-bottom: 5px;
}

.staff-compact .member-info .role {
    font-size: 0.85rem;
    color: var(--muted-text);
    font-weight: 600;
}

/* --- KEYFRAMES DES ANIMATIONS CLASSIQUES --- */
@keyframes animationHaut {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animationGauche {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes animationDroite {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes animationZoom {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.anim-fade-up { animation-name: animationHaut; }
.anim-fade-left { animation-name: animationGauche; }
.anim-fade-right { animation-name: animationDroite; }
.anim-zoom-in { animation-name: animationZoom; }

/* Délais cascade pour l'équipe */
.staff-compact .team-card:nth-child(1) { animation-delay: 0.1s; }
.staff-compact .team-card:nth-child(2) { animation-delay: 0.2s; }
.staff-compact .team-card:nth-child(3) { animation-delay: 0.3s; }
.staff-compact .team-card:nth-child(4) { animation-delay: 0.4s; }
.staff-compact .team-card:nth-child(5) { animation-delay: 0.5s; }
.staff-compact .team-card:nth-child(6) { animation-delay: 0.6s; }
.staff-compact .team-card:nth-child(7) { animation-delay: 0.7s; }

/* ==========================================================================
   9. SECTION CONTACT & FORMULAIRE
   ========================================================================== */
.contact {
    background-color: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.info-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.3rem;
    color: var(--primary-blue);
    background-color: var(--pure-white);
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.info-item h4 {
    font-family: var(--font-titles);
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--muted-text);
}

.main-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-form-container {
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-form-container h3 {
    font-family: var(--font-titles);
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 67, 140, 0.1);
}

/* ==========================================================================
   10. PIED DE PAGE (Footer)
   ========================================================================== */
footer {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    text-align: center;
}

.footer-bottom {
    padding: 30px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   11. ADAPTATION ÉCRANS (Responsive Design)
   ========================================================================== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    .about-image-placeholder {
        display: none; 
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .staff-compact {
        /* Aligne automatiquement 2 personnes côte à côte sur écran de téléphone vertical */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .dg-exclusive-block {
        flex-direction: column; 
        align-items: center;
    }
    
    .dg-card {
        max-width: 100%;
    }
}

/* ==========================================================================
   PAGE RÉALISATIONS / PORTFOLIO STYLES
   ========================================================================== */
.portfolio-section {
    background-color: var(--pure-white);
    padding: 40px 0;
}

/* Barre de filtres */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--dark-text);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
}

/* Grille des cartes */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(11, 67, 140, 0.08);
}

/* Boîte d'image avec effet zoom au survol */
.portfolio-img-box {
    position: relative;
    height: 230px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img-box img {
    transform: scale(1.08);
}

/* Effet overlay au survol */
.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 67, 140, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-view-icon {
    width: 45px;
    height: 45px;
    background-color: var(--yellow-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Descriptif sous l'image */
.portfolio-info {
    padding: 20px;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.portfolio-info h4 {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    color: var(--dark-text);
}

/* Responsive mobile */
@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}
/* ==========================================================================
   FENÊTRE MODALE DÉTAILS PROJET
   ========================================================================== */
.project-modal {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Conteneur principal blanc */
.modal-content {
    background-color: var(--pure-white);
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Bouton de fermeture */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    color: var(--dark-text);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.close-modal:hover {
    color: var(--primary-blue);
}

/* Disposition en 2 colonnes */
.modal-body-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.modal-gallery {
    height: 450px;
    background-color: #000;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details-side {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.modal-details-side h3 {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-top: 5px;
}

.project-meta-divider {
    width: 50px;
    height: 4px;
    background-color: var(--yellow-gold);
    margin: 15px 0 20px 0;
    border-radius: 2px;
}

#modal-description {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Caractéristiques en bas */
.project-specs {
    background-color: var(--light-gray);
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
}

.spec-item {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.spec-item:last-child {
    margin-bottom: 0;
}
.spec-item i {
    color: var(--primary-blue);
    margin-right: 6px;
}

/* Animation d'ouverture */
.animate-zoom {
    animation: zoomEffect 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zoomEffect {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Adaptabilité Mobile */
@media (max-width: 768px) {
    .modal-body-layout {
        grid-template-columns: 1fr;
    }
    .modal-gallery {
        height: 250px;
    }
    .modal-details-side {
        padding: 25px 20px;
    }
    .project-modal {
        align-items: flex-start;
        overflow-y: auto;
    }
}