/* ==========================================================================
   PliFalTec — refonte 2026 (statique, sans dépendances)
   ========================================================================== */

:root {
  --papier: #faf9f6;
  --blanc: #ffffff;
  --encre: #1a1d23;
  --encre-douce: #4a4f5a;
  --bleu: #7da2d8;          /* bleu du logo */
  --orange: #f98b1d;        /* orange vif (dérivé du #F2972E d'origine, plus saturé) */
  --orange-clair: #ffa845;
  --orange-fonce: #b85c00;  /* pleine saturation, même teinte ~30°, contraste texte 4.6:1 */
  --marine: #00305b;        /* marine des titres du site d'origine */
  --bleu-fonce: #33507a;
  --nuit: #141a24;
  --nuit-2: #1b2331;
  --filet: rgba(26, 29, 35, 0.12);
  --ombre: 0 10px 30px rgba(20, 26, 36, 0.10);
  --rayon: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  color: var(--encre);
  background: var(--papier);
  line-height: 1.7;
  font-size: 1.02rem;
}

h1, h2, h3, .surtitre, .brand, .nav, .btn, .etapes {
  font-family: "Raleway", "Inter", system-ui, sans-serif;
}

img { max-width: 100%; display: block; }

/* --- En-tête ------------------------------------------------------------ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 34px;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding .25s, border-color .25s;
}
.topbar.reduite { padding: 8px 34px; border-color: var(--filet); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; transition: height .25s; }
.topbar.reduite .brand-logo { height: 32px; }
.brand-nom {
  font-family: "Raleway", sans-serif; font-size: 1.15rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--encre-douce);
}
.brand-nom strong { font-weight: 600; color: var(--bleu-fonce); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--encre); text-decoration: none; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 3px;
  background: linear-gradient(var(--bleu-fonce), var(--bleu-fonce)) left bottom / 0 1.5px no-repeat;
  transition: background-size .25s;
}
.nav a:hover { background-size: 100% 1.5px; }
.lang { font-size: .8rem; display: inline-flex; gap: 8px; color: var(--encre-douce); }
.lang a { letter-spacing: .08em; }
.lang a[aria-current] { color: var(--bleu-fonce); font-weight: 600; }

.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--encre); margin: 5px 0; }

/* --- Héros -------------------------------------------------------------- */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-img.active { opacity: 1; animation: hero-zoom 9s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(13, 18, 28, .35); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.hero-nav:hover { background: rgba(13, 18, 28, .65); border-color: rgba(255, 255, 255, .7); }
.hero-nav svg { width: 26px; height: 26px; fill: rgba(255, 255, 255, .85); }
.hero-prec { left: 26px; }
.hero-suiv { right: 26px; }

.hero-points {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 10px;
}
.hero-points button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .4); transition: background .25s, transform .25s;
}
.hero-points button:hover { background: rgba(255, 255, 255, .7); }
.hero-points button[aria-selected] { background: var(--orange); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  .hero-img { transition: none; }
  .hero-img.active { animation: none; }
}
@media (max-width: 760px) {
  .hero-nav { width: 42px; height: 42px; }
  .hero-prec { left: 12px; }
  .hero-suiv { right: 12px; }
}
.hero-voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 18, 28, .45) 0%, rgba(13, 18, 28, .55) 60%, rgba(13, 18, 28, .72) 100%);
}
.hero-texte { position: relative; text-align: center; color: #fff; padding: 120px 24px 60px; max-width: 60rem; }
.hero-kicker {
  letter-spacing: .34em; text-transform: uppercase; font-size: .78rem;
  color: var(--orange-clair); margin-bottom: 22px; font-weight: 500;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; line-height: 1.08; letter-spacing: .01em; }
.hero-sub { margin: 26px auto 0; max-width: 34rem; font-size: 1.06rem; color: rgba(255, 255, 255, .85); }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 13px 28px; border-radius: 999px; transition: transform .2s, background .2s, color .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-plein { background: var(--orange); color: #fff; }
.btn-plein:hover { background: var(--orange-clair); }
.btn-ligne { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ligne:hover { background: rgba(255, 255, 255, .12); }

/* --- Bandes / structure ------------------------------------------------- */
.bande { padding: 96px 0; }
.bande-claire { background: var(--blanc); }
.colonne { max-width: 1140px; margin: 0 auto; padding: 0 34px; }
.etroite { max-width: 860px; }

.surtitre {
  font-size: 1.1rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--marine); font-weight: 700; margin-bottom: 34px;
  display: flex; align-items: center; gap: 18px;
}
.surtitre::after { content: ""; height: 1.5px; flex: 0 0 64px; background: var(--bleu-fonce); }

.citation {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.55;
  color: var(--encre);
}
.citation em { font-style: normal; color: var(--orange-fonce); }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.deux-colonnes p + p { margin-top: 1em; }
.decale { grid-template-columns: 1.15fr .85fr; align-items: start; }

.intro { max-width: 46rem; }
.etapes { margin-top: 14px; margin-bottom: 44px; color: var(--orange-fonce); letter-spacing: .06em; font-weight: 500; }

/* --- Galerie ------------------------------------------------------------ */
.galerie {
  margin-top: 54px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.galerie img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon);
  transition: transform .35s ease, box-shadow .35s ease;
}
.galerie img:hover { transform: scale(1.04); box-shadow: var(--ombre); }

/* --- Figures ------------------------------------------------------------ */
.figure img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.figure figcaption, .portrait figcaption {
  font-size: .82rem; color: var(--encre-douce); margin-top: 10px; letter-spacing: .02em;
}

/* --- Cartes activités --------------------------------------------------- */
.cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.carte {
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  border: 1px solid var(--filet); box-shadow: 0 2px 10px rgba(20, 26, 36, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-img { overflow: hidden; aspect-ratio: 16/9; }
.carte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte:hover .carte-img img { transform: scale(1.05); }
.carte-corps { padding: 30px 32px 34px; }
.carte h3 { font-size: 1.24rem; font-weight: 500; margin-bottom: 14px; }
.carte p + p { margin-top: .8em; }
.carte .lien { display: inline-block; margin-top: 18px; }

.lien { color: var(--orange-fonce); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .2s; }
.lien:hover { border-color: var(--orange-fonce); }

/* --- ADN (bande nuit) --------------------------------------------------- */
.bande-nuit { background: linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%); color: rgba(255, 255, 255, .87); }
.bande-nuit .surtitre { color: var(--bleu); }
.bande-nuit .surtitre::after { background: var(--bleu); }
.lien-clair { color: var(--bleu); text-decoration: none; border-bottom: 1px solid rgba(125, 162, 216, .4); transition: border-color .2s; }
.lien-clair:hover { border-color: var(--bleu); }
.portrait { margin-top: 28px; display: flex; align-items: center; gap: 18px; }
.portrait img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(125, 162, 216, .5); }
.bande-nuit figcaption { color: rgba(255, 255, 255, .6); }
.video { position: relative; aspect-ratio: 16/9; align-self: center; }
.video iframe, .video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  border-radius: var(--rayon); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.video-facade { padding: 0; cursor: pointer; overflow: hidden; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s; }
.video-facade:hover img { opacity: 1; transform: scale(1.03); }
.video-lecture {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(242, 151, 46, .94); display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.video-facade:hover .video-lecture { transform: translate(-50%, -50%) scale(1.08); background: var(--orange-clair); }
.video-lecture svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.video-titre {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  color: #fff; font-size: .95rem; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.video-titre small { color: rgba(255, 255, 255, .7); }

/* --- Partenaires -------------------------------------------------------- */
.bande-partenaires { padding: 70px 0; background: var(--papier); }
.partenaires {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 34px;
}
.partenaires img {
  height: 58px; width: auto; mix-blend-mode: multiply;
  transition: transform .25s ease, filter .25s ease;
}
.partenaires img:hover { transform: translateY(-5px) scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .partenaires img, .partenaires img:hover { transition: none; transform: none; }
}

/* --- Contact ------------------------------------------------------------ */
.contact-bande { padding: 110px 0; }
.contact-entete { text-align: center; max-width: 40rem; margin: 0 auto 56px; }
.contact-bande .surtitre { justify-content: center; margin-bottom: 10px; }
.contact-titre {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 500; color: #fff;
  margin: 0 0 16px; line-height: 1.25;
}
.contact-intro { color: rgba(255, 255, 255, .7); }
.contact-grille { align-items: start; gap: 60px; }
.contact-sous {
  font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bleu); font-weight: 600; margin-bottom: 14px;
}
.contact-adresse { font-style: normal; color: rgba(255, 255, 255, .72); line-height: 1.9; margin-bottom: 34px; }

.sociaux { display: flex; gap: 14px; }
.sociaux a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--filet);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.sociaux svg { width: 18px; height: 18px; fill: var(--encre); transition: fill .2s; }
.sociaux a:hover { background: var(--encre); transform: translateY(-2px); }
.sociaux a:hover svg { fill: var(--papier); }
.bande-nuit .sociaux a { border-color: rgba(255, 255, 255, .25); }
.bande-nuit .sociaux svg { fill: rgba(255, 255, 255, .85); }
.bande-nuit .sociaux a:hover { background: rgba(255, 255, 255, .14); }
.bande-nuit .sociaux a:hover svg { fill: #fff; }

/* Formulaire (sur bande nuit) */
.formulaire label {
  display: block; font-size: .85rem; font-weight: 500; margin-bottom: 16px;
  color: rgba(255, 255, 255, .75);
}
.formulaire input, .formulaire textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font: inherit; color: #fff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.formulaire input:focus, .formulaire textarea:focus {
  outline: none; border-color: var(--orange);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(249, 139, 29, .25);
}
.formulaire textarea { resize: vertical; }
.formulaire .btn-plein { border: none; margin-top: 4px; }
.form-note { font-size: .8rem; color: rgba(255, 255, 255, .45); margin-top: 16px; line-height: 1.6; }
.cache { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact-grille { gap: 44px; } }

/* --- Bandeau Prêt-à-Plier ------------------------------------------------ */
.bande-pap {
  background: linear-gradient(135deg, #fdf4e7 0%, #f7e7cf 100%);
  border-top: 3px solid var(--orange);
  padding: 72px 0;
}
.pap-int { display: grid; grid-template-columns: auto 1fr auto; gap: 54px; align-items: center; }
.pap-logo {
  height: 190px; width: auto; background: #fff; padding: 14px;
  box-shadow: 0 12px 28px rgba(120, 70, 20, .18);
  transform: rotate(-2.5deg); transition: transform .3s ease;
}
.bande-pap:hover .pap-logo { transform: rotate(0deg) scale(1.03); }
.pap-texte h3 { font-size: 1.47rem; font-weight: 500; margin-bottom: 14px; }
.pap-texte .surtitre { margin-bottom: 16px; color: var(--orange-fonce); }
.pap-texte .surtitre::after { background: var(--orange-fonce); }
.pap-texte p { max-width: 44rem; }
.pap-texte .btn-plein { margin-top: 24px; }
.pap-seal { height: 120px; width: auto; mix-blend-mode: multiply; opacity: .9; }
@media (max-width: 900px) {
  .pap-int { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 34px; }
  .pap-seal { display: none; }
}

/* --- Pied de page ------------------------------------------------------- */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .75); padding: 34px 0; }
.pied-int { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; text-align: center; }

/* --- Pages légales ------------------------------------------------------- */
.page-legale { padding-top: 60px; }
.page-legale h2 { font-size: 1.15rem; font-weight: 600; color: var(--marine); margin: 34px 0 10px; }
.page-legale p + p { margin-top: .8em; }
.page-legale em { background: #fdf0dc; font-style: normal; padding: 0 4px; }
.page-legale ul { margin: 10px 0 0 22px; }
.page-legale li + li { margin-top: 6px; }

/* --- Apparitions -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .carte, .btn, .galerie img { transition: none !important; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .deux-colonnes, .decale, .cartes { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .partenaires { justify-content: center; }
  .video { margin-top: 10px; }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 20px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 64px; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--papier); border-bottom: 1px solid var(--filet);
    padding: 10px 24px 20px; display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 10px 0; font-size: .95rem; }
  .bande { padding: 64px 0; }
  .colonne { padding: 0 22px; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .hero-texte { padding-top: 90px; }
  .pied-legal { white-space: normal; }
}
