/*
Theme Name: Boterel Cycles
Theme URI: https://boterel-cycles.fr
Author: Boterel Cycles
Author URI: https://boterel-cycles.fr
Description: Thème premium pour vélociste professionnel. Style sombre/clair alterné, animations fluides, intégration ACF et CPT.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boterel-cycles
Tags: custom-background, custom-logo, full-width-template, post-thumbnails, custom-menu
*/

/* ══════════════════════════════════════
   RESET & ROOT VARIABLES
══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:       #070707;
  --dark:        #0d0d0d;
  --surface:     #141414;
  --surface2:    #1a1a1a;
  --cream:       #f7f4ee;
  --cream2:      #ede9e0;
  --cream3:      #d8d2c4;
  --txt-dark:    #1a1814;
  --txt-muted:   rgba(26,24,20,.55);
  --txt-faint:   rgba(26,24,20,.15);
  --bd:          rgba(26,24,20,.1);
  --bd2:         rgba(26,24,20,.18);
  --bl:          rgba(255,255,255,.08);
  --bl2:         rgba(255,255,255,.15);
  --wt:          #f0ede6;
  --wm:          rgba(240,237,230,.55);

  /* ── Palette Boterel Cycles — extraite du logo ── */
  --accent:      #006986;   /* Bleu pétrole principal */
  --acl:         #0085a8;   /* Bleu pétrole clair — hover */
  --acd:         #254851;   /* Bleu pétrole foncé */
  --acc:         #25373c;   /* Anthracite bleuté */
  --acg:         rgba(0,105,134,.12);
  --acg2:        rgba(0,105,134,.06);

  --fd:          'Bebas Neue', sans-serif;
  --fs:          'DM Serif Display', serif;
  --fb:          'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--wt);
  font-family: var(--fb);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-weight: 400; line-height: 1.1; }
p { line-height: 1.75; }
a { text-decoration: none; color: inherit; transition: color .3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── CURSOR ── */
.cursor {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; z-index: 9999;
  pointer-events: none;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .4s, height .4s, opacity .3s;
  opacity: .5;
}
.cursor-ring.lg { width: 56px; height: 56px; opacity: .9; }

/* ── BUTTONS ── */
.btn-gold {
  background: var(--accent); color: var(--black);
  border: none; padding: 15px 34px;
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: none; display: inline-block;
  transition: background .3s, transform .2s;
}
.btn-gold:hover { background: var(--acl); transform: translateY(-2px); color: var(--black); }

.btn-ol {
  background: transparent; color: var(--wm);
  border: 1px solid var(--bl2); padding: 15px 34px;
  font-family: var(--fb); font-size: 11px; font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: none; display: inline-block;
  transition: color .3s, border-color .3s, transform .2s;
}
.btn-ol:hover { color: var(--wt); border-color: var(--accent); transform: translateY(-2px); }

.btn-ol-dark {
  background: transparent; color: var(--txt-muted);
  border: 1px solid var(--bd2); padding: 15px 34px;
  font-family: var(--fb); font-size: 11px; font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: none; display: inline-block;
  transition: color .3s, border-color .3s, transform .2s;
}
.btn-ol-dark:hover { color: var(--txt-dark); border-color: var(--accent); transform: translateY(-2px); }

.btn-gd {
  background: var(--accent); color: #fff;
  border: none; padding: 15px 34px;
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: none; display: inline-block;
  transition: background .3s, transform .2s;
}
.btn-gd:hover { background: #006986; transform: translateY(-2px); color: #fff; }

/* ── LABELS ── */
.lbl {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; display: block;
}
.lbl-sm {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ── SECTION HEADERS ── */
.sh {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--bl); padding-bottom: 36px; margin-bottom: 72px;
}
.sh-dark {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--bd); padding-bottom: 36px; margin-bottom: 72px;
}
.st  { font-family: var(--fd); font-size: clamp(44px,5vw,78px); line-height: .93; letter-spacing: .01em; }
.st-dark { font-family: var(--fd); font-size: clamp(44px,5vw,78px); line-height: .93; letter-spacing: .01em; color: var(--txt-dark); }
.sl {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center;
  gap: 10px; white-space: nowrap; transition: gap .3s; cursor: none;
}
.sl:hover { gap: 18px; }

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--surface);
  border-top: 1px solid var(--bl); border-bottom: 1px solid var(--bl);
  padding: 18px 0; overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: mq 24s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 44px; padding: 0 44px;
  font-family: var(--fd); font-size: 14px; letter-spacing: .22em;
  color: var(--wm); white-space: nowrap; flex-shrink: 0;
}
.mdot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .5s; }

