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

/* GLOBAL */
body {
  font-family: Arial, sans-serif;
  background: #f7f5ef;  
  color: #000000;        
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

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

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

nav a:hover {  color: var(--fi-primary);}

/* LOGO */
.logo {
  display: flex;
}

.logo img {
  height: 80px;
  width: auto;
}

.brand-name {  
  font-size: 2rem;       /* Taille du texte */  
  font-weight: 700;      /* Plus épais (optionnel) */  
  margin-left: 30px;     /* Espace entre logo et texte */
  align-items: center;
  display: flex;
}

/* SECTIONS */
.section {
  min-height: 100vh;
  padding: 140px 10% 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 100px; /* hauteur du header + marge */
}

/* Correction : la section hero doit autoriser l'affichage horizontal */.hero.section {    display: block;    padding-top: 200px;   /* tu gardes ton style actuel */}

/* HERO */
.hero {
  padding-top: 200px;
  background: linear-gradient(120deg, #f7f5ef, #eae7dd);
  display: flex;
  align-items: left;
  justify-content: left;
}

.hero-title {
  color: var(--fi-dark);
}
.hero-subtitle {
  color: var(--fi-text-light);
}

/* FORMULAIRE */
form {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
}

button {
  background: var(--fi-primary);
  color: white;
}
button:hover {
  background: var(--fi-dark);
}

/* Animation initiale invisible */
.animate {
  opacity: 0;
  transform: translateY(30px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }
}

/* ================================
   SECTION EXPERTISE – FI-SPIRIT
   ================================ */

.expertise {
    padding: 60px 0;
    background: #ffffff;
    color: #222;
    font-family: inherit;
}

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

/* --- TITRES & TYPO --- */

.expertise h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--fi-dark);
}

.expertise h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--fi-dark);
}

.expertise h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.expertise p,
.expertise ul li {
    font-size: 1rem;
    line-height: 1.6;
}

/* --- TAGLINE / INTRO --- */

.expertise .tagline {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.expertise .tagline .subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-top: 10px;
}

/* --- BLOCS --- */

.expertise .block {
    margin-bottom: 50px;
}

/* --- HIGHLIGHT / ENCADRÉ --- */

.expertise .highlight {
    background: var(--fi-tertiary);
  border-left: 4px solid var(--fi-primary);
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 15px;
}

/* --- GRID SYSTEM --- */

.expertise .grid {
    display: grid;
    grid-gap: 24px;
}

.expertise .grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 20px;
}

.expertise .grid.three-columns {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 20px;
}

/* --- CARDS --- */

.expertise .card {
    background: #fafafa;
    border: 1px solid #e9e9e9;
    padding: 20px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.card h4 {    text-align: center;    width: 100%;}

/* Amélioration de la liste dans les cards */
.card ul {
    padding-left: 25px;   /* espace à gauche */
    margin-top: 10px;
    list-style: none;     /* supprime les puces de base */
}

.card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 22px;   /* espace pour l'icône personnalisée */
}

/* Bullet point plus attrayant (icône check premium) */
.card ul li::before {
    content: "✔";                    /* remplace par ton symbole */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    color: var(--fi-primary);        /* bleu FI‑SPIRIT */
    line-height: 1.1;
}

.expertise .card:hover {
    background: #ffffff;
    border-color: #4a8df6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.expertise .card.small {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- CHECKLIST --- */

.expertise .checklist {
    list-style: none;
    padding-left: 0;
}

.expertise .checklist li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.expertise .checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #4a8df6;
    font-weight: bold;
}

/* --- CTA BOX (encadré final) --- */

.expertise .cta-box {
    background: #4a8df6;
    color: #fff;
    padding: 22px 28px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 50px;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .expertise h2 { font-size: 2rem; }
    .expertise h3 { font-size: 1.5rem; }
    .expertise .tagline .subtitle { font-size: 1.1rem; }
}

/* ================================
   THEME COULEUR FI-SPIRIT
   ================================ */

