/* ====================
   Variables & Base
   ==================== */
:root{
  --color-primary:#003b66; /* darker corporate blue for contrast */
  --color-accent:#00a8ff;
  --color-text:#222;
  --color-muted:#666;
  --bg:#ffffff;
  --bg-soft:#f6f8fb;
  --footer-bg:#05233a; /* darker footer for contrast */
  --white:#fff;
  --radius:8px;
  --max-width:1200px;
  --font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font-family);
  color:var(--color-text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  font-size:16px;
}

/* Accessibility helpers */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:10px;top:10px;width:auto;height:auto;padding:10px 12px;background:#000;color:#fff;border-radius:6px;z-index:9999;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Layout container */
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px}

/* Typography */
h1{font-size:2.2rem;color:var(--color-primary);margin-bottom:12px;line-height:1.05;font-weight:700}
.lead{font-size:1.05rem;color:var(--color-muted);margin-bottom:18px;font-weight:300}
h2{font-size:1.6rem;color:var(--color-primary);margin-bottom:28px;text-align:center;font-weight:600}
h3{font-size:1.1rem;color:var(--color-primary);margin-top:8px;font-weight:600}

/* Buttons */
.btn-primary{
  display:inline-block;padding:12px 20px;border-radius:10px;background:var(--color-primary);color:var(--white);font-weight:600;border:none;cursor:pointer;text-decoration:none;
  transition:transform .12s ease,box-shadow .12s ease;
}
.btn-primary:hover,.btn-primary:focus{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.08)}
.btn-secondary{display:inline-block;margin-left:12px;padding:10px 18px;border-radius:10px;background:transparent;border:1px solid rgba(0,0,0,0.06);color:var(--color-text)}
.link-more{color:var(--color-primary);text-decoration:none;font-weight:600}

/* --------------------
   New: move "Parler à un Expert" a bit lower
   --------------------
   .btn-expert-lower adds vertical spacing without changing layout flow.
   We include responsive adjustments so the spacing feels natural on smaller screens.
*/
.btn-expert-lower{
  margin-top:28px;            /* pushes the button lower */
  /* keep alignment consistent with other CTAs */
  display:inline-block;
}

/* Slightly larger gap on wide screens where the key-figures sit beside it */
@media (min-width:1001px){
  .btn-expert-lower{margin-top:42px;}
}

/* Reduce spacing on small screens so content doesn't appear disconnected */
@media (max-width:720px){
  .btn-expert-lower{margin-top:20px;}
}

/* Header */
.site-header{background:var(--bg);border-bottom:1px solid #e9eef5;position:sticky;top:0;z-index:1000}
.nav-content{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand-link{display:flex;align-items:center;gap:14px;text-decoration:none}
.logo-img {
    height: 80px; /* Augmenté de 40px à 50px */
    width: auto;
    display: block;
}
.logo-text{font-weight:700;color:var(--color-primary);font-size:1.25rem}

/* Nav */
.main-nav{display:block}
.nav-list{list-style:none;display:flex;gap:18px;align-items:center}
.nav-list a{color:var(--color-text);text-decoration:none;padding:6px 4px;border-radius:6px;font-weight:500}
.nav-list a:focus,.nav-list a:hover{background:rgba(0,0,0,0.03)}
.cta-devis{background:var(--color-accent);color:var(--white);padding:8px 14px;border-radius:8px}

/* Hamburger (mobile) */
.hamburger{display:none;background:none;border:0;padding:8px;cursor:pointer}
.hamburger-box{width:28px;height:20px;position:relative;display:inline-block}
.hamburger-inner{position:absolute;left:0;right:0;height:3px;background:var(--color-text);top:50%;transform:translateY(-50%);border-radius:2px}
.hamburger-inner::before,.hamburger-inner::after{content:"";position:absolute;left:0;right:0;height:3px;background:var(--color-text);border-radius:2px}
.hamburger-inner::before{top:-8px}.hamburger-inner::after{top:8px}

/* Hero */
.hero{background:var(--bg-soft);padding:60px 0}
.hero-inner{display:flex;align-items:center;gap:30px}
.hero-content{flex:1}
.hero-visual{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:18px}

/* Manager photo (circular) - enlarged and pushed right */
.manager-card{
  width:220px;
  height:220px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 12px 36px rgba(2,6,23,0.10);
  border:6px solid rgba(255,255,255,0.9);
  background:linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,248,251,0.95));
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:10px; /* slight spacing from the right edge */
}
.manager-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

/* decorative hero image */
.hero-img{max-width:420px;width:100%;height:auto;border-radius:12px;box-shadow:0 10px 30px rgba(2,6,23,0.05)}

