/* ==========================================================================
   CSS PROJET ADML - Version 1.8.5
   Clean & Optimized par Nexus
   Modifications : Aération des sections & Centrage CTA
   ========================================================================== */

/* 1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
  --primary-color: #ff8b67;
  --secondary-color: #1a252f;
  --text-dark: #2c2c2c;
  --text-medium: #5a5a5a;
  --bg-light: #fff8f5ec;
  --bg-white: #ffffff;
  --border-color: #ffd4c8;
  --shadow: 0 4px 12px rgba(255, 139, 103, 0.1);
  --shadow-hover: 0 8px 20px rgba(255, 139, 103, 0.15);

  /* Typographie */
  --font-titles: "Quicksand", sans-serif;
  --font-body: "Segoe UI", Tahoma, sans-serif;
  --font-impact: "Playfair Display", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 2. TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4, .logo h1 {
  font-family: var(--font-titles);
  font-weight: 750;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 2.4rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; margin-bottom: 1rem; }

p, li, label, input, textarea, select {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover { color: var(--secondary-color); }

/* 3. HEADER & NAVIGATION
   ========================================================================== */
header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav { padding: 1.2rem 0; }

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  font-family: var(--font-titles);
  color: var(--text-medium);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  background: var(--bg-light);
}

/* 4. DESIGN DES TITRES & HEADERS MAG
   ========================================================================== */
.header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.header-main { flex: 1; }

.header-badge {
    display: inline-block;        /* Pour qu'il respecte les paddings */
    text-transform: uppercase;
    letter-spacing: 3px;          /* Augmenté pour l'élégance */
    font-size: 2rem;            /* Légèrement plus grand */
    font-weight: 800;             /* On passe sur du très gras */
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 4px 12px;
    background: rgba(255, 139, 103, 0.1); /* Un fond orange très subtil */
    border-radius: 4px;
    text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.8);
}

.header-sub {
  flex: 1;
  max-width: 450px;
  border-left: 3px solid var(--primary-color);
  padding-left: 1.5rem;
}

.header-sub p {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin: 0;
  font-style: italic;
}

/* Titre H3 avec barre orange sous-jacente */
.content-section h3, 
.contact-info h3, 
.contact-form-wrapper h3 {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: var(--secondary-color);
}

.content-section h3::after, 
.contact-info h3::after, 
.contact-form-wrapper h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background-color: var(--primary-color);
  margin-top: 5px;
  border-radius: 2px;
}

/* 5. SECTIONS COMMUNES (HERO & PAGE HEADER)
   ========================================================================== */
.hero, .page-header {
  position: relative;
  overflow: hidden;
  padding: 8rem 0; /* Augmenté pour plus de souffle */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: var(--text-dark);
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before, .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  z-index: 1;
}

.hero *, .page-header * { position: relative; z-index: 2; }

/* Spécificités Home */
.hero, .page-header { background-image: url("/IMAGES/header.jpg"); }

.hero h2 {
  font-family: var(--font-impact);
  font-size: 4rem;
  font-weight: 900;
  color: var(--secondary-color);
  letter-spacing: -1px;
}

.hero-subtitle { font-size: 1.4rem; color: var(--text-medium); margin-bottom: 1.5rem; }
.hero-description { max-width: 700px; margin: 0 auto 2.5rem; }

/* 6. COMPOSANTS (BOUTONS & CARTES)
   ========================================================================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1.1rem 2.8rem; /* Légèrement plus large pour l'équilibre */
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--secondary-color); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

/* Les cartes de service (Marguerite & Standard) */
.service-card {
  position: relative;
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

.service-card * { position: relative; z-index: 2; }

.service-card h3 {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.6rem;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.service-card p { font-weight: 600; margin-bottom: 0; }

/* 7. LA MARGUERITE (v1.2.5)
   ========================================================================== */
.marguerite-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 600px;
  margin: 6rem auto; /* Plus d'espace autour de l'élément central */
}

.service-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 210px; height: 210px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255, 139, 103, 0.3);
  border: 4px solid rgb(216, 180, 21);
}

.service-center p {
    font-family: var(--font-titles); /* Passage sur Quicksand */
    font-size: 1.10rem;              /* Plus grand et lisible */
    font-weight: 800;               /* Extra gras pour le côté pro/moderne */
    line-height: 1.2;               /* On resserre l'interligne */
    margin-bottom: 0;               /* On annule la marge par défaut des p */
    text-transform: uppercase;      /* En majuscules pour le style "badge" */
    letter-spacing: 0.5px;
}

.petal {
  position: absolute !important;
  width: 290px !important;
  height: 200px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 5;
}

.p1 { top: -6%; left: 50%; margin-left: -140px; }
.p4 { top: 20%; right: 0; }
.p2 { bottom: 5%; right: 5%; }
.p5 { bottom: 5%; left: 5%; }
.p3 { top: 20%; left: 0; }

.petal:hover {
  transform: scale(1.05);
  z-index: 20;
  border: 4px solid var(--primary-color);
  cursor: pointer;
}

