:root {
  --gold-btn: #c69f68;
  --gold-hover: #b38d57;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --footer-bg: #403e3d;
  --text-dark: #1a1a1a;
  --text-grey: #666666;
  --line-gold: #ad8b5a;
  --border-color: #e5e5e5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
.section-title {
  letter-spacing: 0.5px;
}

h2 {
  text-transform: uppercase;
}

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

/* Header & Navigation */
header {
  background-color: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* Important pour le menu mobile */
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  max-width: 240px;
  height: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--gold-btn);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--gold-btn);
  color: #ffffff !important;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--gold-btn);
  padding: 10px 26px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--gold-btn);
  color: #ffffff;
}

/* Hero Section */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-grey);
  margin-bottom: 35px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections General */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-grey);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* Section Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-card.highlight {
  background-color: rgba(198, 159, 104, 0.06);
  border: 1px solid var(--gold-btn);
}

.service-card .card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(198, 159, 104, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--line-gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-grey);
  font-size: 0.95rem;
  line-height: 1.6;
}

.services-cta-box {
  margin-top: 50px;
  background-color: var(--bg-white);
  border-left: 4px solid var(--gold-btn);
  padding: 30px;
  border-radius: 0 12px 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.services-cta-box p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Section A propos */
.about-section {
  background-color: var(--bg-white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.profile-photo {
  width: 100%;
  max-width: 320px; /* Taille maximale de la vignette sur PC */
  aspect-ratio: 1 / 1; /* Force strictement un format carré parfait */
  object-fit: cover;
  object-position: center top; /* Centre l'image et garde le visage bien cadré */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  margin: 0 auto; /* Centre la photo dans sa colonne */
  display: block;
}

/* Ajustement spécifique pour tablettes et mobiles */
@media (max-width: 900px) {
  .about-photo-wrapper {
    text-align: center; /* Assure un centrage parfait de la vignette */
  }

  .profile-photo {
    max-width: 250px; /* Réduit légèrement la taille de la vignette sur petits écrans tout en gardant le carré */
  }
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.about-text .role {
  color: var(--line-gold);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 25px;
  display: block;
}

.about-text p {
  color: var(--text-grey);
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-box {
  background-color: var(--bg-light);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.about-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.about-box ul {
  list-style: none;
}

.about-box li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-grey);
}

.about-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-btn);
  font-weight: bold;
}

/* Bandeau Finzzle Groupe */
.network-section {
  background-color: var(--footer-bg);
  color: var(--bg-white);
  padding: 70px 20px;
  text-align: center;
}

.network-content {
  max-width: 800px;
  margin: 0 auto;
}

.network-section h2 {
  color: var(--gold-btn);
  font-size: 1rem;
  margin-bottom: 15px;
}

.network-section h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.network-section p {
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 35px;
  line-height: 1.8;
}

.network-section .btn-secondary {
  border-color: var(--gold-btn);
  color: var(--bg-white);
}

.network-section .btn-secondary:hover {
  background-color: var(--gold-btn);
  color: var(--bg-white);
}

/* Grille globale en 2 colonnes pour la section contact */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* Donne un peu plus d'espace à la carte du formulaire à droite */
  gap: 40px;
  align-items: start;
}

/* Colonne de gauche (Bandeau + Coordonnées empilés) */
.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Section Contact */
.contact-section {
  background-color: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* Carte des coordonnées à gauche */
.contact-info-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-grey);
  margin-bottom: 5px;
}

.contact-item a,
.contact-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* La grande carte de droite qui entoure le formulaire */
.form-card-wrapper {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.form-card-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-btn);
}

.form-group-checkbox {
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Bandeau Mes Habilitations (Soft) */
.habilitations-banner {
  background-color: var(--bg-white);
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.habilitations-banner h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hab-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--text-grey);
  font-size: 1rem;
  font-weight: 500;
}

.hab-list span {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.hab-sep {
  color: var(--line-gold);
  font-weight: 300;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 60px 20px 30px;
}

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

.footer-col h4 {
  color: var(--gold-btn);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col ul {
  color: #bbbbbb;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--gold-btn);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #888888;
  font-size: 0.85rem;
}

.footer-bottom-links a {
  margin-left: 15px;
}

.footer-bottom-links a:hover {
  color: var(--gold-btn);
}

/* Mobile Navigation Toggle */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Page Standard (Mentions, etc.) */
.page-content {
  background-color: var(--bg-white);
  padding: 60px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.page-content h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.page-content h3 {
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-content p {
  color: var(--text-grey);
  margin-bottom: 15px;
}

.page-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-grey);
}

.transparency-banner {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold-btn);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Le bandeau de transparence */
.transparency-banner {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold-btn);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.transparency-banner h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.transparency-banner p {
  color: var(--text-grey);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Style du bouton "i" */
.info-toggle-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-toggle-btn:hover {
  background-color: rgba(198, 159, 104, 0.15);
  border-color: var(--gold-btn);
}

/* Zone de détails cachée par défaut */
.banner-details {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    margin-top 0.3s ease-out;
  opacity: 0;
}

/* Classe activée au clic sur le bouton */
.banner-details.show-details {
  opacity: 1;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.banner-details h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.banner-details p {
  font-size: 0.9rem;
  color: var(--text-grey);
  margin-bottom: 12px;
}

.analogy-text {
  font-style: italic;
  color: var(--text-dark) !important;
}

/* --- SECTION PARTENAIRE --- */
.partner-section {
  /* S'intègre naturellement dans vos sections avec le même espacement */
  background-color: var(--bg-light);
  padding: 80px 0;
}

.partner-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(198, 159, 104, 0.06);
  /* Reprise exacte des bordures et ombres de vos autres cartes (ex: contact-info-card) */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 50px 40px;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.partner-banner .sur-titre {
  display: block;
  /* Utilisation de votre couleur dorée pour le petit sur-titre */
  color: var(--line-gold);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-banner h2 {
  /* Le h2 hérite déjà de vos styles globaux (uppercase, letter-spacing), 
     on s'assure juste des marges et couleurs */
  color: var(--text-dark);
  margin: 0;
}

.partner-banner p {
  /* Typographie de vos paragraphes classiques */
  color: var(--text-grey);
  font-size: 1.05rem;
  margin: 0;
}

.partner-banner .btn-secondary {
  /* On espace légèrement le bouton du texte, sans modifier la classe de base */
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr; /* Repasse en une seule colonne sur mobile */
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .mobile-btn {
    display: block;
  }

  /* BURGER MENU FIX */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hab-sep {
    display: none;
  }

  .hab-list {
    flex-direction: column;
    gap: 10px;
  }

  .page-content {
    padding: 30px 20px;
  }

  .single-partner-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .partner-logo-col {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .partner-btn-col {
    margin-top: 10px;
    width: 100%;
  }

  .partner-btn-col .btn-secondary {
    width: 100%;
    display: block;
    text-align: center;
  }

  .partner-banner {
    padding: 35px 20px;
    gap: 15px;
  }
}