/* Services */
.services{padding:60px 0}
.services-grid{display:flex;gap:24px;flex-wrap:wrap;justify-content:center;text-align:left}
.service-card{background:var(--white);border-radius:12px;padding:24px;width:320px;box-shadow:0 6px 18px rgba(2,6,23,0.04);border:1px solid #f0f3f8;transition:transform .15s ease}
.service-card:hover{transform:translateY(-6px)}
.icon{font-size:2rem;color:var(--color-accent);display:block}

/* Toggle button for service details */
.toggle-service{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:8px;
  background:transparent;
  border:1px solid rgba(0,0,0,0.06);
  cursor:pointer;
  font-weight:600;
  color:var(--Color-primary);
  transition:background .12s ease,transform .12s ease;
}
.toggle-service:hover,.toggle-service:focus{background:rgba(0,64,102,0.04);transform:translateY(-2px)}
.toggle-service:focus{outline:3px solid rgba(0,128,192,0.12);outline-offset:3px}

/* Service details panel (hidden by default) */
.service-details{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s cubic-bezier(.2,.9,.2,1),padding .25s ease;
  background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(246,248,251,0.6));
  border-radius:10px;
  margin-top:12px;
  padding:0 12px;
  border:1px solid rgba(0,0,0,0.04);
}
.service-details.open{
  padding:18px 16px;
  max-height:1200px; /* suffisamment grand pour contenir la liste */
}

/* Inner list */
.service-intro{font-weight:600;color:var(--color-muted);margin-bottom:8px}
.service-list{list-style:none;padding-left:0;display:flex;flex-direction:column;gap:8px}
.service-list li{padding-left:10px;line-height:1.45;color:var(--color-text)}
.service-list li strong{color:var(--color-primary)}

/* Actions inside details */
.service-actions{margin-top:14px;display:flex;gap:12px;align-items:center}
.service-actions .link-more{font-weight:600}

/* Why us */
.why-us{padding:60px 0}
.why-us-grid{display:flex;gap:28px;align-items:center;justify-content:space-between}
.why-us-content{flex:1;min-width:280px}

/* MODIFICATION: Correction de la grille en 2x2 et gestion de la largeur pour les grands écrans */
.key-figures{
  display:grid;
  /* Assure 2 colonnes de taille égale */
  grid-template-columns:repeat(2, 1fr); 
  gap:16px;
  /* Utilise la largeur maximale pour mieux s'aligner avec le contenu de gauche */
  width:100%; 
  max-width: 520px; /* Limite la taille pour que la mise en page soit bonne à côté du texte */
}

/* Modification de la règle existante .figure-box (Supprime l'ancien style "strong" des chiffres) */
.figure-box{
  background:var(--white);
  padding:16px;
  border-radius:10px;
  text-align:center;
  box-shadow:0 6px 14px rgba(2,6,23,0.03);
  /* Ajout d'un style de transition pour l'esthétique */
  transition:transform .15s ease, box-shadow .15s ease;
}
.figure-box:hover { /* Ajouté pour l'effet visuel */
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(2,6,23,0.05);
}

/* NOUVEAU: Styles pour le contenu des boîtes d'expertise (icône + titre) */
.expertise-box .box-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.expertise-box .box-title {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}


/* --------------------------------- */
/* RÈGLES RESPONSIVES MODIFIÉES */
/* --------------------------------- */

@media (max-width:1000px){
  /* ... autres règles ... */
  .why-us-grid{flex-direction:column;align-items:center}
  /* Maintien de la grille 2x2 et centrage sur tablette */
  .key-figures{width:100%;max-width:520px;grid-template-columns:repeat(2,1fr);} 
  .manager-card{margin:0 auto}
}
@media (max-width:720px){
  /* ... autres règles ... */
  .services-grid{flex-direction:column;align-items:center}
  /* Passage à 1 colonne sur les téléphones pour une meilleure lecture */
  .key-figures{grid-template-columns:1fr; width:80%; margin:0 auto;} 
  /* ... autres règles ... */
}

/* Footer */
.site-footer{background:var(--footer-bg);color:var(--white);padding:40px 0}
.footer-grid{display:flex;gap:22px;justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,0.06);padding-bottom:18px}
.footer-col{min-width:220px;flex:1}
.footer-col h4{color:var(--color-accent);margin-bottom:12px}
.footer-col a{color:rgba(255,255,255,0.9)}
.footer-bottom{padding-top:14px;text-align:center;color:rgba(255,255,255,0.85);font-size:.9rem}