/* 8. PAGE ABOUT - STYLE ÉDITORIAL (Indépendant de la Home)
   ========================================================================== */

/* Conteneur spécifique pour les valeurs d'About */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 4rem auto;
}

/* On utilise .about-card pour ne pas entrer en conflit avec .service-card ou .petal */
.about-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card::before {
    content: attr(data-number);
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.05;
    font-family: var(--font-impact);
}

.about-card h4 {
    font-family: var(--font-titles);
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
}

.about-card h4::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 139, 103, 0.15);
    border-color: var(--primary-color);

    
}

/* 9. MISSION STATEMENT (Home bottom)
   ========================================================================== */
.mission-statement {
  padding: 4rem 0; /* Plus d'espace pour la citation */
  text-align: center;
}

.mission-statement p {
  font-family: var(--font-titles);
  font-size: 1.7rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* 10. SECTION CTA (CENTRÉE & ÉPURÉE)
   ========================================================================== */
.cta-section {
  background: var(--bg-light);
  padding: 8rem 0;
  text-align: center;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 850px; /* On resserre pour le focus */
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.cta-section p {
  font-size: 1.3rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* 11. FOOTER
   ========================================================================== */
footer {
  background-color: #1a252f;
  color: #ffffff;
  padding: 5rem 0 2rem;
}

.footer-content { display: flex; justify-content: space-between; gap: 2rem; }
.footer-section { flex: 1; text-align: center; }
.footer-section h3 { color: var(--primary-color); text-transform: uppercase; margin-bottom: 1.5rem; }

.footer-bottom { 
  margin-top: 3rem; 
  padding-top: 1.5rem; 
  border-top: 1px solid rgba(255, 255, 255, 0.1); 
  text-align: center; /* Centrage horizontal */
  width: 100%;        /* S'assure de prendre toute la largeur pour centrer */
  opacity: 0.6; 
  font-size: 0.85rem; 
}

/* 12. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .marguerite-container { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .service-center, .petal { position: relative !important; top: auto !important; left: auto !important; width: 100% !important; margin: 0 auto !important; transform: none !important; }
  .contact-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
  .services, .content-section, .contact-section, .cta-section { padding: 5rem 0; }
}

@media (max-width: 768px) {
  .hero h2 { font-size: 2.5rem; }
  .header-split { flex-direction: column; align-items: flex-start; }
  .cta-section h2 { font-size: 2.2rem; }
}


/* Stylisation des listes avec des coches oranges */
.team-list, .engagement-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.team-list li, .engagement-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.team-list li::before, .engagement-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
}

/* Un petit effet de survol sur les valeurs */
.value-item {
    border: 1px solid transparent;
}
.value-item:hover {
    border-color: var(--border-color);
}


/* ==========================================================================
   CSS PROJET ADML - Version 2.0
   Isolation des pages & Refonte Contact
   Auteur: Nexus
   ========================================================================== */

/* --------------------------------------------------------------------------
   13. PAGE CONTACT - LAYOUT DU FORMULAIRE (Isolé par .page-contact)
   -------------------------------------------------------------------------- */

/* On ne cible QUE si on est sur la page contact */
.page-contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Infos à gauche, Formulaire à droite */
    gap: 4rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-top: -2rem; /* Effet de chevauchement sur le header */
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--primary-color); /* Rappel charte subtil */
}

/* Harmonisation des blocs d'infos */
.page-contact .info-block {
    margin-bottom: 2.5rem;
}

.page-contact .info-block h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Design du formulaire */
.page-contact .contact-form-wrapper {
    /* Couleur un peu plus soutenue que le bg-light standard */
    background: #fdf2ee; 
    padding: 3rem;
    border-radius: 20px;
    /* Petit effet de profondeur */
    border: 1px solid rgba(255, 139, 103, 0.2);
}

.page-contact .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.page-contact .form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.page-contact .form-group input, 
.page-contact .form-group select, 
.page-contact .form-group textarea {
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--bg-white);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

/* Focus pour l'accessibilité */
.page-contact .form-group input:focus, 
.page-contact .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 139, 103, 0.1);
}

/* Bouton pleine largeur sur le formulaire */
.page-contact .btn-primary {
    width: 100%;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   14. PAGE ABOUT - ISOLATION TOTALE (Isolé par .page-about)
   -------------------------------------------------------------------------- */

/* Ici, on peut redéfinir des variables sans toucher aux autres pages */
.page-about {
    /* Si demain tu veux que About soit bleu, tu changes juste ici */
    --local-bg: #fdfdfd; 
}

/* On préfixe tout par .page-about pour garantir le "zéro impact" ailleurs */
.page-about .about-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    /* Tes styles existants... */
}

