﻿/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #a33e4d; /* Rouge bordeaux */
    --dark-bg: #262626;       /* Fond gris foncé (ou #121212 selon ton choix précédent) */
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-light: #f4f4f4;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. COMPOSANTS (BOUTONS)
   ========================================= */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: #822e3b; }

.btn-dark {
    background-color: var(--primary-color);
    border-radius: 30px;
    margin-top: 10px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.header {
    padding: 15px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    max-height: 90px;
    width: auto;
    display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}
.nav a:hover { color: var(--primary-color); }

.btn-contact-nav {
    background: var(--dark-bg);
    color: white !important;
    padding: 8px 15px;
    font-weight: 500;
}

/* Burger Mobile */
.burger { display: none; cursor: pointer; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding-top: 60px;
    padding-bottom: 0;
    background: white;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-bottom: 0;
}

.hero-text {
    flex: 1;
    padding-bottom: 40px;
} 

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #222;
    text-transform: none;
}

.hero-text p {
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: justify;
    font-weight: 700;
}

.hero-image {
    flex: 1;
    text-align: right;
    margin-bottom: 0;
    position: relative;
    align-self: flex-end; /* Force l'image en bas */
}

.hero-image img {
    box-shadow: none;
    border-radius: 0;
    display: inline-block;
    vertical-align: bottom;
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* =========================================
   5. SECTION MISSIONS (La Boîte Noire)
   ========================================= */
.missions-wrapper {
    padding: 0 20px 60px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.missions-box-container {
    background-color: var(--dark-bg); /* Ou #121212 selon ton choix */
    color: var(--text-light);
    border-radius: 40px;
    padding: 20px 50px;
    max-width: 1300px;
    width: 100%;
}

.section-header { 
  text-align: center; 
  margin-bottom: 20px; 

}
.section-header .subtitle { 
  color: #ccc; 
  font-size: 0.9rem; 
  letter-spacing: 2px; 
}

.section-header h2 { 
  color: var(--primary-color); 
  margin: 10px 0; 
  font-size: 2rem; 
}

.separator { 
  width: 60px; 
  height: 2px; 
  background: var(--primary-color); 
  margin: 0 auto; 
}

/* --- Grille des 3 petites boîtes (Haut) --- */
.missions-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.mission-item {
    background: #333;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    position: relative;
}
.mission-item p { font-family: 'Montserrat', sans-serif; font-weight: 600; margin: 0; }
.mission-item .triangle { color: var(--primary-color); position: absolute; bottom: 8px; font-size: 0.8rem; }

/* =========================================
   6. EXPERTISE (Layout type Figma)
   ========================================= */
.expertise-container {
    background-color: transparent; /* S'adapte au fond de la boîte noire */
    color: #ffffff;
    padding-top: 10px;      /* On colle le haut */
    border-radius: 20px;
}

/* --- Lignes Globales --- */
.expert-top-row,
.expert-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.expert-top-row { margin-bottom: 40px; }

/* --- Colonnes Gauche (Titre & Photo) --- */
.expert-title-col, 
.expert-image-col {
    flex: 0 0 40%;   /* Fixe la largeur */
    max-width: 40%;
}

/* --- Colonnes Droite (Intro & Bio) --- */
.expert-intro-col, 
.expert-bio-col {
    flex: 0 0 55%;   /* Fixe la largeur */
    max-width: 55%;
}

/* --- Styles Typographiques Expertise --- */
.expert-title-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;      /* Gros titre */
    font-weight: 700;
    text-transform: none;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

.expert-intro-col {
    font-size: 0.9rem;      /* Texte intro "en gros" */
    font-weight: 400;
    line-height: 1.5;
    color: #afafaf;
    text-align: justify; 
   hyphens: auto;       /* Coupe les mots proprement en fin de ligne */
    -webkit-hyphens: auto; 
}

.expert-intro-col p { 
  margin-top: 0; 
  margin-bottom: 5px; 
}

/* --- Styles Photo & Bio --- */
.photo-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.expertise-list { list-style: none; padding: 0; margin: 0; }
.expertise-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #eeeeee;
}
.expertise-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
}

/* Anciennes classes conservées au cas où (Background shape) */
.expertise-image { flex: 1; position: relative; }
.bg-shape {
    position: absolute
}

  /* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact {
    padding: 10px 0;
    background: white;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

/* --- COLONNE 1 : FORMULAIRE --- */
.contact-form-area {
    flex: 1.2;
}

