/**
 * Feuille de style principale pour CAPTURE MOI
 * Développé par: LE MONDE DIGITAL / Ansen THANDRAYEN
 * Version: 1.1
 * Approche: Mobile-First (Styles pour mobile et de base)
 */

/* ======================================================= */
/* == 1. VARIABLES GLOBALES ET RESET ===================== */
/* ======================================================= */

:root {
  /* Palette de couleurs inspirée du logo */
  --main-color: #d81e05; /* Rouge vif */
  --secondary-color: #4a4a4a; /* Gris foncé */
  --light-color: #f4f4f4; /* Gris très clair pour les fonds */
  --dark-color: #000000;
  --dark-color-05: rgba(0, 0, 0, 0.5); /* Noir à 50% pour les ombres */
  --troisieme-color: #d7d7d7; /* Quasi-noir pour le texte */
  --decoration-color: #f23535; /* Couleur pour le surlignage */

  /* Police principale du site */
  --main-font:
    "Poppins", sans-serif; /* Note: Assurer que Poppins est importé dans le header.php */
  --secondary-font:
    "Aref Ruqaa", serif; /* Police pour les titres, importée dans header.php */
}

/* Reset de base pour un comportement cohérent sur tous les navigateurs */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--main-font);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* Améliore le rendu des polices */
  -moz-osx-font-smoothing: grayscale;
}

main {
  margin-top: 60px; /* Pour compenser le header fixe */
}

h2,
h3 {
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--light-color);
  text-align: center;
  margin-bottom: 2rem;
  font-family: "Aref Ruqaa", serif;
  font-weight: 700;
  font-style: normal;
}

h1 span {
  display: block;
  font-size: 1.2rem;
  color: var(--troisieme-color);
  font-family: var(--main-font);
  font-weight: 400;
  margin-top: 0.5rem;
}

h2 {
  color: var(--dark-color);
  font-size: 1.4rem;
  text-transform: uppercase;
  font-family: "Aref Ruqaa", serif;
  font-weight: 700;
  font-style: normal;
}

h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
p {
  font-size: 1rem;
}

a {
  color: var(--main-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  padding: 4rem 0;
}

article p {
  margin-bottom: 0px;
}

.text-center {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Style de surlignage moderne pour les titres H2 --- */

/* VERSION OPTIMISÉE POUR VOTRE STYLE ACTUEL */

h2.section-title {
  text-decoration: underline;
  text-decoration-color: var(--decoration-color);
  text-decoration-thickness: 4px; /* Épaisseur */
  text-underline-offset: 2px; /* Distance du texte */
  text-decoration-skip-ink: none; /* Le trait passe sous les lettres comme 'p' ou 'q' */
}
section:hover h2.section-title {
  transform: scale(1.02);
  text-decoration-thickness: 6px; /* S'épaissit au survol */
  text-decoration-color: var(--main-color); /* Devient plus intense au survol */
}
.section-title {
  transition: transform 1s ease;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 3rem;
}
/* ======================================================= */
/* == 2. HEADER (MOBILE) ================================= */
/* ======================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light-color);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--troisieme-color);
  box-shadow: 0 3px 10px var(--dark-color-05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.header-cta .cta-button {
  margin-top: 0;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  padding: clamp(0.6rem, 1vw, 0.8rem) clamp(1rem, 2vw, 1.5rem);
}

.logo-link img {
  height: 50px;
  width: 50px;
  display: block;
  transition: transform 1s ease;
}

.logo-link img:hover {
  transform: scale(1.4);
}

/* Par défaut, le menu principal et le bouton CTA sont cachés sur mobile */
.main-nav {
  display: none;
}

/* Styles pour le menu déroulant quand il est actif */
.main-nav.is-active {
  display: block;
  position: fixed; /* ← KEY CHANGE: fixed au lieu de absolute */
  top: 75px; /* Juste en dessous du header */
  left: 0;
  right: 0;
  background-color: var(--light-color);
  box-shadow: 0 1px 2px var(--dark-color-05);
  z-index: 999;
  max-height: calc(100vh - 60px); /* Pas plus que la hauteur écran */
  overflow-y: auto;
  /* ← Avec "fixed", le menu ne push RIEN en dessous */
}

/* Styles pour le menu hamburger (nav-toggle) */
.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 40px;
}

.hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  left: 0;
}

.hamburger::before {
  transform: translateY(-8px);
}
.hamburger::after {
  transform: translateY(8px);
}

.nav-links {
  list-style: none;
}

.nav-links li a {
  color: var(--dark-color);
  display: block;
  padding: 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--troisieme-color);
  transition: transform 1s ease;
}

.nav-links li:last-child a {
  border-bottom: none;
}

.nav-links li a:hover {
  color: var(--light-color);
  text-decoration: none;
  background-color: var(--main-color);
  transform: scale(1.2);
}

.nav-toggle.is-active .hamburger {
  background: transparent;
}
.nav-toggle.is-active .hamburger::before {
  transform: rotate(45deg);
}
.nav-toggle.is-active .hamburger::after {
  transform: rotate(-45deg);
}

/* ======================================================= */
/* == 3. STYLES COMMUNS (BOUTONS, CARTES, ETC.) ========= */
/* ======================================================= */

/* Skip link - invisible par défaut */
.skip-link {
  position: absolute;
  background-color: var(--dark-color);
  color: var(--main-color);
  padding: 8px 16px;
  top: -50px; /* Positionné hors de l'écran */
  text-decoration: none;
  border-radius: 10px;
  z-index: 100;
  font-weight: bold;
}