:root {
    --fi-primary: #2A63D9;
    --fi-secondary: #4A8DF6;
    --fi-tertiary: #F4F7FB;
    --fi-text: #1F1F1F;
    --fi-text-light: #444;
    --fi-dark: #163B82;
}

/* Appliquer les couleurs dans la section expertise */
.expertise {
    color: var(--fi-text);
}

.expertise h2, 
.expertise h3, 
.expertise h4 {
    color: var(--fi-dark);
}

.expertise .highlight {
    background: var(--fi-tertiary);
    border-left-color: var(--fi-secondary);
}

.expertise .card {
    border-color: #e1e5eb;
}

.expertise .card:hover {
    border-color: var(--fi-secondary);
    background: #fff;
}

.expertise .checklist li::before {
    color: var(--fi-primary);
}

.expertise .cta-box {
    background: var(--fi-primary);
}

/* ================================
   ANIMATIONS LÉGÈRES
   ================================ */

/* Apparition progressive */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation sur les blocs */
.expertise .block {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}

/* Décalage subtil entre les blocs */
.expertise .block:nth-child(1) { animation-delay: 0.1s; }
.expertise .block:nth-child(2) { animation-delay: 0.25s; }
.expertise .block:nth-child(3) { animation-delay: 0.4s; }
.expertise .block:nth-child(4) { animation-delay: 0.55s; }
.expertise .block:nth-child(5) { animation-delay: 0.7s; }

/* Hover animé sur les cards */
.expertise .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Animation douce des titres */
.expertise h3 {
    position: relative;
}

.expertise h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--fi-primary);
    border-radius: 2px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.expertise h3:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* CTA animé */
.expertise .cta-box {
    transition: background 0.3s ease, transform 0.3s ease;
}

.expertise .cta-box:hover {
    background: var(--fi-dark);
    transform: translateY(-2px);
}

/* HERO LAYOUT AVEC IMAGE À GAUCHE */
.hero-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Image */
.hero-image img {
    width: 380px;         /* ajuste selon ton design */
    max-width: 100%;
    height: auto;
}

/* Contenu texte */
.hero-content {
    flex: 1;
}

/* Responsive pour mobile */
@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        width: 260px;
    }
}

.section.hero {    display: block !important;}

/* SECTION A PROPOS - VERSION PREMIUM */
.about {
    background: var(--fi-tertiary);
    padding-top: 160px;
    padding-bottom: 120px;
}

.about-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 40px;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h2 {
    font-size: 2.4rem;
    color: var(--fi-dark);
}

.about-header p {
    font-size: 1.2rem;
    color: var(--fi-text-light);
    max-width: 700px;
    margin: 20px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.about-block {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #dfe3ec;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.about-block h3 {
    color: var(--fi-primary);
    margin-bottom: 15px;
}

.about-block p, .about-block li {
    color: var(--fi-text);
    font-size: 1rem;
    line-height: 1.6;
}

.about-cta {
    margin-top: 40px;
}

/* Réduction des sections à propos et contact */
#apropos.section{
    min-height: auto !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    justify-content: flex-start !important;
}

/* Correction : réduire la section contact */
#contact.section {
    min-height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    display: block !important;
}

#contact .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Réduction de la section Accueil (Hero) */
#accueil.section {
    min-height: auto !important;
    padding-top: 120px !important;
    padding-bottom: 20px !important;
    display: block !important;
}

/* Réduction du padding supplémentaire imposé par .hero */
.hero {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
}

.about-cta {    
  display: flex;    
  justify-content: flex-end;    
  margin-top: 30px;   /* optionnel */
}

/* Harmonisation du titre de la section Contact */
#contact h2 {
    font-size: 2.4rem;          /* même taille que les autres titres */
    font-weight: 700;
    color: var(--fi-dark);      /* bleu FI‑SPIRIT (titre) */
    text-align: center;           /* ou center si tu préfères */
    margin-bottom: 20px;
}

