/* =============================================================
   LA TOQUE DU CHEF — Overrides v3.0
   Corrections finales : reveal, FAQ, mobile, sticky CTA, logo
   ============================================================= */

/* ── REVEAL : visible par défaut, animation au scroll si JS présent ── */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Si JS active les animations en chargeant la classe .js-animations sur <html> */
html.js-animations .reveal {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
html.js-animations .reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── HEADER LOGO : utiliser favicon.svg centré ── */
.header__logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;   /* carré à coins arrondis */
  background: var(--or, #C8A45D);
  padding: 7px;          /* marge interne pour ne pas rogner la toque */
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;      /* clip propre au carré arrondi */
}
.header__logo-icon svg,
.header__logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  /* Pas de padding supplémentaire : le viewBox du SVG gère le cadrage */
}
/* SVG inline du symbole toque dans le badge or */
.header__logo-icon path,
.header__logo-icon polygon {
  fill: var(--noir, #0E0E0E) !important;
}

/* ── FAQ : système accordion fonctionnel ── */
.faq__item {
  border-bottom: 1px solid rgba(200, 164, 93, 0.15);
}
.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-titre, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  color: var(--noir, #0E0E0E);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s;
}
.faq__question:hover {
  color: var(--or, #C8A45D);
}
.faq__question-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  stroke: currentColor;
}
.faq__item.open .faq__question-icon {
  transform: rotate(45deg);
}
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.faq__answer-inner {
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gris, #4A4A4A);
}
.faq__item.open .faq__answer {
  grid-template-rows: 1fr;
}
.faq__item.open .faq__answer-inner {
  padding-bottom: 1.25rem;
}

/* ── HAMBURGER : style propre + mobile ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blanc-casse, #F8F4EC);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE NAV : panel slide-in ── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  background: var(--noir, #0E0E0E);
  padding: 6rem 1.5rem 8rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 150;
  border-left: 1px solid rgba(200, 164, 93, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav[hidden] {
  display: flex !important;
  transform: translateX(100%);
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateX(0);
  pointer-events: auto;
}
/* Accordéons mobile */
.mobile-nav__group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.mobile-nav__group-toggle {
  display: flex;
  width: 100%;
  background: none;
  border: none;
  color: var(--blanc-casse, #F8F4EC);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 0.5rem;
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.mobile-nav__group-toggle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--or, #C8A45D);
  border-bottom: 2px solid var(--or, #C8A45D);
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-right: 4px;
}
.mobile-nav__group.open .mobile-nav__group-toggle::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}
.mobile-nav__sublist {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.mobile-nav__sublist-inner {
  overflow: hidden;
}
.mobile-nav__group.open .mobile-nav__sublist {
  grid-template-rows: 1fr;
}
.mobile-nav__sub {
  display: block;
  padding: 0.6rem 1rem 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(248, 244, 236, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav__sub:hover { color: var(--or, #C8A45D); }
.mobile-nav__link {
  display: block;
  padding: 0.85rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blanc-casse, #F8F4EC);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}
.mobile-nav__link:hover { color: var(--or, #C8A45D); }
.mobile-nav__cta {
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
  justify-content: center;
}

/* Overlay mobile menu */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.6);
  backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ── STICKY CTA : flottant en bas, mobile + desktop ── */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: var(--or, #C8A45D);
  color: var(--noir, #0E0E0E);
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-corps, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(200, 164, 93, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 6px 14px rgba(200, 164, 93, 0.5);
}
.sticky-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Cacher si on est sur la page devis */
body.page-devis .sticky-cta {
  display: none;
}

/* ── RESPONSIVE : breakpoints menu mobile ── */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .hamburger { display: block; }
  .header__cta { display: none; }
}

@media (max-width: 480px) {
  .sticky-cta {
    right: 1rem;
    bottom: 1rem;
    padding: 0.85rem 1.4rem;
    font-size: 0.72rem;
  }
}

/* ── AMÉLIORATIONS PERF / UX ── */
img {
  max-width: 100%;
  height: auto;
}

/* Fluidité scroll */
html { scroll-behavior: smooth; }

/* Loader fluide images */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0e8da 0%, #ebe2d0 50%, #f0e8da 100%);
  background-size: 200% 100%;
  animation: imgShimmer 1.4s ease-in-out infinite;
}
img[loading="lazy"].loaded {
  background: none;
  animation: none;
}
@keyframes imgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus visible accessibilité */
*:focus-visible {
  outline: 2px solid var(--or, #C8A45D);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Empêcher scroll body quand menu mobile ouvert */
body.menu-open { overflow: hidden; }

/* ── GRILLE MODÈLES ── */
.models { padding: 5rem 0; }
.models__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.models__grid--calots {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.model__card {
  background: var(--blanc-casse, #F8F4EC);
  border-radius: 8px;
  padding: 1.75rem;
  border: 1px solid rgba(14, 14, 14, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.model__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.model__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.model__ref {
  font-family: var(--font-titre, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  color: var(--noir, #0E0E0E);
  margin: 0;
  line-height: 1;
}
.model__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.model__badge--open {
  background: rgba(14,14,14,0.06);
  color: var(--gris, #4A4A4A);
}
.model__badge--closed {
  background: rgba(200, 164, 93, 0.15);
  color: #7a5c00;
}
.model__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.model__spec {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.model__spec-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--or, #C8A45D);
}
.model__spec-value {
  font-size: 0.82rem;
  color: var(--gris, #4A4A4A);
}
.model__detail {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gris, #4A4A4A);
  flex-grow: 1;
}
.model__usage {
  font-size: 0.8rem;
  color: var(--gris, #4A4A4A);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(14,14,14,0.08);
}
.model__cta {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  padding: 0.65rem 1.25rem;
}
.models__note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(14,14,14,0.04);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--gris, #4A4A4A);
  line-height: 1.7;
}

/* ── CONTENT BLOCK ── */
.content-block {
  background: var(--beige-dark, #EFE7DA);
  border-radius: 8px;
  padding: 2rem;
}

/* ── FORM SELECT ── */
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(14, 14, 14, 0.15);
  border-radius: 4px;
  background: var(--blanc-casse, #F8F4EC);
  font-family: var(--font-corps, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  color: var(--noir, #0E0E0E);
  appearance: auto;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--or, #C8A45D);
  outline: none;
}

/* ── RESPONSIVE MODÈLES ── */
@media (max-width: 768px) {
  .models__grid {
    grid-template-columns: 1fr;
  }
  .models__grid--calots {
    grid-template-columns: 1fr;
  }
  .model__specs {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   IMAGES DANS LES CARTES MODÈLES
   ══════════════════════════════════════════════════════════ */

.model__img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f7;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.25rem 0;
}

.model__img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  mix-blend-mode: multiply; /* fond transparent sur bg gris clair */
}

/* ══════════════════════════════════════════════════════════
   FORMULAIRE DEVIS — alignement du select type-projet
   ══════════════════════════════════════════════════════════ */

/* S'assurer que tous les selects du formulaire ont le même rendu */
.form-group select,
.form-group .form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(14, 14, 14, 0.15);
  border-radius: 4px;
  background: var(--blanc-casse, #F8F4EC);
  font-family: var(--font-corps, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  color: var(--noir, #0E0E0E);
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
  transition: border-color 0.25s;
  height: auto;
  line-height: 1.5;
}

.form-group select:focus,
.form-group .form-select:focus {
  border-color: var(--or, #C8A45D);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.12);
}

.form-group select option,
.form-group .form-select option {
  padding: 0.5rem;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════
   LIENS "VOIR LE MODÈLE" dans cartes pages métiers
   ══════════════════════════════════════════════════════════ */

.guide-usage-card__link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--or, #C8A45D);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  transition: color 0.2s, transform 0.2s;
}
.guide-usage-card__link:hover {
  color: var(--noir, #0E0E0E);
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════
   ANCRES SMOOTH SCROLL pour #modeles
   ══════════════════════════════════════════════════════════ */

#modeles, #modeles-calots {
  scroll-margin-top: 90px; /* hauteur du header fixe */
}

/* ══════════════════════════════════════════════════════════
   HEADER LOGO TEXT — Police bâton Montserrat (comme footer)
   ══════════════════════════════════════════════════════════ */
.header__logo-name {
  font-family: var(--font-corps, 'Montserrat', sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--blanc-casse) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.header__logo-tagline {
  font-family: var(--font-corps, 'Montserrat', sans-serif) !important;
  font-size: 0.57rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  color: var(--or, #C8A45D) !important;
  text-transform: uppercase !important;
}

/* ══════════════════════════════════════════════════════════
   HEADER LOGO BADGE — carré à coins arrondis, toque non rognée
   ══════════════════════════════════════════════════════════ */
.header__logo-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: var(--or, #C8A45D) !important;
  padding: 7px !important;          /* marge interne : la toque ne touche plus les bords */
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   BLOC "POUR QUELS USAGES" — style du bloc processus (home)
   6 cartes → grille 3 colonnes, séparateurs 1px via gap
   ══════════════════════════════════════════════════════════ */
.process--usages .process__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(200, 164, 93, 0.15);   /* couleur des séparateurs */
}
.process--usages .process__step {
  border-right: none;                     /* on annule les bordures de base */
  background: var(--noir);                /* cellule opaque : seuls les gaps restent visibles */
}
.process--usages .process__step:hover {
  background: rgba(200, 164, 93, 0.08);
}
@media (max-width: 1100px) {
  .process--usages .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process--usages .process__grid { grid-template-columns: 1fr; }
}