/* Visible quand on le focus (clavier) */
.skip-link:focus {
  top: 12%; /* Se déplace vers la droite pour être visible */
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Focus states pour accessibility */
button:focus-visible,
a:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--main-color);
  outline-offset: 2px;
}

.cta-button:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(216, 30, 5, 0.1);
}

.nav-links li a:focus {
  outline: 3px solid var(--main-color);
  outline-offset: -3px;
}

.cta-button,
.cta-button-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: none;
}

.cta-button {
  background-color: var(--main-color);
  color: var(--light-color);
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-button-secondary {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.cta-button-secondary:hover {
  background-color: var(--main-color);
  color: var(--light-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.services-subtitle {
  text-align: center;
  font-size: 1.2rem;
}

.home-services p {
  text-align: center;
}

.bento-grid p {
  padding-bottom: 0;
}

/* Styles de base pour les cartes (utilisés par services, tarifs, etc.) */
.service-card,
.pricing-card {
  background-color: var(--light-color);
  border: 1px solid var(--light-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--dark-color-05);
  display: flex;
  flex-direction: column;
}

.gslide-description {
  background: transparent !important; /* On enlève le fond noir par défaut pour plus de modernité */
}

.gslide-title {
  color: #ffffff !important;
  text-align: center !important;
  font-size: 1.4rem !important;
}

.gslide-media {
  max-height: calc(90vh - 94px);
}

.gslide-image img {
  max-height: 60vh !important;
}

.gslide-video video {
  max-height: 60vh !important;
}
/* ======================================================= */
/* == 4. STYLES SPÉCIFIQUES AUX PAGES (MOBILE) ============ */
/* ======================================================= */

/* --- Page d'accueil --- */
/* --- HERO avec vidéo --- */
.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-brand {
  font-family: "Goblin One", serif;
  font-weight: 400;
  font-size: 1.8rem;
  font-style: normal;
  color: var(--main-color);
}

.hero-slogan {
  font-family: "Marck Script", serif;
  font-weight: 400;
  font-size: 1.2rem;
  font-style: normal;
  color: var(--light-color);
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-color-05);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--light-color);
}

.hero-h4 {
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--troisieme-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 10px 25px;
  margin-bottom: 2rem;
  border-radius: 100%;
  width: fit-content;
  min-width: 150px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.hero-cta-group {
  display: flex; /* Active le mode Flexbox */
  flex-direction: column; /* Met les enfants (les boutons) en colonne */
  align-items: center; /* Centre les boutons horizontalement dans le conteneur */
  gap: 1rem; /* Ajoute un espace de 16px (1rem) entre chaque bouton */
}

.hero-content a {
  margin-top: 2rem;
}

.hero-h2 {
  color: var(--light-color);
  font-size: 1.2rem;
  font-family: var(--main-font);
}

/* ======================================================= */
/* == MODERNISATION DE LA SECTION SERVICES (STYLE 2026) == */
/* ======================================================= */

/* Conteneur pour centrer le contenu */

.home-services {
  /* --- AJOUT DE L'IMAGE DE FOND --- */
  position: relative;
  min-height: 100vh; /* On s'assure que la section prend au moins toute la hauteur de l'écran */
}

/* On ajoute un overlay pour la lisibilité */
.home-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Superposition de couleur. Vous pouvez jouer avec l'opacité (le dernier chiffre) */
  background-color: var(
    --light-color
  ); /* Fond sombre semi-transparent (85% d'opacité) */

  /* On s'assure que l'overlay est au-dessus de l'image de fond, mais sous le contenu */
  z-index: 0;
}

/* On doit s'assurer que le contenu est au-dessus de l'overlay */
.home-services .container {
  position: relative;
  z-index: 1;
}

/* Grille Bento (Mobile-first : une seule colonne) */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

/* ===================================================== */
/* == CARTES SERVICES / PRESTATIONS ==================== */
/* ===================================================== */

/* 1. On cible spécifiquement le texte "En savoir plus" */
.read-more {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: var(--dark-color);
  margin-top: auto;
  align-self: center;
  z-index: 1;
  text-decoration: none !important;
}

/* 2. On crée le surlignage moderne (invisible au départ) */
.read-more::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 100%;
  height: 5px; /* Épaisseur moderne */
  background-color: var(--main-color);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 3. L'effet au survol de la CARTE entière */
/* Note : le survol de .card-link (le lien global) déclenche le ::after de .read-more */
.card-link:hover .read-more::after {
  transform: scaleX(1);
}

/* 4. On s'assure que le titre et le paragraphe ne sont JAMAIS soulignés */
.card-link,
.card-link h3,
.card-link p {
  text-decoration: none !important;
  color: inherit; /* Garde les couleurs d'origine */
}

/* Carte service principale */
.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 8px 30px var(--dark-color-05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease-out forwards;
}

.service-card:nth-child(1) {
  background-image:
    linear-gradient(var(--dark-color), var(--dark-color)),
    url("/assets/media/index/service-photographe.avif");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.service-card:nth-child(2) {
  background-image:
    linear-gradient(var(--dark-color), var(--dark-color)),
    url("/assets/media/index/service-videaste.avif");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.service-card:nth-child(3) {
  background-image:
    linear-gradient(var(--dark-color), var(--dark-color)),
    url("/assets/media/index/service-drone.avif");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

/* LE LIEN QUI ENVELOPPE TOUT */
.card-link {
  display: block; /* On passe en block pour plus de stabilité */
  padding: 2rem;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

/* Conteneur interne */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.card-content p {
  flex-grow: 1; /* Dit au paragraphe de s'étirer pour pousser ce qui est en dessous */
  margin-bottom: 1.5rem; /* Espace de sécurité avant le bouton */
}

/* Titre du service */
.service-card h3 {
  color: var(--main-color);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0;
  text-decoration: none !important;
}

/* Texte descriptif */
.service-card p {
  color: var(--dark-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  text-decoration: none !important;
}

/* Le texte "En savoir plus" (CTA) */
.cta-text {
  font-weight: bold;
  color: var(--dark-color);
  position: relative;
  display: inline-block; /* Indispensable */
  text-decoration: none !important;
  z-index: 1;
}

/* Votre soulignement animé, maintenant sur le CTA */
.cta-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px; /* Épaisseur */
  background-color: var(--main-color);
  opacity: 0.2;
  z-index: -1;

  /* L'ANIMATION */
  transform: scaleX(0);
  transform-origin: left; /* On simplifie : part de la gauche */
  transition: transform 0.3s ease-out;
}

/* ACTIONS AU SURVOL DE LA CARTE */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--dark-color);
}

/* C'est ici que la magie opère */
.service-card:hover .cta-text::after {
  transform: scaleX(1);
}

.service-card:hover .cta-text {
  color: var(--main-color);
}

/* Décalage progressif des animations */
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Prestations (Version Détaillée) --- */
.home-prestations {
  background-color: var(--troisieme-color);
}

.prestation-card-overlay .read-more {
  color: var(--main-color);
  margin-bottom: 1rem;
}

.card-link:hover .read-more::after,
.prestation-card-overlay:hover .read-more::after,
.pricing-card:hover .read-more::after {
  transform: scaleX(1);
  transform-origin: left;
}

.prestations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.prestation-card a {
  display: flex; /* On passe le lien en flex pour contrôler l'alignement de l'overlay */
  align-items: flex-end; /* Aligne l'overlay en bas */
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--dark-color-05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  text-decoration: none;
}

.prestation-card a:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--dark-color);
}

.prestation-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 1s ease;
}

/* Effet de zoom sur l'image au survol */
.prestation-card a:hover img {
  transform: scale(1.2);
}

.prestation-card-overlay {
  position: relative; /* On le passe en relatif car il est maintenant un enfant flex */
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  );
  color: var(--troisieme-color);
}

