/*
Theme Name: Semantic
Theme URI: https://github.com/mdh18/semantic-design
Author: Semantic — Studio design & communication
Author URI: https://github.com/mdh18/semantic-design
Description: Thème landing page « light premium food-tech » pour la restauration rapide (studio design & communication). Une page, tout le contenu éditable dans Apparence → Personnaliser → « Contenu Semantic ». Génération de leads via WhatsApp. Sans page builder ni plugin obligatoire.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: semantic
Tags: landing-page, business, restaurant, custom-colors, custom-logo, one-column, full-width-template
*/

/* ===========================================================================
   SEMANTIC — design system + états. Le layout des sections est en styles
   inline dans les templates (fidèle à la maquette d'origine, au pixel près).
   =========================================================================== */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f7f7f4;
  --panel-dark:    #171717;
  --ink:           #0a0a0a;
  --border:        #e4e4df;
  --text:          #353535;
  --muted:         #707070;
  --accent:        #B5764A;
  --g1:            #1ED6C0;
  --g2:            #6CD84F;
  --g3:            #F2CE1B;
  --g3-deep:       #D8B818;
  --grad:          linear-gradient(135deg, var(--g1), var(--g2), var(--g3));

  /* CTA — surchargé par functions.php selon la variante choisie. */
  --cta-bg:        #0a0a0a;
  --cta-color:     #ffffff;

  --ff-display:    'Inter Tight', system-ui, sans-serif;
  --ff-body:       'Inter', system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------------ Socle */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 4px; }

/* Le logo WordPress (the_custom_logo) : même gabarit que la maquette. */
.custom-logo { height: 44px; width: auto; display: block; }
footer .custom-logo { height: 36px; }

/* --------------------------------------------------------------- Header */
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom-color: var(--border) !important;
}
.navlink, .footlink { color: var(--text); transition: color 160ms ease; }
.navlink:hover, .footlink:hover { color: var(--ink); }

/* ------------------------------------------------------------------ CTA */
.cta { will-change: transform; }
.cta--header:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(10, 10, 10, 0.18); }
.cta--hero:hover   { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(10, 10, 10, 0.20); }
.cta--final:hover  { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(108, 216, 79, 0.35); }
.card-lift:hover { transform: translateY(-4px); }
.fig-zoom:hover  { transform: scale(1.015); }

/* --------------------------------------------------- Reveal au scroll */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
              transform .65s cubic-bezier(.22, 1, .36, 1);
}
.rv-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Marquee */
@keyframes sm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------- Accordéon FAQ */
.faq__panel { display: none; }
.faq__item.is-open .faq__panel { display: block; }
.faq__item.is-open .faq__chevron { transform: rotate(45deg); }
.faq__q { font: inherit; color: inherit; }

/* -------------------------------------------------- Comparateur A/B */
.ba { touch-action: pan-y; }
.ba__before, .ba__line { will-change: clip-path, left; }
.ba input[type="range"] { -webkit-tap-highlight-color: transparent; }

/* ------------------------------------------- Emplacement image (vide) */
.img-slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
}
.img-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  border-radius: inherit;
  pointer-events: none;
}
.img-slot__icon { opacity: .45; }

/* --------------------------------------------------- CTA mobile fixe */
.mcta { display: none; }
@media (max-width: 768px) {
  .mcta { display: flex; }
  footer { padding-bottom: 96px; }
}

/* --------------------------------------------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
