/* ============================================================
   CREATIV TARGET — style.css
   Tokens couleurs / typo / layout — voir commentaires par bloc
   ============================================================ */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  /* Couleurs */
  --cream:        #F6F1E9;
  --cream-2:      #EFE8DA;
  --dark:         #1B1917;
  --dark-soft:    #2A2621;
  --orange:       #E8630A;
  --orange-light: #F5A876;
  --line:         #D8CFBD;
  --white:        #FFFFFF;
  --grey-text:    #5B564C;

  /* Typo */
  --font-main: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Layout */
  --container: 1180px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-header .logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.btn-nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); display: block; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,99,10,0.28); }
.btn-outline { border: 1.5px solid var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-light { border: 1.5px solid var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--dark); }

/* ---------------- Hero / Parallax ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: var(--cream);
}
.parallax-layer {
  position: absolute;
  inset: -10% -10% -10% -10%;
  will-change: transform;
  pointer-events: none;
}
.hero .content {
  position: relative;
  z-index: 5;
  padding-top: 84px;
}
.hero-title {
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  max-width: 980px;
}
.hero-sub {
  font-size: 20px;
  color: #C9C2B4;
  max-width: 560px;
  margin-top: 26px;
  line-height: 1.6;
}
.hero-actions { margin-top: 42px; display: flex; gap: 20px; flex-wrap: wrap; }

.crosshair {
  position: absolute;
}
.crosshair svg { display: block; }

/* ---------------- Fond liquide animé ----------------
   Formes floues en dégradé qui se déforment et se déplacent
   lentement, façon lave-lampe. Placé derrière le contenu (z-index
   bas), désactivé si la personne préfère un mouvement réduit. */