.prestation-card-content h3 {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--main-color);
  display: inline-block; /* Pour que la bordure ne prenne pas toute la largeur */
}

.prestation-card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.prestation-card {
  display: grid;
}

.prestation-card-content {
  margin-bottom: 2rem;
}

.prestation-card-content li {
  color: var(--light-color);
  margin-bottom: 0.5rem;
  position: relative;
}

/* Ajout d'une puce personnalisée (style "check") */
.prestation-card-content li::before {
  content: "✔ ";
  color: var(--main-color);
}
/* ======================================================= */
/* == SECTION PORTFOLIO (ACCUEIL) - BASE MOBILE ========= */
/* ======================================================= */

.home-portfolio {
  /* On ajoute une image de fond uniquement pour les grands écrans */
  background-image: url("/assets/media/index/portfolio-background.avif");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay; /* Mode de fusion pour un effet subtil */
  background-color: var(
    --troisieme-color
  ); /* Le fond noir avec une transparence de 50% */
  overflow: hidden; /* On garde la hauteur de 100% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background-attachment: fixed;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  gap: 2.5rem;
}

.portfolio-item {
  top: 20px;
  background-color: var(--troisieme-color);
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 8px 25px var(--dark-color-05);
  text-align: center;

  /* On garde l'animation d'entrée pour mobile */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease-out forwards;
}