/* ── FORMS ── */
.form-lbl {
  display: block; font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--txt-muted); margin-bottom: 9px;
}
.fi, .fs, .ft {
  width: 100%; background: var(--cream2); border: 1px solid var(--bd);
  color: var(--txt-dark); padding: 13px 16px;
  font-family: var(--fb); font-size: 14px; font-weight: 300;
  outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.fi:focus, .fs:focus, .ft:focus { border-color: var(--accent); }
.fi::placeholder, .ft::placeholder { color: var(--txt-faint); }
.ft { height: 120px; resize: vertical; }
.fg { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; background: var(--txt-dark); color: var(--cream);
  border: none; padding: 17px;
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: none; transition: background .3s;
}
.form-submit:hover { background: var(--accent); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 55vh; background: var(--black);
  display: flex; align-items: flex-end;
  padding: 140px 7% 72px; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; opacity: .25;
}
.page-hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--black) 0%, rgba(7,7,7,.3) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.ph-eyebrow { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.ph-title { font-family: var(--fd); font-size: clamp(72px,9vw,130px); line-height: .9; letter-spacing: .02em; }
.ph-title em { font-family: var(--fs); font-style: italic; color: var(--accent); font-size: .8em; display: block; }
.ph-sub { font-size: 15px; line-height: 1.8; color: var(--wm); max-width: 500px; margin-top: 24px; }

/* ── STATS ROW ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--bd); margin-top: 80px;
}
.stat-i { padding: 36px 0; border-right: 1px solid var(--bd); text-align: center; }
.stat-i:last-child { border-right: none; }
.stat-n { font-family: var(--fd); font-size: 54px; line-height: 1; color: var(--accent); }
.stat-l { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-muted); margin-top: 6px; }

/* ── VELO CARDS ── */
.velo-card { background: #fff; border: 1px solid var(--bd); overflow: hidden; cursor: none; }
.velo-img { height: 240px; overflow: hidden; position: relative; background: var(--cream2); }
.velo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.velo-card:hover .velo-img img { transform: scale(1.05); }
.velo-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 11px; z-index: 2;
}
.velo-body { padding: 24px 24px 28px; }
.velo-brand { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.velo-name { font-family: var(--fs); font-size: 20px; color: var(--txt-dark); margin-bottom: 14px; line-height: 1.2; }
.velo-specs { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.velo-spec { font-size: 11px; color: var(--txt-muted); }
.velo-spec strong { display: block; color: var(--txt-dark); font-weight: 500; font-size: 11px; margin-bottom: 1px; }
.velo-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--bd); }
.velo-price { font-family: var(--fd); font-size: 28px; color: var(--accent); }
.velo-btn {
  background: transparent; border: 1px solid var(--bd2); color: var(--txt-muted);
  padding: 9px 20px; font-family: var(--fb); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; cursor: none;
  transition: background .3s, color .3s, border-color .3s;
}
.velo-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── TEMOIGNAGES ── */
.temo { border: 1px solid var(--bl); padding: 36px 30px; transition: border-color .3s; cursor: none; }
.temo:hover { border-color: var(--accent); }
.temo-stars { display: flex; gap: 3px; margin-bottom: 20px; }
.star { color: var(--accent); font-size: 13px; }
.temo-text { font-family: var(--fs); font-size: 16px; font-style: italic; line-height: 1.65; color: var(--wt); margin-bottom: 24px; }
.temo-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--bl); }
.temo-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.temo-av img { width: 100%; height: 100%; object-fit: cover; }
.temo-name { font-size: 13px; font-weight: 500; color: var(--wt); margin-bottom: 2px; }
.temo-info { font-size: 11px; color: var(--wm); }

/* ── TEAM CARDS ── */
.equipe-card { cursor: none; }
.equipe-photo { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 20px; }
.equipe-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.25,.46,.45,.94); }
.equipe-card:hover .equipe-photo img { transform: scale(1.04); }
.equipe-name { font-family: var(--fs); font-size: 20px; color: var(--txt-dark); margin-bottom: 4px; }
.equipe-role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.equipe-bio { font-size: 13px; line-height: 1.75; color: var(--txt-muted); }

/* ── FOOTER ── */
.site-footer { background: var(--black); border-top: 1px solid var(--bl); padding: 72px 7% 40px; }
.ft-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid var(--bl); margin-bottom: 32px; }
.ft-logo { font-family: var(--fd); font-size: 32px; letter-spacing: .18em; color: var(--accent); margin-bottom: 6px; }
.ft-sub { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--wm); margin-bottom: 16px; }
.ft-tag { font-size: 13px; line-height: 1.75; color: var(--wm); max-width: 280px; }
.ft-ct { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.ft-lk { list-style: none; }
.ft-lk li { margin-bottom: 11px; }
.ft-lk a { font-size: 13px; color: var(--wm); transition: color .3s; cursor: none; }
.ft-lk a:hover { color: var(--wt); }
.ft-bot { display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-size: 11px; color: var(--wm); }
.ft-socs { display: flex; gap: 12px; }
.ft-soc {
  width: 36px; height: 36px; border: 1px solid var(--bl);
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: border-color .3s, background .3s;
  font-size: 12px; color: var(--wm);
}
.ft-soc:hover { border-color: var(--accent); background: var(--acg); color: var(--wt); }

/* ── GALERIE MOSAIC ── */
.gal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 3px;
}
.gal-item { overflow: hidden; position: relative; cursor: none; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.25,.46,.45,.94); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item:first-child { grid-row: 1 / 3; }
.gal-ov { position: absolute; inset: 0; background: rgba(7,7,7,0); transition: background .4s; }
.gal-item:hover .gal-ov { background: var(--acg2); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--bd); cursor: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-family: var(--fs); font-size: 18px;
  font-weight: 400; color: var(--txt-dark);
}
.faq-toggle { font-size: 20px; color: var(--accent); transition: transform .3s; flex-shrink: 0; margin-left: 20px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.25,.46,.45,.94); }
.faq-a-inner { padding: 0 0 24px; font-size: 14px; line-height: 1.85; color: var(--txt-muted); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 200px; }

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--cream); border-bottom: 1px solid var(--bd);
  padding: 0 7%; display: flex; align-items: center;
  position: sticky; top: 72px; z-index: 100;
}
.filter-btn {
  padding: 18px 28px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-muted); background: transparent;
  border: none; border-bottom: 2px solid transparent;
  cursor: none; font-family: var(--fb); transition: color .3s, border-color .3s;
}
.filter-btn:hover { color: var(--txt-dark); }
.filter-btn.active { color: var(--accent); border-color: var(--accent); }

