
/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* Variables de couleurs */
:root {
    --bleu-nuit: #1a2b4c;
    --or: #c5a880;
    --or-fonce: #a88d68;
    --blanc: #ffffff;
    --gris-clair: #f9f9f9;
    --texte-sombre: #333333;
}

/* Réinitialisation et base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    color: var(--texte-sombre);
    line-height: 1.6;
    background-color: var(--blanc);
    overflow-x: hidden;
}
h1, h2, h3, h4, .nombre { font-family: 'Playfair Display', serif; color: var(--bleu-nuit); }

/* Barre de navigation */
header {
    background-color: var(--bleu-nuit); padding: 15px 5%; display: flex; justify-content: space-between;
    align-items: center; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Image Logo de Benjamin dans le menu */
.logo-image-menu {
    height: 130px; /* On rend l'image vraiment grande pour bien lire le texte */
    margin: -45px 0; /* L'ASTUCE : on "efface" le vide transparent en haut et en bas pour ne pas élargir la barre bleue ! */
    width: auto;
    filter: brightness(0) invert(1); 
    transition: transform 0.3s ease;
}
.logo-site:hover .logo-image-menu { transform: scale(1.05); }

/* --- Menu de navigation (Style Dior) --- */
nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

/* Style des textes du menu (Le Cabinet, Contact...) */
nav a {
    color: var(--blanc); 
    text-decoration: none; /* Enlève le vieux trait souligné */
    font-size: 0.9rem; 
    text-transform: uppercase; /* Remet les majuscules chics */
    letter-spacing: 1px; 
    position: relative; 
    padding-bottom: 5px;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s ease;
}

/* Le petit trait doré qui apparaît au survol */
nav a::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 0;
    background-color: var(--or); 
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--or); }

/* --- Option de langue FR | EN alignée au menu --- */
li.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3); /* Le trait vertical */
    padding-left: 20px;
}

/* Style spécifique pour FR et EN */
li.lang-switch a {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    padding-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}

li.lang-switch a::after {
    display: none; /* Désactive le trait doré au survol juste pour la langue */
}

li.lang-switch a.active {
    color: var(--or);
    font-weight: bold;
    pointer-events: none;
}

li.lang-switch .separator {
    color: var(--blanc);
    opacity: 0.5;
}
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--or); }

/* Sections communes */
section { padding: 120px 5% 60px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; position: relative; }
h2::after {
    content: ''; width: 60px; height: 3px; background-color: var(--or);
    display: block; margin: 15px auto 0; transition: width 0.5s ease;
}
section:hover h2::after { width: 100px; }
.mt-20 { margin-top: 20px; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0, 0); }