/* On s'assure que la mission statement sur about ne bouge pas celle de la home */
.page-about .mission-statement p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Centrage de la div Urgence */
.page-contact .urgence-box {
    grid-column: 1 / -1; /* Indispensable pour que la box prenne toute la largeur de la grid */
    background: #fff0eb;
    border: 2px dashed var(--primary-color);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    
    /* Centrage du contenu */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact .urgence-box h3 {
    color: #d35400;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.page-contact .urgence-box p {
    max-width: 600px; /* On limite la largeur pour la lisibilité */
    margin-bottom: 0;
}

.page-contact .contact-section {
    padding-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   15. AJUSTEMENTS RESPONSIVE CONTACT
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .page-contact .contact-grid {
        grid-template-columns: 1fr; /* On empile sur mobile */
        margin-top: 2rem;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   CSS PROJET ADML - Version 2.2.5
   Isolation About & Effet Overlap Premium
   ========================================================================== */

/* 1. CONFIGURATION DU BLOC D'INTRO (OVERLAP) */
.page-about .about-intro-box {
    background: var(--bg-white);
    margin-top: -2rem; /* Remontée sur le header */
    padding: 4rem;
    margin-left: 3%;   /* Marges latérales demandées */
    margin-right: 3%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--primary-color); /* Rappel charte subtil */
}

/* 2. LAYOUT ÉQUIPE (Nettoyage des styles inline) */
.page-about .team-flex-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 4rem 0;
}

.page-about .team-text { flex: 1; min-width: 300px; }

.page-about .team-quote {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.page-about .team-quote p {
    font-family: var(--font-titles);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

/* 3. HIGHLIGHT BOX (AGRÉMENT) */
.page-about .highlight-box {
    background: var(--secondary-color);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 4rem;
}

.page-about .highlight-box h3 { color: var(--primary-color); }
.page-about .highlight-box p { color: rgba(255,255,255,0.9); }

/* 4. RESPONSIVE ABOUT */
@media (max-width: 768px) {
    .page-about .about-intro-box {
        margin-top: -3rem;
        margin-left: 0;
        margin-right: 0;
        padding: 2rem;
    }
    .page-about .team-flex-layout { gap: 2rem; }
}


/* ==========================================================================
   CSS PROJET ADML - Version 2.3.0
   Effet Overlap Home & Isolation
   ========================================================================== */

/* On isole le style pour la Home */
.page-home .home-overlap-card {
    background: var(--bg-white);
    margin-top: -2rem; /* Ton réglage précis */
    padding: 5rem 3rem; /* On donne de l'espace interne */
    margin-left: 2%; 
    margin-right: 2%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    border-top: 4px solid var(--primary-color);
}

/* Ajustement de la section services pour ne pas avoir de double padding */
.page-home .services {
    padding-top: 0;
    padding-bottom: 4rem;
}

/* On s'assure que la marguerite ne déborde pas trop du nouveau cadre blanc */
.page-home .marguerite-container {
    margin: 8rem auto 2rem;
}

/* RESPONSIVE HOME */
@media (max-width: 900px) {
    .page-home .home-overlap-card {
        margin-top: 2rem; /* On annule l'overlap sur mobile pour la lisibilité */
        margin-left: 0;
        margin-right: 0;
        padding: 2rem 1.5rem;
    }
}


/* ==========================================================================
   CSS PROJET ADML - Version 2.3.5
   Layout : Double bloc légal (Highlight & Conventions)
   ========================================================================== */

.page-about .legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 2rem;
    margin-top: 4rem;
}

/* On réutilise la base de la highlight-box pour la convention-box */
.page-about .highlight-box, 
.page-about .convention-box {
    background: var(--secondary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 6px solid var(--primary-color);
    margin-top: 0; /* On annule le margin-top car c'est la grille qui gère l'espace */
}

.page-about .highlight-box h3, 
.page-about .convention-box h3 {
    color: var(--primary-color) !important; /* Le orange ADML */
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
}

/* Style spécifique pour la liste des conventions */
.page-about .convention-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Liste sur deux colonnes à l'intérieur du bloc */
    gap: 10px;
}

.page-about .convention-list li {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    font-size: 1rem;
}

.page-about .convention-list li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 800;
}

/* Mise en avant du crédit d'impôt */
.page-about .tax-benefit {
    margin-top: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive : on empile les blocs sur mobile */
@media (max-width: 768px) {
    .page-about .legal-grid {
        grid-template-columns: 1fr;
    }
    .page-about .convention-list {
        grid-template-columns: 1fr;
    }
}

/* --- OPTIMISATION MENU MOBILE (NEXUS v1.2) --- */

@media (max-width: 768px) {
  /* On empêche le scroll horizontal sur toute la page */
  body {
    overflow-x: hidden;
  }

  nav .container {
    flex-direction: column; /* On empile le logo et le menu */
    padding: 1rem;
    text-align: center;
  }

  .logo h1 {
    font-size: 1.2rem; /* On réduit un peu la taille du titre sur mobile */
    margin-bottom: 1rem;
  }

  .nav-menu {
    display: flex;
    flex-direction: row; /* On garde la ligne mais... */
    flex-wrap: wrap;     /* ...on autorise le retour à la ligne si besoin */
    justify-content: center;
    gap: 10px;
    padding: 0;
    width: 100%;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    font-size: 0.9rem;
    padding: 8px 12px;
    display: block;
    background: rgba(255, 255, 255, 0.1); /* Petit fond pour faire "bouton" */
    border-radius: 5px;
  }
}