.contact-form-area h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 50px;
    font-weight: 500;
    line-height: 1;
}

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

.form-group input, 
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    outline: none;
    background: transparent;
    resize: none;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-submit:hover { background-color: #822e3b; }

/* --- COLONNE 2 : INFOS --- */
.contact-info-area {
    flex: 0.6;
    padding-top: 100px; /* Aligne avec les champs sur PC */
    display: flex;
    flex-direction: column; /* Les infos sont l'une sous l'autre */
    gap: 40px; /* Espace entre Contact et Basé à */
    text-align: left; /* Aligné à gauche sur PC */
}

.info-block {
    margin-bottom: 0;
}

.info-block strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.info-block p {
    color: #555;
    line-height: 1.6;
}

/* --- COLONNE 3 : IMAGE --- */
.contact-image-area {
    flex: 1;
}
.contact-image-area img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border: 3px solid #222;
    border-radius: 0 80px 0 80px;
}

/* =========================================
   8. REFERENCES (Slider 3D Coverflow)
   ========================================= */
.references {
    padding: 20px 0 20px;
    overflow: hidden; /* Important pour ne pas avoir de scroll horizontal */
    text-align: center;
}

.references h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0px; /* C'était 60px. On colle beaucoup plus le titre */
    font-size: 2rem; /* On réduit un peu la taille du texte aussi */
    color: #222;
    text-transform: uppercase;
    
}

.carousel-3d-container {
    position: relative;
    max-width: 1000px; /* Largeur max de la zone slider */
    margin: 0 auto;
    height: 400px; /* Hauteur suffisante pour les cartes */
    perspective: 1000px; /* Donne l'effet de profondeur 3D */
}

.carousel-3d-track {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- LA CARTE (Base) --- */
.carousel-card {
    position: absolute;
    width: 450px; /* Largeur de la carte */
    height: 280px; /* Hauteur de la carte */
    border-radius: 20px;
    background-size: cover; /* L'image remplit toute la carte */
    background-position: center;
    background-repeat: no-repeat;
    
    /* Transition fluide */
    transition: all 0.5s ease-in-out;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* L'image de fond */
.card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Le filtre noir par-dessus l'image pour contraster */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    z-index: 2;
}

/* Le contenu (Logo + Texte) */
.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.card-logo {
    max-width: 120px; /* Taille du blason */
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

/* --- ETATS DES SLIDES (C'est là que ça se joue) --- */

/* 1. L'ACTIF (Au centre) */
.carousel-card.active {
    z-index: 10;
    transform: translateX(0) scale(1.1); /* Grossit au centre */
    opacity: 1;
    border: 2px solid white; /* Petit bord blanc sympa pour faire ressortir */
}

/* 2. LE PRECEDENT (À gauche) */
.carousel-card.prev {
    z-index: 5;
    transform: translateX(-380px) scale(0.85); /* Se décale à gauche */
    opacity: 0.5; /* Devient transparent */
}

/* 3. LE SUIVANT (À droite) */
.carousel-card.next {
    z-index: 5;
    transform: translateX(380px) scale(0.85); /* Se décale à droite */
    opacity: 0.5;
}

/* Les autres (cachés derrière) */
.carousel-card.hidden {
    z-index: 1;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none; /* On ne peut pas cliquer dessus */
}

/* --- BOUTONS & DOTS --- */
.carousel-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #bbb;
    cursor: pointer;
    transition: 0.3s;
}
.control-btn:hover { color: var(--primary-color); }

.dots-container { display: flex; gap: 10px; }
.dot {
    width: 10px; height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: var(--primary-color); /* Ton violet/rouge */
    transform: scale(1.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .carousel-card {
        width: 280px;
        height: 180px;
    }
    .carousel-card.prev { transform: translateX(-140px) scale(0.8); }
    .carousel-card.next { transform: translateX(140px) scale(0.8); }
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #1a1a1a; /* Noir profond (plus foncé que le gris anthracite) */
    color: #cccccc;            /* Texte gris clair pour la finesse */
    padding: 80px 0 60px;      /* Espacement généreux */
    font-size: 0.95rem;
    font-weight: 300;          /* Police fine */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 60px; /* Bel espace entre les colonnes */
    align-items: start;
}

/* Titres des colonnes */
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600; /* Un peu gras pour le titre */
    letter-spacing: 1px; /* Espacement des lettres pour le style */
    text-transform: uppercase;
}

/* Colonne À Propos - Texte justifié */
.about-col p {
    line-height: 1.8;
    text-align: justify; /* Pour faire le bloc carré propre */
    color: #dcdcdc;
}

/* Listes (Domaines & Contact) */
.footer-col ul li {
    margin-bottom: 18px; /* Espace entre les lignes */
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre l'icône et le texte */
    line-height: 1.4;
}

/* Les Icônes Rouges */
.footer-col i {
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 20px; /* Pour que les textes soient bien alignés verticalement */
    text-align: center;
}

/* --- Responsive Mobile --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        text-align: center;
        gap: 50px;
    }

    .about-col p {
        text-align: center; /* Centré sur mobile */
    }

    .footer-col ul li {
        justify-content: center; /* Centre les listes */
    }
}