/* Style des vraies photos */
.image-wrapper {
    width: 100%; height: 100%; min-height: 400px; border-radius: 8px; overflow: hidden;
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.photo-competence {
    width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
    transition: transform 0.6s ease;
}
.image-zoom:hover .photo-competence, .image-hover:hover .photo-competence { transform: scale(1.05); }

/* Section Cabinet */
.section-cabinet { margin-top: 60px; }
.cabinet-header { text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center;}

/* Titre avec le logo national des avocats */
.titre-avec-logo {
    position: relative;
    display: inline-block; /* La boîte fait exactement la taille du texte */
    margin-bottom: 5px;
}

.titre-avec-logo div {
    text-align: center; /* Centre le titre et le sous-titre parfaitement ensemble */
}

.logo-national {
    position: absolute;
    right: 100%; /* Pousse le logo totalement à gauche, en dehors du texte */
    top: 50%;
    transform: translateY(-50%); /* Garde le logo bien centré en hauteur */
    margin-right: 40px; /* L'écart souhaité vers la gauche */
    height: 70px;
    width: auto;
}

.cabinet-header h1 { font-size: 3rem; margin-bottom: 5px; text-align: center; }
.cabinet-header .sous-titre { font-size: 2rem; color: var(--or); margin-bottom: 10px; text-align: center; }
.cabinet-header .sous-titre::after { display: none; }
.cabinet-header p { font-size: 1.2rem; color: var(--texte-sombre); margin-top: 15px; text-align: center; }

/* Chiffres clés */
.chiffres-cles {
    display: flex; justify-content: space-around; background-color: var(--bleu-nuit); color: var(--blanc);
    padding: 40px 20px; border-radius: 10px; margin-bottom: 60px; text-align: center; box-shadow: 0 15px 30px rgba(26, 43, 76, 0.2);
}
.chiffre { display: flex; flex-direction: column; }
.chiffre .nombre { font-size: 3.5rem; color: var(--or); margin-bottom: 10px; }
.chiffre .libelle { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }

/* Présentation Avocat */
.presentation-avocat { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center; }
.texte-biographie p { margin-bottom: 15px; text-align: justify; }

/* Frise chronologique */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--bleu-nuit); }
.timeline-item { margin-bottom: 25px; position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -37px; top: 0; width: 12px; height: 12px;
    border-radius: 50%; background-color: var(--or); border: 3px solid var(--blanc);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.timeline-item:hover::before { background-color: var(--bleu-nuit); transform: scale(1.3); }
.timeline-date { font-weight: 700; color: var(--bleu-nuit); font-size: 1.2rem; }
.portrait { height: 450px; } /* Donne une belle hauteur à la photo de Benjamin */

/* Section Valeurs */
.section-valeurs { background-color: var(--gris-clair); }
.valeurs-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.valeur-card {
    background: var(--blanc); padding: 40px; border-radius: 8px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.valeur-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.valeur-card i { font-size: 3rem; color: var(--or); margin-bottom: 20px; transition: transform 0.3s ease;}
.valeur-card:hover i { transform: scale(1.1); color: var(--bleu-nuit); }
.valeur-card h3 { margin-bottom: 15px; font-size: 1.3rem;}
.valeur-card p { text-align: justify; font-size: 0.95rem; }

/* Section Compétences : Disposition Horizontale avec ICÔNES */
.competences-list { display: flex; flex-direction: column; gap: 60px; }
.competence-horizontal { 
    display: flex; gap: 50px; align-items: stretch; background: var(--blanc);
    padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--bleu-nuit);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.competence-horizontal:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--or);
}
.competence-horizontal.reverse { 
    flex-direction: row-reverse; border-left: none; border-right: 4px solid var(--bleu-nuit); 
}
.competence-horizontal.reverse:hover { border-right: 4px solid var(--or); }

.competence-icon-col { 
    flex: 0 0 25%; display: flex; align-items: center; justify-content: center; 
    background-color: var(--gris-clair); border-radius: 8px; 
    border: 1px solid rgba(197, 168, 128, 0.3); min-height: 250px;
    transition: background-color 0.4s ease;
}
.competence-horizontal:hover .competence-icon-col { background-color: var(--bleu-nuit); }
.icon-competence { font-size: 7rem; color: var(--bleu-nuit); transition: transform 0.4s ease, color 0.4s ease; }
.competence-horizontal:hover .icon-competence { transform: scale(1.1); color: var(--or); }

.competence-text-col { flex: 1; }
.competence-text-col h3 { font-size: 1.8rem; margin-bottom: 20px; }
.competence-text-col h4 { font-size: 1.2rem; color: var(--bleu-nuit); margin-top: 20px; margin-bottom: 10px; }
.competence-text-col p { margin-bottom: 15px; text-align: justify; font-size: 1rem; }

.liste-social { margin: 15px 0; padding-left: 0; list-style: none;}
.liste-social li { margin-bottom: 15px; position: relative; padding-left: 25px; text-align: justify; font-size: 1rem;}
.liste-social i { color: var(--or); position: absolute; left: 0; top: 5px; }
/* --- Section Accompagnement (Le processus étape par étape) --- */
.section-accompagnement {
    background-color: var(--bleu-nuit);
    color: var(--blanc);
}

