/* ══════════════════════════════════════════════
   POLYLANGUES — MAIN.CSS (Styles communs)
   ══════════════════════════════════════════════ */

/* ── PALETTE & VARIABLES ── */
:root {
  --rouge:   #C8102E;
  --rouge-s: #8B0018;
  --ink:     #1A1A2E;
  --ink-nav: #2B2B3B;
  --white:   #FFFFFF;
  --off:     #F7F8FA;
  --gris:    #5C5C7A;
  --line:    rgba(26,26,46,.12);
  --line-r:  rgba(200,16,46,.12);
  --line-w:  rgba(255,255,255,.12);
  --fd: 'Bricolage Grotesque', sans-serif;
  --fb: 'Inter', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--fd); color: var(--ink); margin: 0; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--rouge); color: #fff; }

/* ── SECTION COMMONS ── */
.s-pad { padding-block: clamp(72px, 9vw, 120px); }
.s-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rouge); display: block; margin-bottom: 12px;
}
.s-title {
  font-family: var(--fd); font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  letter-spacing: -.035em; line-height: 1.08;
}
.s-sub { font-size: .97rem; color: var(--gris); line-height: 1.76; max-width: 470px; }

.eyeline {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rouge); display: block; margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   ANIMATIONS CRÉATIVES AU SCROLL
   Système data-anim + délais .d0-.d8
   Toutes basées sur opacity + transform (fiables)
   ══════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-56px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomFade {
  from { opacity: 0; transform: scale(.87); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes revealUp {
  /* Remplace clip-reveal — plus compatible */
  from { opacity: 0; transform: translateY(48px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}
@keyframes rotateUp {
  from { opacity: 0; transform: perspective(700px) rotateX(16deg) translateY(28px); }
  to   { opacity: 1; transform: perspective(700px) rotateX(0deg) translateY(0); }
}
@keyframes tiltLeft {
  from { opacity: 0; transform: perspective(800px) rotateY(-18deg) translateX(-28px); }
  to   { opacity: 1; transform: perspective(800px) rotateY(0deg) translateX(0); }
}
@keyframes tiltRight {
  from { opacity: 0; transform: perspective(800px) rotateY(18deg) translateX(28px); }
  to   { opacity: 1; transform: perspective(800px) rotateY(0deg) translateX(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(.65) translateY(18px); }
  65%  { opacity: 1; transform: scale(1.05) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes floatIn {
  0%   { opacity: 0; transform: translateY(44px) rotate(-1.5deg); }
  65%  { opacity: 1; transform: translateY(-5px) rotate(.4deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes blurReveal {
  from { opacity: 0; filter: blur(10px); transform: scale(1.03); }
  to   { opacity: 1; filter: blur(0px);  transform: scale(1); }
}
@keyframes riseUp {
  /* Remplace wipe-up — plus fiable */
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.4); }
  55%  { opacity: 1; transform: scale(1.07); }
  75%  { transform: scale(.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Compatibilité .rev (ancien système) ── */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.25,1,.5,1),
              transform .6s cubic-bezier(.25,1,.5,1);
}
.rev.in { opacity: 1; transform: none; }

/* ── data-anim — état initial ── */
[data-anim] { opacity: 0; }

/* ── Déclenchement au scroll (.is-visible) ── */
[data-anim].is-visible {
  animation-fill-mode: both;
  animation-duration: .72s;
  animation-timing-function: cubic-bezier(.22,.61,.36,1);
}

[data-anim="fade-up"].is-visible      { animation-name: fadeUp; }
[data-anim="fade-down"].is-visible    { animation-name: fadeDown; }
[data-anim="slide-left"].is-visible   { animation-name: slideLeft; }
[data-anim="slide-right"].is-visible  { animation-name: slideRight; }
[data-anim="zoom-fade"].is-visible    { animation-name: zoomFade;   animation-duration: .8s; }
[data-anim="clip-reveal"].is-visible  { animation-name: revealUp;   animation-duration: .8s; }
[data-anim="rotate-up"].is-visible    { animation-name: rotateUp;   animation-duration: .78s; }
[data-anim="tilt-left"].is-visible    { animation-name: tiltLeft;   animation-duration: .8s; }
[data-anim="tilt-right"].is-visible   { animation-name: tiltRight;  animation-duration: .8s; }
[data-anim="pop-in"].is-visible       { animation-name: popIn;      animation-duration: .65s; animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
[data-anim="float-in"].is-visible     { animation-name: floatIn;    animation-duration: .9s; }
[data-anim="blur-reveal"].is-visible  { animation-name: blurReveal; animation-duration: .85s; }
[data-anim="wipe-up"].is-visible      { animation-name: riseUp;     animation-duration: .72s; }
[data-anim="bounce-in"].is-visible    { animation-name: bounceIn;   animation-duration: .7s;  animation-timing-function: cubic-bezier(.34,1.56,.64,1); }

/* ── Délais staggerés ── */
.d0 { animation-delay: 0s;   transition-delay: 0s; }
.d1 { animation-delay: .1s;  transition-delay: .1s; }
.d2 { animation-delay: .18s; transition-delay: .18s; }
.d3 { animation-delay: .26s; transition-delay: .26s; }
.d4 { animation-delay: .34s; transition-delay: .34s; }
.d5 { animation-delay: .42s; transition-delay: .42s; }
.d6 { animation-delay: .5s;  transition-delay: .5s; }
.d7 { animation-delay: .58s; transition-delay: .58s; }
.d8 { animation-delay: .66s; transition-delay: .66s; }

/* ═══════════════ NAV (version fond blanc par defaut) ═══════════════ */
#navbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 900;
  padding: 14px 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(200,16,46,.08);
  transition: padding .3s, background .3s, box-shadow .3s;
}
#navbar.stuck { padding: 10px 0; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-link-item {
  font-size: .87rem; font-weight: 500;
  color: var(--ink); padding: 0 !important;
  transition: color .25s;
}
.nav-link-item:hover,
.nav-link-item.active { color: var(--rouge); }
.btn-nav {
  background: var(--rouge); color: #fff;
  font-size: .85rem; font-weight: 600;
  padding: 10px 22px; border-radius: 100px; border: none;
  box-shadow: 0 4px 14px rgba(200,16,46,.3);
  transition: transform .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200,16,46,.4);
  color: #fff;
}

/* ═══════════════ BOUTON MENU MOBILE ═══════════════ */
.menu-toggle {
  display: none; width: 32px; height: 22px; position: relative;
  background: transparent; border: none; cursor: pointer; padding: 0;
  z-index: 2001; margin-left: 10px;
}
@media (max-width: 991px) { .menu-toggle { display: block; } }
.menu-toggle span {
  display: block; position: absolute; height: 3px; background: var(--ink);
  border-radius: 4px; left: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-toggle span:nth-child(1) { top: 0; width: 100%; }
.menu-toggle span:nth-child(2) { top: 9px; width: 75%; }
.menu-toggle span:nth-child(3) { top: 18px; width: 50%; }
.menu-toggle:hover span { width: 100%; }
.menu-toggle.is-active span:nth-child(1) { top: 9px; transform: rotate(45deg); width: 100%; }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; left: -20px; }
.menu-toggle.is-active span:nth-child(3) { top: 9px; transform: rotate(-45deg); width: 100%; }

/* ═══════════════ MENU MOBILE OVERLAY ═══════════════ */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 1999; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem; clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}
body.menu-open .mobile-menu-overlay { clip-path: circle(150% at 100% 0%); }
body.menu-open .menu-toggle span { background: #fff !important; }
.mobile-menu-overlay::before {
  content: ''; position: absolute; bottom: -10vw; left: -10vw;
  width: 50vw; height: 50vw; background: var(--rouge);
  border-radius: 50%; filter: blur(80px); opacity: 0.15; z-index: 0; pointer-events: none;
}
.mobile-menu-content { position: relative; z-index: 1; width: 100%; max-width: 500px; margin: 0 auto; text-align: center; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.mobile-nav-item { transform: translateY(40px); opacity: 0; transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s; }
body.menu-open .mobile-nav-item { transform: translateY(0); opacity: 1; }
body.menu-open .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }
body.menu-open .mobile-nav-item:nth-child(6) { transition-delay: 0.35s; }
body.menu-open .mobile-nav-item:nth-child(7) { transition-delay: 0.4s; }
body.menu-open .mobile-nav-item:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav-link {
  font-family: var(--fd); font-size: clamp(2rem, 8vw, 3rem); font-weight: 800;
  color: #fff; letter-spacing: -0.02em; transition: color 0.2s; display: inline-block;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--rouge); }
.mobile-contact-info {
  margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(20px); opacity: 0; transition: all 0.5s 0.5s;
}
body.menu-open .mobile-contact-info { transform: translateY(0); opacity: 1; }
.mobile-contact-info p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.mobile-contact-info a { color: #fff; font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer-main { background: var(--ink); position: relative; overflow: hidden; }
.footer-main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--rouge) 0%, transparent 60%);
}
.footer-cta-band { padding: 72px 0 52px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-cta-title {
  font-family: var(--fd); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem); color: #fff;
  letter-spacing: -.04em; line-height: 1.05; margin-bottom: 24px;
}
.footer-cta-title em { font-style: normal; color: var(--rouge); }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rouge); color: #fff;
  font-size: .88rem; font-weight: 600;
  padding: 13px 28px; border-radius: 100px;
  box-shadow: 0 6px 20px rgba(200,16,46,.35);
  transition: transform .2s, box-shadow .2s;
}
.footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200,16,46,.5); color: #fff; }
.footer-cta-btn svg { width: 14px; height: 14px; }
.footer-cols { padding: 52px 0 44px; }
.footer-logo-img { height: 36px; width: auto; margin-bottom: 14px; display: block; filter: brightness(0) invert(1); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.35); line-height: 1.68; max-width: 210px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.footer-social a svg { width: 13px; height: 13px; }
.footer-col-title {
  font-family: var(--fd); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 18px; display: block;
}
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 10px; }
.footer-links-list a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links-list a:hover { color: #fff; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.footer-contact-row svg { width: 13px; height: 13px; color: var(--rouge); flex-shrink: 0; margin-top: 3px; }
.footer-contact-row span { font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.footer-contact-row a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer-contact-row a:hover { color: #fff; }
.footer-qualiopi {
  display: inline-flex; align-items: center; gap: 14px;
  border-radius: 12px; padding: 16px 20px; background: #fff;
  margin-top: 4px; max-width: 100%;
}
.footer-qualiopi img { height: 44px; width: auto; display: block; flex-shrink: 0; }
.footer-qualiopi-text { font-size: .72rem; color: var(--gris); line-height: 1.5; }
.footer-qualiopi-text strong { display: block; font-size: .8rem; color: var(--ink); margin-bottom: 2px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.2); }
.footer-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; flex-wrap: wrap; gap: 10px;
}
.footer-bar-inner span { font-size: .75rem; color: rgba(255,255,255,.2); }
.footer-bar-links a { font-size: .75rem; color: rgba(255,255,255,.25); margin-left: 20px; transition: color .2s; }
.footer-bar-links a:hover { color: rgba(255,255,255,.6); }

/* ═══════════════ BOUTONS COMMUNS ═══════════════ */
.btn-primary-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rouge); color: #fff;
  font-size: .9rem; font-weight: 600;
  padding: 15px 34px; border-radius: 100px; border: none;
  box-shadow: 0 6px 22px rgba(200,16,46,.4);
  transition: transform .3s cubic-bezier(.32,.72,0,1), box-shadow .3s cubic-bezier(.32,.72,0,1);
  white-space: nowrap;
}
.btn-primary-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,16,46,.55); color: #fff; }
.btn-primary-pill:active { transform: translateY(0) scale(.98); }
.btn-primary-pill svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.32,.72,0,1); }
.btn-primary-pill:hover svg { transform: translateX(4px); }

.btn-white-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--rouge);
  font-size: .9rem; font-weight: 700;
  padding: 14px 34px; border-radius: 100px; border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  transition: transform .3s cubic-bezier(.32,.72,0,1), box-shadow .3s cubic-bezier(.32,.72,0,1);
}
.btn-white-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.22); color: var(--rouge); }
.btn-white-pill svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.32,.72,0,1); }
.btn-white-pill:hover svg { transform: translateX(4px); }

/* ═══════════════ RESPONSIVE COMMUN ═══════════════ */
@media(max-width: 991px) {
  .footer-cta-band { padding: 48px 0 36px; }
}
@media(max-width: 767px) {
  .d-nav-links { display: none !important; }
}
@media(max-width: 575px) {
  .footer-cta-title { font-size: 1.6rem; }
}