.portfolio-item:nth-child(2) {
  animation-delay: 0.2s;
}
.portfolio-item:nth-child(3) {
  animation-delay: 0.4s;
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.portfolio-item figcaption {
  font-weight: 500;
  color: var(--secondary-color);
}

/* ======================================================= */
/* == SECTION FAQ MODERNE 2026 =========================== */
/* ======================================================= */

.home-faq {
  background-color: var(--light-color); /* Un fond blanc pour contraster */
  padding: 4rem 0;
  overflow: hidden; /* Empêche les débordements lors des animations */
}

.home-faq p {
  padding-bottom: 1rem;
}

.home-faq .section-title {
  text-align: center; /* On recentre le titre sur mobile */ /* On remet la taille de police standard pour mobile */
  line-height: 1.3; /* Un interligne plus standard */
}

.home-faq .faq-header p {
  text-align: center; /* On recentre le paragraphe */
  color: var(--secondary-color);
}

.faq-accordion {
  margin-top: 1rem;
  text-align: center;
  align-items: center;
  align-content: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.page-section-link {
  text-align: center;
  margin-top: 2rem;
}

.faq-question {
  display: flex;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  padding-left: 4rem;
  padding-right: 1rem;
  font-size: 1.1rem;
  font-weight: 600; /* Un peu plus gras */
  color: var(--dark-color);
  cursor: pointer;
  align-items: center;
  transition: color 0.3s ease;
  width: 100%;
}

.faq-question:hover {
  color: var(--main-color);
}

.faq-icon {
  font-size: 1.8rem;
  margin-left: 2rem;
  font-weight: 300;
  color: var(--main-color);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transition douce */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Transition douce */
}

.faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: var(--secondary-color);
}

/* Style quand l'accordéon est ouvert */
.faq-item.is-active .faq-question {
  color: var(--main-color);
}

.faq-item.is-active .faq-icon {
  transform: rotate(45deg); /* L'icône '+' devient 'x' */
}

.home-seo-text {
  text-align: center;
  background-color: var(--troisieme-color);
}

.home-seo-text span {
  color: var(--main-color);
  font-size: 3rem;
  font-family: var(--secondary-font);
}

.home-seo-text .section-cta {
  margin-top: 2rem;
}

.home-seo-text p:first-of-type {
  margin-bottom: 3rem;
}

.seo-text-cta-title {
  margin-top: 5rem;
  text-align: center;
  font-size: 2.2rem;
  font-family: var(--secondary-font);
  color: var(--main-color);
}

/* Média principal d'un article de blog (image ou vidéo) */
.blog-article-media {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.blog-article-tags {
  margin-top: 2rem;
}

/* ======================================================= */
/* == NOUVELLES SECTIONS ACCUEIL (BLOG, ABOUT, PRICING) == */
/* ======================================================= */

/* --- Styles Communs aux Nouvelles Sections --- */
.section-header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.section-header p {
  margin-bottom: 4rem;
}

.section-intro {
  color: var(--secondary-color);
  padding-bottom: 0;
}

.section-cta {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* --- Section Blog --- */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-card {
  text-align: center;
  background-color: var(--troisieme-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--dark-color-05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px var(--dark-color);
}

.blog-card-link {
  color: inherit;
  display: flex !important;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex !important;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-top: 0;
}

.blog-card p {
  padding-bottom: 1rem;
  color: var(--secondary-color);
  font-size: 0.95rem;
  flex-grow: 1; /* Le paragraphe s'étire au maximum */
  display: flex; /* Optionnel : permet de mieux gérer l'espace interne */
  flex-direction: column;
  margin-bottom: 0;
}

.blog-link {
  font-weight: bold;
  color: var(--main-color);
  margin-top: auto; /* Force le lien à se coller au bas du parent flex */
}

/* --- Section À Propos --- */
/* ======================================================= */
/* == SECTION À PROPOS - BASE MOBILE ===================== */
/* ======================================================= */

.about-section {
  background-color: var(--troisieme-color);
  color: var(--secondary-color);
  overflow: hidden;
}

.about-wrapper {
  display: flex;
  flex-direction: column; /* Empilement vertical sur mobile */
  gap: 60px;
  text-align: center; /* Centrage du texte pour mobile */
}

.about-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.about-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 10px 10px 0px var(--main-color); /* Bordure plus petite sur mobile */
  display: block;
}

.experience-badge {
  position: absolute;
  bottom: -40px;
  right: -15px;
  background: var(--dark-color);
  color: var(--light-color);
  padding: 12px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 20px var(--dark-color-05);
  animation: floating 3s ease-in-out infinite;
}

.experience-badge .years {
  text-align: center;
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--main-color);
}

.experience-badge .text {
  font-size: 0.8rem;
  white-space: nowrap;
}

.about-subtitle {
  margin-bottom: 1.5rem;
}

.about-text {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--secondary-color);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2.5rem;
  align-items: center;
  justify-content: center;
}

.feature-item {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--main-color);
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* --- Section Tarifs --- */
.home-pricing {
  background-color: var(--dark-color);
  color: var(--light-color);
}

.home-pricing .section-title,
.home-pricing .section-intro {
  color: var(--light-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.pricing-card {
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--secondary-color);
  transition:
    box-shadow 1s ease,
    border-color 1s ease,
    outline 1s ease;
}

.pricing-card:hover {
  border-color: var(--light-color);
  box-shadow: 0 15px 40px var(--secondary-color);
  outline: 0px solid var(--light-color);
}

.pricing-card .read-more {
  color: var(--main-color);
  margin-bottom: 1rem;
}

.pricing-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card a:hover {
  text-decoration: none;
}

.pricing-card i {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-top: 1rem;
}

.pricing-card h3 {
  color: var(--light-color);
  font-size: 1.5rem;
}

.pricing-start {
  font-size: 1rem;
  color: var(--light-color);
  margin-bottom: 25px;
}

.pricing-start span {
  font-family: var(--secondary-font);
  font-size: 2.5rem;
  font-weight: bold;
  margin-left: 5px;
  color: var(--main-color);
}

.pricing-card p {
  color: var(--light-color);
  padding-bottom: 40px;
  font-size: 0.95rem;
}
.pricing-subtitle {
  color: var(--light-color);
}

/* ======================================================= */
/* == 6. FOOTER GLOBAL (MOBILE) ========================== */
/* ======================================================= */

.site-footer {
  background-color: var(--dark-color);
  color: var(--troisieme-color);
  overflow-x: hidden; /* Sécurité anti-débordement */
  text-align: center;
}

.site-footer a {
  color: var(--troisieme-color); /* Sécurité anti-débordement */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  gap: 3rem;
}

.footer-col h4 {
  color: var(--light-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-decoration: underline;
  text-decoration-color: var(--main-color); /* Couleur du trait */
  text-decoration-thickness: 3px; /* Épaisseur */
  text-underline-offset: 2px; /* Distance du texte */
  text-decoration-skip-ink: none; /* Le trait passe sous les lettres comme 'p' ou 'q' */
}

.footer-contact-details ul,
.footer-navigation ul {
  list-style: none;
}

.footer-contact-details li,
.footer-navigation li {
  margin-bottom: 1rem;
}

.footer-contact-details a,
.footer-navigation a,
.footer-about p {
  word-wrap: break-word; /* Force le texte à revenir à la ligne s'il est trop long */
  overflow-wrap: break-word;
  font-size: 0.95rem;
  /* On réduit légèrement la taille sur mobile */
}

.footer-contact-details a:hover,
.footer-navigation a:hover {
  color: var(--main-color);
  text-decoration: none;
}

/* Style pour les icônes dans les coordonnées */
.footer-contact-details i {
  margin-right: 0.8rem;
  color: var(--main-color);
  width: 20px; /* Assure un alignement propre */
  text-align: center;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-wave iframe {
  padding-bottom: 4rem;
  width: 100%;
  height: 250px;
}

/* Style pour les réseaux sociaux */
.social-links {
  display: grid;
  gap: 1.2rem; /* Permet aux icônes de passer à la ligne si besoin */
}

.social-links i {
  color: var(--main-color);
}

.social-links a {
  color: var(--troisieme-color);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-links a:hover {
  color: var(--main-color);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Ligne de copyright en bas */
.footer-bottom {
  background-color: var(--light-color);
  color: var(--dark-color);
  padding: 1.5rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--main-color);
  font-weight: bold;
}

/* ======================================================= */
/* == SCROLL TO TOP BUTTON ============================== */
/* ======================================================= */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  color: var(--light-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Caché par défaut */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 99; /* Au-dessus du contenu mais sous le menu */
  box-shadow: 0 4px 12px var(--dark-color-05);
  transition: all 0.3s ease;
}

/* Quand le bouton est visible */
.scroll-to-top.show {
  display: flex; /* Montre le bouton */
}

/* Hover state */
.scroll-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--dark-color-05);
}

/* Focus state (accessibilité) */
.scroll-to-top:focus {
  outline: 3px solid var(--light-color);
  outline-offset: 2px;
}

/* Sur mobile, plus petit */
@media (max-width: 600px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/**
 * Feuille de style pour les écrans larges (> 900px)
 * Développé par: [Votre Nom]
 * Version: 1.1
 * Gère la disposition pour tablettes et ordinateurs.
 */

@media (min-width: 900px) {
  /* ======================================================= */
  /* == 1. HEADER (DESKTOP) ================================ */
  /* ======================================================= */
  h1 {
    font-size: 2.2rem;
  }

  h1 span {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1.1rem;
  }

  .hero-h2 {
    font-size: 1.4rem;
  }

  .section-cta {
    margin-top: 6rem;
    margin-bottom: 2rem;
  }

  .hero-h4 {
    font-size: 1.2rem;
  }

  .hero-brand {
    font-size: 3rem;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Le bouton hamburger est caché sur grand écran */
  .nav-toggle {
    display: none;
  }

  /* Le menu principal est visible et centré */
  .main-nav {
    display: block;
    position: static;
    background-color: transparent;
    box-shadow: none;
    margin-left: auto; /* Centre le menu entre le logo et le CTA */
    margin-right: auto; /* en prenant l'espace disponible */
  }

  /* Disposition des liens du menu */
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin-left: 40px;
    gap: clamp(0.1rem, 0.5vw, 1.3rem); /* Espacement fluide entre les liens */
  }

  .nav-links li a {
    border-bottom: none;
    white-space: nowrap; /* Empêche "À propos" de passer à la ligne */

    /* Propriétés fluides pour la police et le padding */
    font-size: clamp(0.5rem, 1.3vw, 1.1rem);
    padding: 0.5rem clamp(0.2rem, 1.3vw, 1.2rem);

    /* Transitions pour l'effet de survol */
    transition:
      color 0.3s ease,
      background-color 0.3s ease,
      transform 1s ease;
  }

  .nav-links li a:hover {
    background-color: var(--main-color);
    transform: scale(1.1);
    text-decoration: none;
  }

  /* Style pour le lien actif (identique au hover) */
  .nav-links li.active a {
    background-color: var(--main-color);
    color: var(--light-color);
    transform: scale(1);
    text-decoration: none;
  }

  /* Bouton CTA du header fluide */

  /* ======================================================= */
  /* == 2. STYLES GÉNÉRAUX (DESKTOP) ======================= */
  /* ======================================================= */

  main {
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-subtitle {
    font-size: 1.5rem;
  }
  /* ======================================================= */
  /* == 3. STYLES SPÉCIFIQUES AUX PAGES (DESKTOP) ========== */
  /* ======================================================= */

  /* --- Page d'accueil --- */

  .hero-content {
    position: relative;
    z-index: 3;
    padding-left: 0;
    padding-right: 0;
    max-width: 900px;
  }

  .hero-slogan {
    font-family: "Marck Script", serif;
    font-weight: 400;
    font-size: 1.7rem;
    font-style: normal;
    color: var(--light-color);
    margin-top: -1rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }

  /* ===================================================== */
  /* == GRILLE SERVICES – VERSION DESKTOP ================ */
  /* ===================================================== */

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .service-card h3 {
    color: var(--main-color);
    font-size: 1.2rem;
    margin-top: 0;
    text-decoration: none !important;
    height: 62px;
  }

  /* --- Disposition Bento Grid pour la section Services --- */
  .bento-grid {
    grid-template-columns: repeat(3, 1fr); /* Crée 2 lignes */
  }

  /* ======================================================= */
  /* == SECTION À PROPOS - AJUSTEMENTS DESKTOP === */
  /* ======================================================= */

  .about-wrapper {
    flex-direction: row; /* Passage en côte à côte */
    align-items: center;
    gap: 80px; /* Texte aligné à gauche sur PC */
    max-width: 1200px;
    margin: 0 auto;
  }

  .about-image-container {
    flex: 1;
    margin: 0;
  }

  .about-img {
    box-shadow: 20px 20px var(--main-color); /* Bordure plus large sur PC */
  }

  .about-img:hover {
    transform: translate(-10px, -10px);
    transition: transform 0.4s ease;
  }

  .about-content {
    flex: 1.2;
  }

  .about-features {
    flex-direction: row; /* Icônes côte à côte sur PC */
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 25px;
  }

  .experience-badge {
    bottom: -50px;
    right: -25px;
  }

  .experience-badge .years {
    font-size: 2rem;
  }

  /* 3. L'effet au survol de la CARTE entière */
  /* Note : le survol de .card-link (le lien global) déclenche le ::after de .read-more */
  .card-link:hover .read-more::after,
  .prestation-card-overlay:hover .read-more::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .prestation-card-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .prestations-grid {
    grid-template-columns: repeat(3, 1fr);
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne */
    justify-content: center; /* CENTRE TOUT : les 3 du haut ET les 2 du bas */
    gap: 2rem;
    max-width: 1200px;
  }

  .prestation-card a {
    min-width: 350px;
  }
  /* --- Modernisation de la section Portfolio (Desktop) --- */

  .portfolio-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Contexte de positionnement indispensable */
    /* On annule les styles de grille mobile */
    grid-template-columns: none;
    min-height: 450px;
    margin-top: 0;
    /* On donne une hauteur minimale pour que les images aient de la place */
  }

  .portfolio-item {
    position: absolute;
    width: 300px;
    padding: 1rem;
    padding-bottom: 4rem;
    background-color: var(--troisieme-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--dark-color-05);

    /* On annule l'animation mobile */
    animation: none;
    opacity: 1;

    transition: all 0.4s ease;
  }

  .portfolio-item:nth-child(1) {
    /* C'est CETTE ligne qui contrôle l'espacement */
    transform: rotate(-20deg) translateX(-320px) translateY(-50px);
    z-index: 1;
  }
  .portfolio-item:nth-child(2) {
    transform: rotate(
      0deg
    ); /* L'image du centre ne bouge pas horizontalement */
    z-index: 2;
  }
  .portfolio-item:nth-child(3) {
    /* Et CELLE-CI */
    transform: rotate(20deg) translateX(320px) translateY(-50px);
    z-index: 1;
  }

  /* Survol de la première image (gauche) */
  .portfolio-item:nth-child(1):hover {
    /* On zoome, on redresse, MAIS ON GARDE le décalage translateX */
    transform: scale(1.1) rotate(0) translateX(-220px);
    z-index: 3;
    box-shadow: 0 25px 50px var(--dark-color-05);
  }

  /* Survol de la deuxième image (centre) */
  .portfolio-item:nth-child(2):hover {
    /* Elle est déjà presque au centre, on la zoome et la redresse complètement */
    transform: scale(1.1) rotate(0);
    z-index: 3;
    box-shadow: 0 25px 50px var(--dark-color-05);
  }

  /* Survol de la troisième image (droite) */
  .portfolio-item:nth-child(3):hover {
    /* On zoome, on redresse, MAIS ON GARDE le décalage translateX */
    transform: scale(1.1) rotate(0) translateX(220px);
    z-index: 3;
    box-shadow: 0 25px 50px var(--dark-color-05);
  }

  .portfolio-item figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    text-align: center;
  }

  .portfolio-item a {
    display: block;
    cursor: zoom-in;
  }

  /* ======================================================= */
  /* == SECTION FAQ (DESKTOP) ============================== */
  /* ======================================================= */

  .faq-header {
    text-align: center; /* On place l'en-tête avant l'accordéon */
  }

  .home-faq .section-title {
    text-align: center; /* On aligne à gauche */
    line-height: 1.1;
  }

  .faq-accordion {
    margin-top: 0;
  }

  .faq-question {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  /* ======================================================= */
  /* == NOUVELLES SECTIONS (DESKTOP) ========================= */
  /* ======================================================= */

  /* --- Styles Communs --- */
  .section-cta {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  /* --- Section Blog (Desktop) --- */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Section Tarifs (Desktop) --- */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .pricing-card h3 {
    min-height: 5rem;
  }

  /* ======================================================= */
  /* == FOOTER GLOBAL (DESKTOP) ============================ */
  /* ======================================================= */

  .footer-grid .footer-contact-details,
  .footer-grid .footer-navigation,
  .footer-grid .footer-social {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem; /* 4 colonnes égales sur très grands écrans */
  }
  .footer-grid .footer-about {
    grid-column: auto; /* On annule le span */
  }
}

/* Cache sur mobile si trop gênant */
@media (max-width: 600px) {
  .skip-link {
    font-size: 0.875rem;
  }
}

/* ======================================================= */
/* == PAGES INTÉRIEURES — STYLES COMMUNS ================ */
/* == (services, prestations, tarifs, portfolio,         */
/* ==  a-propos, faq, contact...)                        */
/* ======================================================= */

/* --- Hero de page (toutes les pages intérieures) ------- */

.page-hero {
  position: relative;
  min-height: 50vh;
  background-color: var(--dark-color); /* fallback si image absente */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Image de fond spécifique par page via classe modificatrice */
.page-hero--services {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-services.avif");
}

.page-hero--prestations {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-prestations.avif");
}

.page-hero--portfolio {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-portfolio.avif");
}

.page-hero--tarifs {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-tarifs.avif");
}

.page-hero--a-propos {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-a-propos.avif");
}

.page-hero--faq {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-faq.avif");
}

.page-hero--contact {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-contact.avif");
}

.page-hero--blog {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)),
    url("/assets/media/index/hero-blog.avif");
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem;
}

.page-hero-content h1 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.page-hero-subtitle {
  color: var(--troisieme-color);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

/* --- Fil d'Ariane (Breadcrumb) ------------------------- */

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  color: var(--troisieme-color);
  font-size: 0.85rem;
  opacity: 0.8;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
}

.breadcrumb a {
  color: var(--troisieme-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--main-color);
  text-decoration: none;
}

/* --- Introduction courte sous le hero ------------------ */

.page-intro {
  background-color: var(--light-color);
  padding: 3rem 0;
  border-bottom: 2px solid var(--troisieme-color);
}

.page-intro p {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--secondary-color);
}

/* --- Sections intérieures (H2 + paragraphe + lien) ----- */

.page-section {
  background-color: var(--troisieme-color);
  padding: 4rem 0;
  text-align: center;
}

/* Alternance fond sombre */
.page-section--alt {
  background-color: var(--light-color);
}

/* Titre de section avec icône */
.page-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.page-section-icon {
  color: var(--main-color);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

/* Paragraphe de section */
.page-section p {
  line-height: 1.85;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 3rem;
}

/* Lien "Découvrir →" */
.page-section-link {
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--main-color);
  text-decoration: none !important;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--main-color);
  transition:
    gap 0.3s ease,
    color 0.3s ease;
  width: 100%;
}

.page-section-link:hover {
  gap: 1rem;
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  text-decoration: none;
}

/* --- CTA final (fond sombre, centré) ------------------- */

.page-cta-final {
  background-color: var(--dark-color);
  text-align: center;
}

.page-cta-final h2 {
  color: var(--light-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.page-cta-final p {
  color: var(--troisieme-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ======================================================= */
/* == PAGES INTÉRIEURES — DESKTOP (min-width: 900px) ===== */
/* ======================================================= */
/* ======================================================= */
/* == FORMULAIRE DE CONTACT ============================== */
/* ======================================================= */

.contact-form {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

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

.form-group label span {
  color: var(--main-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 2px solid var(--troisieme-color);
  border-radius: 8px;
  font-family: var(--main-font);
  font-size: 1rem;
  color: var(--dark-color);
  background-color: #ffffff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(216, 30, 5, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Checkbox RGPD */
.form-consent {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 400 !important;
  font-size: 0.88rem !important;
  color: var(--secondary-color) !important;
  cursor: pointer;
  text-align: left;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--main-color);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--main-color);
  text-decoration: underline;
}

/* Bouton submit */
.form-submit {
  text-align: center;
  margin-top: 0.8rem;
}

.form-submit .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* Desktop form */
@media (min-width: 900px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .page-hero {
    min-height: 58vh;
  }

  .page-hero-content h1 {
    font-size: 2.4rem;
  }

  .page-hero-subtitle {
    font-size: 1.15rem;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }

  .page-intro p {
    font-size: 1.1rem;
  }

  .page-section {
    padding: 5rem 0;
  }

  .page-section-title {
    font-size: 1.8rem;
    gap: 0.9rem;
  }

  .page-section-icon {
    font-size: 1.7rem;
  }

  .page-section p {
    font-size: 1.05rem;
  }

  .page-section-link {
    width: auto;
    font-size: 1.05rem;
  }

  .page-cta-final h2 {
    font-size: 2rem;
  }
}

/* ======================================================= */
/* == MESSAGES DE RETOUR FORMULAIRE CONTACT ============= */
/* == (à coller dans style.css après la section         */
/* == "FORMULAIRE DE CONTACT")                          */
/* ======================================================= */

/*
 * Ces styles gèrent l'affichage du message de succès
 * ou d'erreur après soumission du formulaire de contact.
 *
 * Utilisation dans contact.php :
 * <?php
 * $status = $_GET['status'] ?? '';
 * $msg    = $_GET['msg']    ?? '';
 * if ($status && $msg) : ?>
 *   <div class="form-feedback form-feedback--<?= htmlspecialchars($status) ?>">
 *     <i class="fa-solid <?= $status === 'success' ? 'fa-circle-check' : 'fa-circle-xmark' ?>"></i>
 *     <p><?= htmlspecialchars($msg) ?></p>
 *   </div>
 * <?php endif; ?>
 */

.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: feedbackFadeIn 0.4s ease;
}

@keyframes feedbackFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Succès */
.form-feedback--success {
  background-color: rgba(22, 163, 74, 0.08);
  border: 1.5px solid rgba(22, 163, 74, 0.4);
  color: #166534;
}

.form-feedback--success i {
  color: #16a34a;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Erreur */
.form-feedback--error {
  background-color: rgba(216, 30, 5, 0.06);
  border: 1.5px solid rgba(216, 30, 5, 0.35);
  color: #7f1d1d;
}

.form-feedback--error i {
  color: var(--main-color);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-feedback p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
}

/* ======================================================= */
/* == PAGES LÉGALES (mentions, confidentialité,         */
/* == CGV, cookies, remboursement, accessibilité)       */
/* ======================================================= */

.legal-page {
  background-color: var(--light-color);
  padding: 4rem 0 5rem;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
}

/* Date de mise à jour */
.legal-update {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* Bloc de section légale */
.legal-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--troisieme-color);
}

.legal-block:last-of-type {
  border-bottom: none;
}

/* Titres H2 des blocs */
.legal-block h2 {
  font-size: 1.15rem;
  color: var(--dark-color);
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--main-color);
  text-align: left;
}

/* Titres H3 (sous-sections) */
.legal-block h3 {
  font-size: 1rem;
  color: var(--dark-color);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  text-align: left;
}

/* Paragraphes */
.legal-block p {
  color: var(--secondary-color);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: left;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

/* Listes */
.legal-block ul,
.legal-block ol {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-block li {
  margin-bottom: 0.4rem;
}

/* Liens dans les blocs légaux */
.legal-block a {
  color: var(--main-color);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.legal-block a:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* Tableaux (pour les cookies, CGV...) */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--troisieme-color);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.legal-table thead {
  background-color: var(--dark-color);
  color: var(--light-color);
}

.legal-table th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--troisieme-color);
  vertical-align: top;
  line-height: 1.6;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Navigation entre documents légaux */
.legal-nav {
  background-color: var(--troisieme-color);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.legal-nav p {
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legal-nav li a {
  display: inline-block;
  color: var(--secondary-color);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background-color: var(--light-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.legal-nav li a:hover {
  background-color: var(--main-color);
  color: var(--light-color);
  text-decoration: none;
}

/* Badge de statut pour les cookies (actif/passif) */
.badge-actif {
  display: inline-block;
  background-color: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-inactif {
  display: inline-block;
  background-color: rgba(156, 163, 175, 0.15);
  color: #4b5563;
  border: 1px solid rgba(156, 163, 175, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ======================================================= */
/* == PAGES LÉGALES — DESKTOP (min-width: 900px) ======= */
/* ======================================================= */

@media (min-width: 900px) {
  .legal-block h2 {
    font-size: 1.25rem;
  }

  .legal-block p,
  .legal-block ul,
  .legal-block ol {
    font-size: 1rem;
  }

  .legal-table {
    font-size: 0.95rem;
  }
}

/* ============================================================ */
/* BANNIÈRE COOKIES — CAPTURE MOI                              */
/* Compatible avec le design system (variables CSS globales)   */
/* ============================================================ */

/* ============================================================ */
/* == BANNIÈRE PRINCIPALE (barre en bas de l'écran) ========= */
/* ============================================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--dark-color, #1a1a1a);
  border-top: 3px solid var(--main-color, #d81e05);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner[hidden] {
  display: none;
}

#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-title {
  color: var(--light-color, #f5f5f5);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-title i {
  color: var(--main-color, #d81e05);
  font-size: 1rem;
}

.cookie-banner-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-link {
  color: var(--main-color, #d81e05);
  text-decoration: underline;
  font-size: 0.85rem;
  margin-left: 0.3rem;
  transition: opacity 0.2s;
}

.cookie-banner-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
}

/* ============================================================ */
/* == BOUTONS COOKIES                                         */
/* ============================================================ */

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

/* Bouton principal — Accepter */
.cookie-btn--primary {
  background-color: var(--main-color, #d81e05);
  color: #ffffff;
  border-color: var(--main-color, #d81e05);
}

.cookie-btn--primary:hover {
  background-color: transparent;
  color: var(--main-color, #d81e05);
}

/* Bouton secondaire — Refuser */
.cookie-btn--ghost {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Bouton outline — Paramétrer */
.cookie-btn--outline {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.cookie-btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================ */
/* == OVERLAY PANNEAU DE PARAMÉTRAGE                         */
/* ============================================================ */

#cookie-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

#cookie-settings-overlay[hidden] {
  display: none;
}

#cookie-settings-overlay.cookie-settings--visible {
  opacity: 1;
}

.cookie-settings-panel {
  position: relative;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.cookie-settings--visible .cookie-settings-panel {
  transform: scale(1) translateY(0);
}

/* Bouton fermeture */
.cookie-settings-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.cookie-settings-close:hover {
  background-color: #f0f0f0;
  color: var(--dark-color, #1a1a1a);
}

.cookie-settings-title {
  font-size: 1.2rem;
  color: var(--dark-color, #1a1a1a);
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  text-align: left;
}

.cookie-settings-intro {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

/* Ligne de cookie */
.cookie-settings-item {
  border-top: 1px solid #f0f0f0;
  padding: 1.2rem 0;
}

.cookie-settings-item:last-of-type {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.cookie-settings-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-settings-item-header > div:first-child {
  flex: 1;
}

.cookie-settings-item-header strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark-color, #1a1a1a);
  margin-bottom: 0.3rem;
}

.cookie-settings-item-header p {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================ */
/* == TOGGLE SWITCH                                          */
/* ============================================================ */

.cookie-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

/* Version "toujours actif" */
.cookie-toggle--locked {
  cursor: default;
}

.cookie-toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Toggle interactif */
.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  background-color: #e0e0e0;
  border-radius: 13px;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--main-color, #d81e05);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(216, 30, 5, 0.2);
}

/* ============================================================ */
/* == FOOTER DU PANNEAU                                      */
/* ============================================================ */

.cookie-settings-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.cookie-settings-footer .cookie-btn--primary {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
}

.cookie-settings-link {
  font-size: 0.8rem;
  color: #999;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-settings-link:hover {
  color: var(--main-color, #d81e05);
  text-decoration: none;
}

/* ============================================================ */
/* == RESPONSIVE DESKTOP                                     */
/* ============================================================ */

@media (min-width: 768px) {
  #cookie-banner {
    padding: 1.4rem 2rem;
  }

  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
  }

  .cookie-banner-actions {
    flex-wrap: nowrap;
    width: auto;
    flex-shrink: 0;
  }

  .cookie-settings-panel {
    padding: 2.5rem;
  }

  .cookie-settings-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cookie-settings-footer .cookie-btn--primary {
    width: auto;
    padding: 0.7rem 1.6rem;
  }
}

/* ======================================================= */
/* == PORTFOLIO ITEMS GRID (sous-pages portfolio) ======= */
/* == À ajouter à la fin de style.css                    */
/* ======================================================= */

.portfolio-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.portfolio-items-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: 0 6px 20px var(--dark-color-05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.portfolio-items-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px var(--dark-color);
}

.portfolio-items-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.portfolio-items-grid a:hover img {
  transform: scale(1.08);
}

/* Icône de zoom sur hover (visuel discret) */
.portfolio-items-grid a::after {
  content: "\f00e"; /* Font Awesome search-plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: var(--light-color);
  font-size: 1.5rem;
  background: var(--main-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.portfolio-items-grid a:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Desktop : grille 4 colonnes */
@media (min-width: 900px) {
  .portfolio-items-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Tablette : grille 2 colonnes */
@media (min-width: 600px) and (max-width: 899px) {
  .portfolio-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
