/* =========================================
   1. VARIABLES & RESET
========================================= */

:root {
  --primary: #E30613;
  --rouge:   #E30613;
  --text:    #2D2D2D;
  --bg:      #FFFFFF;
  --bgtrans: rgba(255, 255, 255, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #000 url('background.jpg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  line-height: 1.7;
  color: var(--text);
  overflow-x: hidden;
  animation: bgZoomDesktop 20s ease-in-out infinite alternate;
}

/* Corps spécifique aux pages légales */
.legal-body {
  background: #000 url('background.jpg') no-repeat center center;
  background-size: cover;
  color: #f5f5f5;
}

/* =========================================
   2. LAYOUT / UTILITAIRES
========================================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Titres / textes de section génériques */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 900;
}

.section-subtitle {
  font-size: 1.6rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 300;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.8;
}

.section-intext {
  font-size: 2.1rem;
  color: var(--text);
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.8;
}

/* Sections spécifiques avec fond translucide (index) */
.for-everyone,
.everywhere {
  padding: 10rem 0;
  background: var(--bgtrans);
}

/* La section "Pour toutes et tous" descend un peu moins bas */
.for-everyone {
  padding-bottom: 6rem;
}

/* Section titre "Un accompagnement structuré..." */
.services-subsection-title {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-top: 3rem;
}

/* Texte sous le titre */
.services-grid-section .section-intext {
  color: #f0f0f0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  max-width: 900px;
  margin: 1.5rem auto 3rem;
  text-align: center;
}

/* =========================================
   3. BOUTONS & CTA
========================================= */

/* Style de base pour tous les boutons-pillules */
.btn-pill,
.hero-button,
.hero-cta-main,
.section-link,
.cta-group .cta-red,
.about-cta,
.about-cta-secondary,
.contact-cta,
.legal-btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  background: var(--rouge);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 16px 40px rgba(255, 0, 0, 0.35);
  transition: 0.25s ease;
  cursor: pointer;
}

.hero-button,
.hero-cta-main {
  font-size: 1.1rem;
  padding: 1rem 2.8rem;
  box-shadow: 0 40px 60px rgba(255, 0, 0, 0.4);
  animation: buttonPop 1.8s ease-out 2.3s both;  
}

.hero-button:hover,
.hero-cta-main:hover,
.section-link:hover,
.cta-group .cta-red:hover,
.about-cta:hover,
.about-cta-secondary:hover,
.contact-cta:hover,
.legal-btn:hover {
  transform: translateY(-3px);
  background: #ff2a2a;
  box-shadow: 0 22px 50px rgba(255, 0, 0, 0.45);
}

/* Boutons spécifiques légaux */
.legal-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.legal-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Groupe de CTA rouges (index) */
.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.cta-group .cta-red {
  font-size: 0.9rem;
}

/* Lien de section */
.section-link-wrapper {
  text-align: center;
}

/* =========================================
   4. NAV MOBILE (SI UTILISÉE)
========================================= */

.nav-links {
  list-style: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* =========================================
   5. HERO (PAGE D’ACCUEIL)
========================================= */

.hero {
  --hero-font-size: clamp(3.2rem, 7vw, 6rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 0;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--hero-font-size);
  font-weight: 900;
  color: #fff;
  line-height: 0.9;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  animation: textReveal 3.2s cubic-bezier(.16,.84,.44,1) 1s both;
}

.hero-logo-left {
  height: clamp(120px, 14vw, 220px);
  width: auto;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5));
  animation:
    logoEnter 2.9s cubic-bezier(.16,.84,.44,1) 1s both,
    logoFloat 18s ease-in-out 4s infinite alternate;
}

.section-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 6vw, 3rem);
  color: var(--bg);
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  font-weight: 500;
  animation: fadeSlideLeft 3.8s ease-out 1.5s both;
}

.plus {
  font-weight: 900;
  color: #fff;
}

/* =========================================
   6. SERVICES LISTE (INDEX)
========================================= */

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  list-style: none;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.services-list li {
  padding: 1.1rem;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s;
  font-weight: 500;
}

.services-list li:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================
   7. TUILLES FLIP (SERVICES)
========================================= */

.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
  margin: 3.5rem auto;
  max-width: 1350px;
  justify-content: center;
}

.flip-card {
  perspective: 1000px;
  height: 280px;
  width: 100%;
  background: rgba(10, 10, 10, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.6rem;
  text-align: center;
}

.flip-front {
  background-size: cover;
  background-position: center;
}

.flip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.5), rgba(227, 6, 19, 1));
  z-index: 1;
  border-radius: 18px;
}

.flip-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.flip-back {
  background: linear-gradient(135deg, rgb(155, 6, 13), rgba(227, 6, 19, 1));
  color: #fff;
  transform: rotateY(180deg);
  justify-content: center;
  align-items: flex-start;
  padding: 1.8rem 1.6rem;
}