/* =========================================
   10. RESPONSIVE (TABLETTE & MOBILE)
   ========================================= */
/* On déclenche le menu mobile plus tôt (1100px) pour éviter que le texte ne se casse */
@media (max-width: 1100px) {
    
    /* --- HEADER & NAV --- */
    .navbar {
        /* On garde le logo à gauche et le burger à droite */
        justify-content: space-between;
        padding: 0 10px;
    }

    /* Le Menu (caché par défaut) */
    .nav {
        position: absolute;
        top: 100%; /* Juste sous le header */
        left: 0;
        width: 100%;
        background: white;
        padding: 40px 20px; /* Plus d'espace */
        display: none; /* Caché */
        border-bottom: 4px solid var(--primary-color); /* Jolie bordure en bas */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: block; /* Devient visible quand on clique */
        animation: slideDown 0.3s ease-out; /* Petite animation d'arrivée */
    }

    .nav ul {
        flex-direction: column; /* Les liens les uns sous les autres */
        gap: 25px;
        align-items: center; /* Centre le texte */
    }

    .nav a {
        font-size: 1.1rem; /* Texte un peu plus gros sur mobile */
    }

    /* Le Burger (Les 3 traits) */
    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }
    .burger span {
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        transition: 0.3s;
        border-radius: 3px;
    }

    /* Animation du Burger quand il est ouvert (Optionnel : fait une croix) */
    .burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .burger.open span:nth-child(2) { opacity: 0; }
    .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


    /* --- RESTE DU SITE (Adaptations) --- */
    
    /* Hero Section */
    .hero-content { flex-direction: column; text-align: center; gap: 40px; }
    .hero-image { display: none; } /* On cache la photo du hero sur petit écran */
    
    /* Missions */
    .missions-wrapper { padding: 0 20px; }
    .missions-box-container { border-radius: 20px; padding: 40px 20px; }
    .missions-grid-top { grid-template-columns: 1fr; gap: 15px; } /* 1 colonne */
    
    /* Expertise */
    .expert-top-row, 
    .expert-bottom-row { flex-direction: column; gap: 30px; }
    
    .expert-title-col, .expert-image-col, 
    .expert-intro-col, .expert-bio-col {
        max-width: 100%; flex: auto; width: 100%;
    }
    .expert-image-col { order: -1; } /* Remonte la photo de Pierre au dessus de sa bio */

    /* Contact */
/* --- CONTACT MOBILE (Centré et Espacé) --- */
    .contact-layout { 
        flex-direction: column; 
        gap: 50px; 
    }
    
    .contact-form-area h2 {
        text-align: center; /* Centre le titre "CONTACTEZ MOI" */
        font-size: 2.5rem;
    }

    /* Centre le bouton Envoyer */
    .contact-form-area form {
        text-align: center; 
    }

    /* Gestion des infos (Contact + Basé à) */
    .contact-info-area {
        padding-top: 0;
        margin-top: 20px; /* Espace sous le bouton envoyer */
        
        align-items: center; /* Centre horizontalement */
        text-align: center;  /* Centre le texte */
        
        gap: 60px; /* ESPACE PLUS GRAND entre les deux blocs d'infos */
    }
    
    /* Cache l'image sur mobile */
    .contact-image-area { display: none; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col ul li { justify-content: center; }
}

/* Petite animation pour le menu mobile */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}