.section-accompagnement h2 {
    color: var(--blanc);
}

.etapes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.etape-box {
    position: relative;
    padding-top: 30px;
    border-top: 2px solid rgba(197, 168, 128, 0.2); /* Fine ligne dorée discrète */
    transition: all 0.4s ease;
}

.etape-box:hover {
    border-top: 2px solid var(--or);
    transform: translateY(-10px); /* L'effet qui soulève la case au survol */
}

/* Le gros numéro de luxe en filigrane */
.etape-numero {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--or);
    opacity: 0.3;
    position: absolute;
    top: -45px;
    left: 0;
    transition: opacity 0.4s ease;
}

.etape-box:hover .etape-numero {
    opacity: 0.8; /* Le numéro s'illumine au survol */
}

.etape-box h3 {
    color: var(--or);
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.etape-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: justify;
}

/* Adaptation pour les téléphones (juste pour cette section) */
@media (max-width: 900px) {
    .etapes-container {
        grid-template-columns: 1fr; /* Sur téléphone, tout passe sur une seule colonne */
        gap: 60px;
    }
    .etape-numero {
        top: -35px;
    }
}
/* Section Honoraires */
.section-honoraires { background-color: var(--gris-clair); }
.intro-honoraires { text-align: center; max-width: 800px; margin: 0 auto 40px; font-size: 1.1rem; }
.honoraires-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.honoraires-box {
    background: var(--blanc); padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}
.honoraires-box:hover { transform: scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.taux-discret {
    font-size: 1.1rem; color: var(--bleu-nuit); margin: 20px 0; padding-left: 15px; border-left: 3px solid var(--or);
    background-color: rgba(197, 168, 128, 0.05); padding: 10px 15px; border-radius: 0 5px 5px 0;
}
.taux-discret strong { font-weight: 700; color: var(--or-fonce); }
.liste-honoraires { list-style: none; margin-top: 15px; }
.liste-honoraires li { margin-bottom: 10px; display: flex; align-items: flex-start; transition: transform 0.2s ease; }
.liste-honoraires li:hover { transform: translateX(5px); }
.liste-honoraires i { color: var(--or); margin-right: 10px; margin-top: 5px; font-size: 0.9rem; }
.convention-alerte {
    background-color: var(--bleu-nuit); color: var(--blanc); padding: 20px; border-radius: 5px; margin-top: 30px;
    display: flex; align-items: center; gap: 15px; transition: background-color 0.3s ease;
}
.convention-alerte:hover { background-color: var(--or-fonce); }
.convention-alerte i { font-size: 2rem; color: var(--or); }

/* --- NOUVELLE SECTION CONTACT (Façade + Carte + Cartes Infos) --- */
.section-contact {
    padding: 80px 5%;
    background-color: #f9f9f9; /* Un gris extrêmement clair pour faire ressortir le blanc pur des cartes */
}

.section-contact h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--bleu-nuit);
}

/* Les deux images côte à côte */
.contact-galerie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    height: 450px; /* Une hauteur très majestueuse */
}

.image-cabinet-container, .contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* Une ombre douce et luxueuse */
}

/* L'image de la façade avec un effet zoom au survol */
.image-facade {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease; /* Animation très lente et chic */
}

.image-cabinet-container:hover .image-facade {
    transform: scale(1.05);
}

/* La carte Google */
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Les 3 blocs d'informations en dessous */
.contact-infos-bas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 10px auto;
}