/* ── CATALOGUE GRID ── */
.catalogue-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--bd);
}
.cat-card { background: var(--cream); overflow: hidden; cursor: none; }
.cat-card.hidden { display: none; }
.cat-img { height: 280px; overflow: hidden; position: relative; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.25,.46,.45,.94); }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: #fff;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 12px; z-index: 2;
}
.cat-body { padding: 24px 24px 28px; border-top: 1px solid var(--bd); }
.cat-brand { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cat-name { font-family: var(--fs); font-size: 20px; color: var(--txt-dark); margin-bottom: 12px; line-height: 1.2; }
.cat-specs { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-spec { font-size: 11px; color: var(--txt-muted); }
.cat-spec strong { display: block; color: var(--txt-dark); font-weight: 500; font-size: 11px; margin-bottom: 1px; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--bd); }
.cat-price { font-family: var(--fd); font-size: 28px; color: var(--accent); }
.cat-btn {
  background: transparent; border: 1px solid var(--bd2); color: var(--txt-muted);
  padding: 9px 20px; font-family: var(--fb); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; cursor: none;
  transition: background .3s, color .3s, border-color .3s;
}
.cat-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── TARIFS TABLE ── */
.tarifs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tarif-group { border: 1px solid var(--bd); }
.tarif-group:first-child { border-right: none; }
.tarif-head { padding: 24px 32px; border-bottom: 1px solid var(--bd); background: var(--cream2); }
.tarif-head-title { font-family: var(--fd); font-size: 22px; letter-spacing: .06em; color: var(--txt-dark); }
.tarif-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; border-bottom: 1px solid var(--bd); transition: background .2s; cursor: none; }
.tarif-row:last-child { border-bottom: none; }
.tarif-row:hover { background: var(--cream2); }
.tarif-name { font-size: 14px; color: var(--txt-dark); }
.tarif-price { font-family: var(--fd); font-size: 20px; color: var(--accent); }

/* ── PROCESS STEPS ── */
.process-steps-h { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--bl); }
.pstep-v { padding: 40px 32px; border-right: 1px solid var(--bl); position: relative; cursor: none; transition: background .3s; }
.pstep-v:last-child { border-right: none; }
.pstep-v:hover { background: var(--surface); }
.pstep-num { font-family: var(--fd); font-size: 52px; line-height: 1; color: var(--bl2); margin-bottom: 24px; transition: color .3s; }
.pstep-v:hover .pstep-num { color: var(--accent); }
.pstep-title { font-family: var(--fs); font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.pstep-desc { font-size: 13px; line-height: 1.8; color: var(--wm); }

/* ── HORAIRES ── */
.hor-table { border: 1px solid var(--bl); }
.hor-row { display: flex; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--bl); font-size: 14px; }
.hor-row:last-child { border-bottom: none; }
.hor-day { color: var(--wm); }
.hor-time { color: var(--wt); font-weight: 400; }
.hor-time.closed { color: var(--wm); font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .catalogue-grid { grid-template-columns: 1fr 1fr; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .tarif-group:first-child { border-right: 1px solid var(--bd); border-bottom: none; }
  .process-steps-h { grid-template-columns: 1fr 1fr; }
  .pstep-v:nth-child(2) { border-right: none; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gal-item:first-child { grid-row: auto; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sh, .sh-dark { flex-direction: column; align-items: flex-start; gap: 16px; }
  .filter-bar { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .catalogue-grid { grid-template-columns: 1fr; }
  .process-steps-h { grid-template-columns: 1fr; }
  .pstep-v { border-right: none; border-bottom: 1px solid var(--bl); }
  .ft-top { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ── WORDPRESS ADMIN BAR FIX ── */
.admin-bar nav.site-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav.site-nav { top: 46px; } }

/* ── GUTENBERG ALIGNMENT ── */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-block-image img { max-width: 100%; }