.flip-back ul {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  font-size: 0.86rem;
  line-height: 1.55;
}

.flip-back li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
  word-wrap: break-word;
  font-weight: 500;
}

.flip-back li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: bold;
}

/* =========================================
   8. SCROLL REVEAL (GÉNÉRIQUE)
========================================= */

.sr {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

.sr.sr-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   9. A PROPOS
========================================= */

.about-hero {
  padding: 8rem 0 6rem;
  background: transparent;
  color: #f5f5f5;
}

.about-hero .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.about-logo img {
  width: 200px;
  height: auto;
  border-radius: 14px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translateX(-12px);
  animation: fadeLogoIn 0.8s ease-out forwards;
}

.about-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.1;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.about-subtitle {
  margin-top: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--bg);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.about-subtitle .highlight {
  color: var(--rouge);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Soulignement animé */
.about-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.8rem;
  width: 150px;
  height: 3px;
  border-radius: 999px;
  background: var(--rouge);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(.16,.84,.44,1);
}

.sr.sr-visible .about-header::after {
  transform: translateX(-50%) scaleX(1);
}

/* Carte texte */
.about-card {
  background: rgba(6, 7, 16, 0.9);
  border-radius: 18px;
  padding: 2.8rem 3rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Ligne rouge animée */
.about-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2rem;
  bottom: 2rem;
  width: 6px;
  background: var(--rouge);
  border-radius: 3px;
  transform-origin: top;
  transform: scaleY(0);
  animation:
    lineGrow 0.7s ease-out 0.3s forwards,
    lineGlow 1.8s ease-in-out 1s infinite alternate;
}

/* Texte */
.about-content {
  margin-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #dadada;
  max-width: 70ch;
}

.about-content p {
  margin: 0;
}

/* Liste */
.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.about-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.4rem;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.6em;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--rouge);
}

/* Boutons A propos */
.about-footer {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   10. CONTACT
========================================= */

.contact-hero {
  padding: 8rem 0 6rem;
  background: transparent;
  color: #f5f5f5;
}

.contact-hero .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 3.2vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.55);
}

.contact-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: #e4e4e4;
  max-width: 60ch;
  margin: 0 auto;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.55);
}

.contact-subtitle .highlight {
  color: var(--rouge);
  font-weight: 700;
}

/* Grille principale */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Carte formulaire */
.contact-card {
  background: rgba(6, 7, 16, 0.92);
  border-radius: 18px;
  padding: 2.5rem 2.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2rem;
  bottom: 2rem;
  width: 4px;
  background: var(--rouge);
  border-radius: 3px;
}

/* Formulaire */
.contact-form {
  margin-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f0f0f0;
}

.field-optional {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #f5f5f5;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.6);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Consentement */
.form-consent {
  margin-top: 0.4rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #dcdcdc;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* Colonne info */
.contact-info {
  background: rgba(0, 0, 0, 0.45);
  padding: 1.8rem 1.6rem;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.contact-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-list .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.contact-list .value {
  font-weight: 600;
}

.contact-note {
  font-size: 0.9rem;
  opacity: 0.9;
}

.contact-back {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-back:hover {
  opacity: 1;
  transform: translateX(-2px);
}

/* Liens sociaux */
.contact-social {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-social-link:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.contact-icon svg {
  width: 15px;
  height: 15px;
}

.contact-icon-linkedin svg {
  fill: #0a66c2;
}

.contact-icon-mail svg {
  fill: var(--rouge);
}

.contact-social-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================
   11. PAGE SERVICES (STYLE TYPE "A PROPOS")
========================================= */

.services {
  padding: 8rem 0 6rem;
  background: transparent;
  color: #f5f5f5;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.services-logo {
  width: 200px;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6));
}

.services-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.3rem, 3.2vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.8rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

/* Barre rouge animée sous le titre */
.services-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 150px;
  margin: 0.9rem auto 0;
  background: var(--rouge);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(.16,.84,.44,1);
}

.sr.sr-visible .services-title::after {
  transform: scaleX(1);
}

.services-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  max-width: 60ch;
  margin: 1.2rem auto 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Carte intro réutilisant le style .about-card */
.services-intro-card {
  margin: 2.5rem auto 3.5rem;
  max-width: 950px;
}

.services-intro-card .about-content {
  max-width: 100%;
}

.services-grid-section {
  padding: 0 0 6rem;
}

/* =========================================
   12. PAGES LÉGALES
========================================= */

.legal-hero {
  padding: 7rem 0 3rem;
  text-align: center;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.3rem, 3vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.legal-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  opacity: 0.9;
}

.legal-content {
  padding: 0 0 5rem;
}

.legal-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-content p,
.legal-content ul {
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-updated {
  font-size: 0.9rem;
  opacity: 0.9;
}

.legal-footer-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer légal global */
.legal-footer {
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
  opacity: 0.85;
}

.legal-footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
}

.legal-footer a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.legal-footer a:hover {
  opacity: 1;
}

.separator {
  opacity: 0.6;
}

/* Footer légal sur les pages "normales" (index, services, etc.) */
body:not(.legal-body) .legal-footer {
  position: relative;
  margin-top: 3rem;
  padding: 2.5rem 0 3rem;
}

body:not(.legal-body) .legal-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0)
  );
  z-index: -1;
}