.info-bloc {
    background-color: var(--blanc);
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-bloc:hover {
    transform: translateY(-8px); /* La carte se soulève doucement */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.info-bloc i {
    font-size: 2.2rem;
    color: var(--or);
    margin-bottom: 20px;
}

.info-bloc h3 {
    font-family: 'Playfair Display', serif;
    color: var(--bleu-nuit);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-bloc p {
    color: var(--texte-sombre);
    line-height: 1.8;
    font-size: 1rem;
}

.bouton-itineraire-container {
    text-align: center;
    margin-top: 50px;
}
/* Footer */
footer { background-color: var(--bleu-nuit); color: var(--blanc); text-align: center; padding: 25px; font-size: 0.9rem; }

/* --- Ajustement du cadrage du portrait --- */
.portrait .photo-competence {
    object-position: top center !important; /* Force l'image à s'accrocher par le haut pour ne jamais couper la tête */
}

/* --- Responsive (Pour les téléphones) --- */
@media (max-width: 900px) {
    .titre-avec-logo { 
        display: flex;
        flex-direction: column; 
        align-items: center;
    }
    .logo-national { 
        position: static; 
        transform: none; 
        margin-right: 0; 
        margin-bottom: 15px; 
        height: 60px;
    }
    .cabinet-header h1, .cabinet-header .sous-titre { 
        text-align: center; 
    }
    
    /* On passe la biographie et la photo sur 1 seule colonne */
    .presentation-avocat { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .portrait { 
        height: 400px; /* Hauteur idéale pour un bel affichage sur smartphone */
    }
    
    .competence-horizontal, .competence-horizontal.reverse { 
        flex-direction: column; 
    }
    .competence-icon-col { 
        min-height: 200px; 
    }
}
/* --- Section FAQ --- */
.section-faq {
    background-color: var(--blanc);
    padding: 80px 5%;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.faq-item summary {
    list-style: none; /* Enlève la petite flèche moche par défaut */
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--bleu-nuit);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Pour Safari */
}

.faq-item summary:hover {
    color: var(--or);
}

.faq-content {
    padding-bottom: 20px;
    color: var(--texte-sombre);
    line-height: 1.6;
    font-size: 1rem;
    animation: fondre 0.4s ease; /* Petite animation d'ouverture */
}

/* Le petit bouton + qui tourne */
.faq-item .icon {
    font-size: 1.5rem;
    color: var(--or);
    transition: transform 0.3s ease;
    font-weight: normal;
}

/* Quand la question est ouverte, le + tourne à 45 degrés pour faire une croix */
.faq-item[open] summary .icon {
    transform: rotate(45deg);
}

@keyframes fondre {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.credit-createur {
  text-align: center;
  padding: 20px 10px;
  font-size: 13px;
  color: #888888; /* Un gris discret */
  background-color: #f9f9f9; /* Ou la couleur de ton fond de site */
  border-top: 1px solid #eeeeee;
  margin-top: 40px;
}
/* =========================================
   📱 VERSION SMARTPHONE OPTIMISÉE (Max 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. L'en-tête et le menu (s'empile pour ne pas déborder) */
    header {
        flex-direction: column;
        padding: 10px;
    }
    .logo-site .logo-image-menu {
        height: 100px;
        margin: -20px 0;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding-top: 10px;
        margin-bottom: 5px;
    }
    li.lang-switch {
        border-left: none; /* Enlève la barre sur mobile pour gagner de la place */
        padding-left: 0;
        margin-left: 10px;
    }

    /* 2. Textes et titres globaux plus petits */
    h2 {
        font-size: 2rem;
    }
    .cabinet-header h1 { 
        font-size: 2.2rem; 
    }
    .cabinet-header .sous-titre { 
        font-size: 1.5rem; 
    }
    
    /* 3. Les chiffres clés en colonne */
    .chiffres-cles {
        flex-direction: column;
        gap: 40px;
        padding: 30px 15px;
    }

    /* 4. Transformation des grilles en 1 seule colonne verticale */
    .valeurs-container,
    .honoraires-grid,
    .contact-galerie,
    .contact-infos-bas {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* 5. Hauteur de la carte sur mobile */
    .contact-map {
        min-height: 300px;
        width: 100%;
    }
    .contact-galerie {
        height: auto; /* Annule la hauteur fixe majestueuse sur mobile */
    }
    
    /* 6. Espacements réduits sur mobile */
    section {
        padding: 100px 5% 40px; /* Moins de vide en haut des sections */
    }
}