/* =========================================================
   GALIPIX Production — feuille de style principale
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/poppins-200.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --orange: #eb8840;
  --orange-dark: #af4b2f;
  --sand: #cab8a2;
  --dark: #282828;
  --darker: #282624;
  --light: #f8f8f8;
  --cream: #efe9e4;
  --white: #fff;
  --text-muted: #928781;
  --radius: 4px;
  --container: 1140px;
  --header-h: 84px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 400; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--orange); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.btn:hover, .btn:focus-visible { background: var(--orange-dark); color: var(--white); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Trait orange sous les titres */
.divider { width: 60px; height: 2px; background: var(--orange); border: 0; margin: 0 0 24px; }
.center .divider, .divider.center { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(40, 38, 36, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; letter-spacing: 2px; }
.logo img { width: 58px; height: 58px; transition: transform .6s; }
.logo:hover img { transform: rotate(60deg); }
.logo span { font-size: 20px; }
.logo small { display: block; font-size: 11px; font-weight: 300; letter-spacing: 3px; color: var(--sand); }
.logo:hover { color: var(--white); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px;
  color: var(--white); font-size: 15px; font-weight: 400;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--orange); }

.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--white);
  transition: background .25s;
}
.social a:hover { background: var(--orange); color: var(--white); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--white);
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .logo img { width: 48px; height: 48px; }
  .nav-toggle { display: block; }
  .site-header .social { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--darker);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-open .main-nav { max-height: 100vh; border-bottom: 2px solid var(--orange); }
  .main-nav ul { flex-direction: column; padding: 10px 0 20px; }
  .main-nav a { padding: 14px 24px; font-size: 17px; }
  .main-nav a::after { display: none; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 80px 0 120px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides div {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite;
  transform: scale(1.08);
}
.hero-slides div:nth-child(2) { animation-delay: 6s; }
.hero-slides div:nth-child(3) { animation-delay: 12s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.hero-box {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 20px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(2px);
  padding: 44px 44px 48px;
  text-align: center;
  border-radius: var(--radius);
}
.hero-box h1 { margin-bottom: .4em; }
.hero-box p { font-size: clamp(18px, 2.2vw, 23px); font-weight: 200; line-height: 1.45; margin-bottom: 1.6em; }

/* Séparateur « montagnes » en bas des visuels */
.shape-bottom {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  line-height: 0; pointer-events: none;
}
.shape-bottom svg { width: 100%; height: 70px; }

/* Bandeau titre des pages intérieures */
.page-hero {
  position: relative;
  padding: 110px 0 130px;
  background-size: cover; background-position: center;
  text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 0; }
.page-hero p { font-size: 20px; font-weight: 200; margin: 14px auto 0; max-width: 640px; color: var(--cream); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--light { background: var(--white); color: #1c1c1c; }
.section--grey { background: var(--light); color: #1c1c1c; }
.section--dark { background: var(--darker); }
.section--light a:not(.btn), .section--grey a:not(.btn) { color: var(--orange-dark); }
.section--light a:not(.btn):hover, .section--grey a:not(.btn):hover { color: var(--orange); }

.lead { font-size: clamp(18px, 2vw, 22px); font-weight: 200; line-height: 1.6; }
.prose { max-width: 820px; margin: 0 auto; }
.prose .lead + .lead { margin-top: .4em; }

/* Blocs activité (accueil) : image / texte en alternance */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.split-media { position: relative; overflow: hidden; min-height: 320px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split:hover .split-media img { transform: scale(1.05); }
.split-body { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(24px, 6vw, 80px); }
.split-body p { font-size: 19px; font-weight: 200; }
.split-body .btn { align-self: flex-start; margin-top: 12px; }
.split--reverse .split-media { order: 2; }
.split.section--grey, .split.section--light { color: #1c1c1c; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { min-height: 260px; }
  .split-body { padding: 50px 24px; }
}

/* Badge télépilote */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--orange); border-radius: 999px;
  color: var(--orange); font-size: 14px; font-weight: 400; margin-bottom: 20px;
}
.badge svg { width: 18px; height: 18px; fill: currentColor; }

/* Cartes chiffres / atouts */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 50px; }
.feature { text-align: center; padding: 10px; }
.feature svg { width: 44px; height: 44px; fill: none; stroke: var(--orange); stroke-width: 1.5; margin: 0 auto 14px; display: block; }
.feature h3 { font-size: 19px; font-weight: 600; margin-bottom: .3em; }
.feature p { font-size: 15px; margin: 0; color: #5d5854; }

/* ---------- Galeries ---------- */
.gallery-title { margin-top: 70px; }
.gallery-title:first-of-type { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery a { display: block; overflow: hidden; position: relative; border-radius: var(--radius); aspect-ratio: 3 / 2; background: #1a1a1a; }
.gallery--3 a { aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery a::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(235, 136, 64, .0); transition: background .3s;
}
.gallery a:hover img { transform: scale(1.07); }
.gallery a:hover::after { background: rgba(40, 38, 36, .25); }
@media (max-width: 900px) { .gallery, .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery, .gallery--3 { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 10, 10, .94);
  display: none; align-items: center; justify-content: center;
  padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 0; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--sand); }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Vidéos YouTube (chargement au clic, sans cookie) ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.yt {
  position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat;
  border-radius: var(--radius); overflow: hidden;
}
.yt button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: rgba(0,0,0,.25); transition: background .3s; }
.yt button:hover { background: rgba(0,0,0,.05); }
.yt .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; transition: transform .3s, background .3s;
}
.yt:hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--orange-dark); }
.yt .play svg { width: 28px; height: 28px; fill: #fff; margin-left: 5px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* Liste à puces orange */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 16px; height: 8px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- Appel à l'action contact ---------- */
.cta {
  position: relative; text-align: center;
  padding: 100px 0;
  background: var(--darker) center / cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(28, 26, 24, .8); }
.cta .container { position: relative; }
.cta p { font-size: 20px; font-weight: 200; max-width: 620px; margin: 0 auto 30px; }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
@media (max-width: 850px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h2 { color: #1c1c1c; }
.contact-info ul { list-style: none; padding: 0; margin: 28px 0; }
.contact-info li { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact-info li svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.8; }
.contact-info .social a { background: #e9e4df; color: #1c1c1c; }
.contact-info .social a:hover { background: var(--orange); color: #fff; }

.form { background: var(--white); padding: 40px; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
@media (max-width: 500px) { .form { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 400; margin-bottom: 6px; color: #3a3632; }
.field label .req { color: var(--orange-dark); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #1c1c1c;
  padding: 13px 14px; border: 1px solid #d9d2cb; border-radius: var(--radius); background: #fcfbfa;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(235,136,64,.2); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 13px; color: #6f6964; margin: 4px 0 22px; }
.form-status { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius); font-size: 15px; display: none; }
.form-status.ok { display: block; background: #e8f4ee; color: #1f6b4a; border-left: 4px solid #549e82; }
.form-status.err { display: block; background: #fbecea; color: #9b2c1f; border-left: 4px solid #c0392b; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--darker); padding: 70px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand img { width: 90px; height: 90px; margin-bottom: 18px; }
.footer-brand p { color: #bdb3ab; max-width: 380px; }
.site-footer h2 { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.site-footer h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--orange); margin-top: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #d6ccc4; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: #9d938b;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #9d938b; }
.footer-bottom a:hover { color: var(--orange); }

/* Mentions légales */
.legal dl { margin: 0; }
.legal dt { font-weight: 600; margin-top: 22px; color: #1c1c1c; }
.legal dd { margin: 4px 0 0; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Anti-robot Cloudflare Turnstile */
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.captcha-noscript { margin: 0 0 16px; font-size: 13px; color: #9b2c1f; }

/* Mentions légales */
.legal h2 { font-size: 22px; margin-top: 44px; }
.legal h2:first-child { margin-top: 0; }
.legal dt { margin-top: 14px; }
.legal-update { margin-top: 40px; font-size: 14px; color: #6f6964; }