.liquid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.liquid-blob {
  position: absolute;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform, border-radius;
}
.liquid-bg--dark .liquid-blob:nth-child(1) {
  width: 55vw; height: 55vw; top: -15%; left: -10%;
  background: radial-gradient(circle at 30% 30%, #E8630A, transparent 70%);
  animation: liquidMove1 22s ease-in-out infinite;
}
.liquid-bg--dark .liquid-blob:nth-child(2) {
  width: 45vw; height: 45vw; bottom: -20%; right: -10%;
  background: radial-gradient(circle at 60% 40%, #6B4A2E, transparent 70%);
  animation: liquidMove2 26s ease-in-out infinite;
}
.liquid-bg--dark .liquid-blob:nth-child(3) {
  width: 35vw; height: 35vw; top: 30%; right: 15%;
  background: radial-gradient(circle at 50% 50%, #3A362F, transparent 70%);
  animation: liquidMove3 30s ease-in-out infinite;
}
.liquid-bg--cream .liquid-blob:nth-child(1) {
  width: 50vw; height: 50vw; top: -10%; left: -8%;
  background: radial-gradient(circle at 30% 30%, #E8630A, transparent 70%);
  opacity: 0.16;
  animation: liquidMove1 24s ease-in-out infinite;
}
.liquid-bg--cream .liquid-blob:nth-child(2) {
  width: 40vw; height: 40vw; bottom: -15%; right: -10%;
  background: radial-gradient(circle at 60% 40%, #C9A876, transparent 70%);
  opacity: 0.18;
  animation: liquidMove2 28s ease-in-out infinite;
}
.liquid-bg--cream .liquid-blob:nth-child(3) {
  width: 30vw; height: 30vw; top: 35%; right: 20%;
  background: radial-gradient(circle at 50% 50%, #1B1917, transparent 70%);
  opacity: 0.08;
  animation: liquidMove3 32s ease-in-out infinite;
}

@keyframes liquidMove1 {
  0%   { transform: translate(0,0) scale(1);       border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%  { transform: translate(6%,8%) scale(1.12);  border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; }
  66%  { transform: translate(-4%,5%) scale(0.94); border-radius: 50% 50% 40% 60% / 40% 50% 60% 50%; }
  100% { transform: translate(0,0) scale(1);       border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes liquidMove2 {
  0%   { transform: translate(0,0) scale(1);        border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
  50%  { transform: translate(-7%,-6%) scale(1.15); border-radius: 60% 40% 30% 70% / 60% 50% 50% 40%; }
  100% { transform: translate(0,0) scale(1);        border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
}
@keyframes liquidMove3 {
  0%   { transform: translate(0,0) scale(1);       border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%; }
  50%  { transform: translate(5%,-8%) scale(1.2);  border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%; }
  100% { transform: translate(0,0) scale(1);       border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .liquid-blob { animation: none !important; }
}

/* ---------------- Sections ---------------- */
section { position: relative; }
.section-pad { padding: 130px 0; }
.section-pad-sm { padding: 90px 0; }

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}
.section-body {
  color: var(--grey-text);
  font-size: 18px;
  margin-top: 20px;
  line-height: 1.7;
}

.bg-cream-2 { background: var(--cream-2); }
.bg-dark { background: var(--dark); color: var(--cream); }
.bg-dark .section-body { color: #B9B2A4; }
.bg-orange { background: var(--orange); color: var(--white); }

/* ---------------- Cards ---------------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(27,25,23,0.08); }
.card .num {
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
  display: block;
}
.card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--grey-text); font-size: 15.5px; line-height: 1.6; }

.card-dark {
  background: var(--dark-soft);
  border: 1px solid #3A362F;
  color: var(--cream);
}
.card-dark p { color: #B9B2A4; }

/* ---------------- Marquee band (parallax feel) ---------------- */
.marquee-band {
  background: var(--dark);
  color: var(--cream);
  padding: 30px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
  color: #C9C2B4;
}
.marquee-track span em { color: var(--orange); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--dark);
  color: #B9B2A4;
  padding: 90px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #3A362F;
}
.footer-grid img { height: 34px; margin-bottom: 18px; }
.footer-grid p { font-size: 15px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 15px;
  margin-bottom: 12px;
  color: #B9B2A4;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #7A7568;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Forms ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--dark); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-main);
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13.5px; color: var(--grey-text); margin-top: 10px; }
.form-status { margin-top: 18px; font-size: 15px; font-weight: 600; display: none; }
.form-status.ok { color: #2E7D32; display: block; }
.form-status.err { color: #C62828; display: block; }

/* ---------------- Timeline (used on carrieres.html) ---------------- */
.timeline { border-left: 2px solid var(--line); padding-left: 32px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
}
.timeline-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.timeline-item span { font-size: 13px; color: var(--orange); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.timeline-item p { color: var(--grey-text); font-size: 15px; margin-top: 6px; }

/* ---------------- Badge / deadline strip ---------------- */
.deadline-strip {
  background: var(--orange);
  color: var(--white);
  padding: 22px 0;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--cream); flex-direction: column; justify-content: flex-start; padding: 40px 32px; gap: 28px; transform: translateX(100%); transition: transform 0.3s ease; }
  .site-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 90px 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Écran de chargement (logo animé) ----------------
   Recouvre toute la page au premier chargement, le temps que le logo
   s'anime, puis disparaît en fondu. Affiché une seule fois par
   session (voir main.js) pour ne pas se répéter à chaque page. */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#preloader .preloader-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,99,10,0.5), transparent 70%);
  filter: blur(24px);
  opacity: 0;
  animation: preloaderGlow 2.2s ease-in-out forwards;
}
#preloader .preloader-logo {
  position: relative;
  width: 220px;
  max-width: 55vw;
  opacity: 0;
  transform: scale(0.86);
  animation: preloaderIn 1.2s cubic-bezier(.2,.8,.2,1) forwards;
}
body.preloading { overflow: hidden; height: 100vh; }

@keyframes preloaderIn {
  0%   { opacity: 0; transform: scale(0.86); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes preloaderGlow {
  0%   { opacity: 0; transform: scale(0.6); }
  45%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.55; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #preloader .preloader-logo { animation: none; opacity: 1; transform: none; }
  #preloader .preloader-glow { display: none; }
}

/* ---------------- Bandeau logos partenaires (défilement) ----------------
   Deux groupes de logos identiques placés bout à bout, translatés de
   0 à -50% en boucle : au moment où le premier groupe sort de l'écran,
   le second (identique) prend exactement sa place, donnant une boucle
   parfaitement continue, sans saut visible. */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 64px, black calc(100% - 64px), transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logoMarquee 28s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
.logo-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-marquee-group img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  margin: 0 40px;
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}