body:not(.legal-body) .legal-footer-inner {
  background: rgba(0, 0, 0, 0.55);
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

body:not(.legal-body) .legal-footer a {
  color: #ffffff;
}

/* =========================================
   13. MOTS-CLÉS ANIMÉS
========================================= */

.keyword {
  position: relative;
  font-weight: 800;
  color: var(--rouge);
  display: inline-block;
}

.keyword.kw-visible {
  animation: keywordPop 2.6s ease-out forwards;
}

/* =========================================
   14. SWITCH DE LANGUE
========================================= */

.language-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-link {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  font-family: 'Poppins', sans-serif;
}

.lang-link:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

/* Langue active */
.lang-link.active {
  background: var(--rouge);
  font-weight: 700;
}

/* =========================================
   15. ANIMATIONS
========================================= */

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideRight {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes textReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes logoEnter {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateX(0) scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes buttonPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Effet de parallaxe desktop */
@keyframes bgZoomDesktop {
  0% {
    background-position: center 100%;
  }
  100% {
    background-position: center 150%;
  }
}

/* Effet de parallaxe mobile (mouvement réduit) */
@keyframes bgZoomMobile {
  0% {
    background-position: center top;
  }
  100% {
    background-position: center 120%;
  }
}

@keyframes fadeLogoIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lineGrow {
  to {
    transform: scaleY(1);
  }
}

@keyframes lineGlow {
  from {
    box-shadow: 0 0 0 rgba(255, 0, 0, 0);
  }
  to {
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.6);
  }
}

@keyframes logoFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes keywordPop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  60% {
    opacity: 1;
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

/* =========================================
   16. RESPONSIVE
========================================= */

/* <= 900px : contact en colonne */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    padding: 2.2rem 1.9rem;
  }

  .contact-card::before {
    top: 1.6rem;
    bottom: 1.6rem;
  }

  .contact-form {
    margin-left: 1.2rem;
  }
}

/* <= 768px : nav mobile, flip cards plus petites */
@media (max-width: 768px) {
  .flip-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .flip-card {
    height: 260px;
  }

  .flip-title {
    font-size: 1.1rem;
  }

  .flip-back ul {
    font-size: 0.82rem;
  }
}

/* <= 700px : layout about */
@media (max-width: 700px) {
  .about-row {
    flex-direction: column;
    gap: 1.2rem;
  }

  .about-title {
    text-align: center;
  }

  .about-hero {
    padding: 5rem 0 4rem;
  }
}

/* <= 600px : hero mobile + formulaires */
@media (max-width: 600px) {
  .hero {
    padding: 5rem 1rem 6rem;
    min-height: 100vh;
  }

  .hero-content {
    gap: 1.4rem;
  }

  .hero-row {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    line-height: 1.05;
    text-align: center;
  }

  .hero-logo-left {
    height: clamp(90px, 24vw, 130px);
    margin-bottom: 0.5rem;
  }

  .section-subtext {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .hero-cta-main,
  .hero-button {
    width: 100%;
    max-width: 320px;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .form-row {
    flex-direction: column;
  }

  .contact-cta {
    width: 100%;
    text-align: center;
  }

  .contact-social {
    justify-content: flex-start;
  }

  .language-switch {
    top: 0.8rem;
    right: 0.8rem;
  }

  .lang-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }

  /* Background : on recentre plus bas + anim mobile */
  body {
    background-position: center top;
    animation-name: bgZoomMobile;
  }
}

/* <= 480px : ajustements fins si nécessaire */
@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* <= 1100px : hero plus fluide */
@media (max-width: 1100px) {
  .hero-row {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    line-height: 1;
  }
}

/* TABLETTE & DESKTOP : hero et background */
@media (max-width: 1024px) {
  body {
    background-attachment: fixed;
  }

  .hero {
    padding: 6rem 1.5rem 8rem;
  }

  .hero-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 1;
  }

  .hero-logo-left {
    height: clamp(120px, 18vw, 180px);
    margin-bottom: 1rem;
  }

  .section-subtext {
    font-size: 1.1rem;
    max-width: 680px;
    margin-inline: auto;
  }
}

/* Desktop : on autorise le "fixed" pour le fond */
@media (min-width: 1024px) {
  body,
  .legal-body {
    background-attachment: fixed;
    animation-name: bgZoomDesktop;
  }
}
@media (max-width: 480px) {
  h2.section-title.services-subsection-title {
    font-size: 1.7rem;
    line-height: 1.2;
    white-space: normal;
  }
}