#contact h2::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;               /* longueur du trait */
    height: 3px;
    background: var(--fi-primary);
    border-radius: 2px;
}

/* =============================
   FORMULAIRE CONTACT PREMIUM
   ============================= */

/* Conteneur principal */
.contact-container {
    max-width: 750px;
    margin: auto;
    background: #fff;
    padding: 60px 55px;
    border-radius: 14px;
    border: 1px solid #dde3ee;
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

/* Titre */
.contact-title {
    font-size: 2.4rem;
    color: var(--fi-dark);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--fi-primary);
    margin: 12px auto 30px;
    border-radius: 3px;
}

/* Sous‑texte */
.contact-intro {
    text-align: center;
    color: var(--fi-text-light);
    max-width: 620px;
    margin: 0 auto 45px;
    line-height: 1.6;
}

/* Structure interne du formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 100%;
}

/* Label des champs */
.form-group label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fi-dark);
    margin-bottom: 8px;
}

/* Champs input et textarea */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    background: #f9fafc;
    border: 1px solid #cfd6e3;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: 0.25s ease;
}

/* Focus professionnel */
.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: var(--fi-primary);
    box-shadow: 0 0 8px rgba(42,99,217,0.25);
    outline: none;
}

/* Tailles optimisées */
textarea {
    min-height: 150px;
}

/* ======== CASE RGPD PREMIUM ========= */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
}

.checkbox-label {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--fi-text);
    display: block;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {    
  width: 22px;    
  height: 22px;    
  margin-top: 6px;
}

/* Ligne de texte légèrement plus grande pour meilleure lisibilité */
.checkbox-label strong {
    font-size: 1.05rem;
    color: var(--fi-dark);
}

/* ======== BOUTON PREMIUM ========= */
.contact-submit {
    padding: 16px 28px;
    background: var(--fi-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    width: fit-content;
    margin-left: auto;  /* aligné à droite pour effet "consulting" */
}

.contact-submit:hover {
    background: var(--fi-dark);
    transform: translateY(-2px);
}

/* ======== RESPONSIVE ========= */
@media (max-width: 768px) {
    .contact-container {
        padding: 40px 25px;
    }
    .contact-submit {
        margin: auto;
    }
}

.checkbox-label {
    display: block;
    width: 100%;
}

/* Étendre le texte RGPD sur toute la largeur du container */
.checkbox-group {
    display: block !important;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    float: left;
    margin-top: 5px;
    margin-right: 12px;
    width: 22px;
    height: 22px;
}

.checkbox-label {
    display: block;
    width: 100%;
    overflow: hidden;       /* empêche la case de pousser le texte */
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
}

/* Message de retour du formulaire */
.form-feedback {
    display: none;
    padding: 18px 22px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Succès */
.form-feedback.success {
    display: block;
    background: #e9f1ff;
    color: var(--fi-dark);
    border: 1px solid var(--fi-primary);
}

/* Erreur */
.form-feedback.error {
    display: block;
    background: #fdecea;
    color: #a30000;
    border: 1px solid #f5c6cb;
}

/* FOOTER COMPACT – FI-SPIRIT */
.footer.section {
    min-height: auto !important;
    padding: 25px 10% !important;
    display: block !important;
    justify-content: flex-start !important;
}


/* =============================
   PAGE POLITIQUE DE CONFIDENTIALITÉ
   ============================= */

.legal {
    background: #ffffff;
    padding-top: 140px;
    padding-bottom: 80px;
}

.legal-container {
    max-width: 900px;
    margin: auto;
    padding: 0 30px;
}

.legal h1 {
    font-size: 2.6rem;
    color: var(--fi-dark);
    margin-bottom: 30px;
}

.legal h2 {
    font-size: 1.4rem;
    color: var(--fi-primary);
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal p {
    font-size: 1rem;
    color: var(--fi-text);
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal ul li {
    margin-bottom: 8px;
}