/* Form */
.form-devis{display:flex;flex-direction:column;gap:10px}
.form-devis input[type="text"], .form-devis input[type="email"], .form-devis input[type="tel"], .form-devis input[type="number"], .form-devis textarea{
  padding:12px;border-radius:8px;border:1px solid #e6eef7;background:#fff;width:100%;font-size:1rem;color:var(--color-text)
}
.consent-row{display:flex;align-items:flex-start;gap:8px}
.consent-label{font-size:.95rem;color:rgba(255,255,255,0.95)}
.btn-submit-devis{background:var(--color-accent);color:var(--white);padding:12px;border-radius:10px;border:0;font-weight:700;cursor:pointer}
.form-message{color:#fff;background:rgba(0,0,0,0.15);padding:10px;border-radius:8px}

/* Responsive */
@media (max-width:1000px){
  .hero-inner{flex-direction:column-reverse;text-align:center}
  .hero-visual{order:0;align-items:center;} /* center manager on smaller screens */
  .hero-content{order:1}
  .why-us-grid{flex-direction:column;align-items:center}
  .key-figures{width:100%;grid-template-columns:repeat(2,1fr)}
  .manager-card{margin:0 auto}
}
@media (max-width:720px){
  .nav-list{display:none;position:absolute;right:18px;top:72px;background:var(--white);padding:12px;border-radius:10px;box-shadow:0 12px 40px rgba(2,6,23,0.12)}
  .nav-list.nav-open{display:flex;flex-direction:column;gap:12px}
  .hamburger{display:block}
  .logo-img{height:54px}
  .services-grid{flex-direction:column;align-items:center}
  .key-figures{grid-template-columns:1fr}
  .hero-inner{gap:18px;padding:20px 0}
  .hero-img{max-width:340px}
  .service-card{width:100%}
}

/* ====================
    Barre Sociale Flottante (Fixed Sidebar)
    ==================== */
.social-fixed-sidebar {
    /* Positionnement fixe sur l'écran */
    position: fixed;
    bottom: 30px; /* Distance du bas de la fenêtre */
    left: 20px; /* Distance de la gauche de la fenêtre */
    z-index: 1000; 
    
    /* Affichage vertical */
    display: flex; 
    flex-direction: column;
    gap: 12px; /* Espace entre les icônes */
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Forme circulaire */
    color: var(--white); 
    font-size: 22px; 
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Couleurs spécifiques basées sur les couleurs de marque standard */
.linkedin {
    background-color: #0A66C2; 
}
.mail {
    /* Utilisation de la couleur primaire pour une meilleure intégration au design */
    background-color: var(--color-primary); /* #003b66 */
}
.facebook {
    background-color: #3b5998; 
}

.social-icon:hover {
    transform: scale(1.05); 
    opacity: 0.9;
}

/* Ajustement pour les écrans très petits (mobile) */
@media (max-width: 480px) {
    .social-fixed-sidebar {
        bottom: 15px; 
        left: 15px; 
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px; 
    }
}
 /* Reduced motion */
.reduce-motion *, .reduce-motion * { transition:none!important; animation:none!important }

 /* High contrast assistance */
@media (prefers-contrast: more){
  :root{--color-primary:#002b4a;--color-accent:#0088cc}
}

/* Small tweaks */
a:focus{outline:3px solid rgba(0,128,192,0.14);outline-offset:3px}
input:focus{outline:3px solid rgba(0,128,192,0.12);outline-offset:2px}

/* Utility */
.text-center{text-align:center}
.hidden{display:none}

/* ========================================================================= */
/* --- STYLES SPÉCIFIQUES POUR LA PAGE DE REMERCIEMENT (MERCI.HTML) --- */
/* Ces règles complètent les styles globaux (Header/Footer) définis ailleurs. */
/* ========================================================================= */

/* Le container principal de la section de remerciement */
.thank-you-section {
    /* Ajustement de la hauteur et du padding pour mieux s'intégrer sous le header */
    padding: 60px 20px; 
    text-align: center;
    min-height: 60vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fc; /* Fond très légèrement grisé pour un effet de douceur */
}

.thank-you-content {
    max-width: 750px;
    margin: 0 auto;
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre portée douce et professionnelle */
    padding: 40px 60px;
    background-color: #ffffff;
    border: 1px solid #e1e4e8; 
}

/* Titre principal et icône de validation */
.thank-you-content h1 {
    color: #007bff; /* Couleur primaire */
    font-size: 2.8rem;
    margin-bottom: 0.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; 
}

/* Ajout d'une icône de validation professionnelle (FontAwesome) */
.thank-you-content h1::before {
    content: "\f058"; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    color: #28a745; /* Vert de validation/succès */
    font-size: 1.2em;
    margin-right: 15px;
}

.thank-you-content .lead {
    font-size: 1.25rem;
    color: #495057; 
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: 400;
}

.thank-you-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 25px;
}

/* Mise en forme des "Prochaines étapes" */
.next-steps {
    text-align: left;
    padding: 30px;
    border: 1px solid #cfe2ff; 
    border-radius: 8px;
    background: #e9f5ff; /* Fond bleu très clair, rassurant */
    margin-top: 40px;
}

.next-steps h4 {
    font-size: 1.3rem;
    color: #004d99; 
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #a3ccff; 
    padding-bottom: 10px;
}

.next-steps ul {
    list-style: none; 
    padding-left: 0;
    margin: 0;
}

.next-steps li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #343a40;
}

/* Icône personnalisée pour les étapes de la liste */
.next-steps li::before {
    content: "\f0da"; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: #007bff;
}

.next-steps li strong {
    color: #007bff;
    font-weight: 600;
}

/* Bouton de retour à l'accueil */
.btn-home {
    margin-top: 40px;
}