/*
Theme Name: La Cantine de Roger
Theme URI: https://lacantinederoger.fr
Author: EcosystemeImmo
Description: Thème catering cinématographique bio et local — La Cantine de Roger
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: lacantine-theme
*/

/* === VARIABLES === */
:root {
  --color-primary: #3B6E2C;
  --color-primary-dark: #2A5020;
  --color-primary-light: #EAF3E5;
  --color-secondary: #C8953A;
  --color-secondary-light: #FBF3E4;
  --color-accent: #8B3A1A;
  --color-dark: #1C1E1A;
  --color-dark-2: #2C2E2A;
  --color-light: #F5F2EA;
  --color-white: #FFFFFF;
  --color-text: #2C2E2A;
  --color-text-light: #6B6D68;
  --color-border: #DDD8CC;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(28,30,26,0.07);
  --shadow-hover: 0 8px 40px rgba(28,30,26,0.14);
  --transition: 0.3s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--spacing-md); }
.section { padding: var(--spacing-xl) 0; }
.section-sm { padding: var(--spacing-lg) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: var(--spacing-lg); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.5;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,110,44,0.3);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--color-secondary);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  border: 2px solid #25D366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.btn-messenger {
  background: #0084FF;
  color: white;
  border: 2px solid #0084FF;
}
.btn-messenger:hover {
  background: #006acc;
  border-color: #006acc;
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.95rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.8rem; }

/* === HEADER === */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}
#site-header.transparent { background: transparent; }
#site-header.scrolled,
#site-header.solid {
  background: var(--color-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo img, .custom-logo { max-height: 36px; width: auto; }
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}
.site-logo-text span {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-secondary);
  margin-top: 1px;
}
.site-logo-badge {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.site-logo-monogram {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 6px;
  padding: 4px 8px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition);
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--color-white); }
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { width: 100%; }
.header-cta .btn { font-size: 0.8rem; padding: 0.6rem 1.4rem; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--color-secondary); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.mobile-menu-close:hover { opacity: 1; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(28,30,26,0.88) 0%,
    rgba(59,110,44,0.35) 60%,
    rgba(28,30,26,0.5) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  padding-top: 75px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(59,110,44,0.25);
  border: 1px solid rgba(59,110,44,0.5);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #A8D98F;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #A8D98F;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 680px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.hero-title em {
  font-style: italic;
  color: var(--color-secondary);
}
.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  color: rgba(255,255,255,0.9);
}
.hero-proof-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}
.hero-proof-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.hero-proof-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}
.hero-scroll-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s infinite;
}
.hero-scroll-cta::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* === BANDEAU STATS === */
.stats-bar {
  background: var(--color-primary);
  padding: 2rem 0;
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}
.stat-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* === CONCEPT === */
.concept-section { background: var(--color-white); }
.concept-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}
.concept-media { position: relative; }
.concept-media-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.concept-media-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-hover);
}
.concept-badge {
  position: absolute;
  top: 1.5rem;
  left: -1rem;
  background: var(--color-secondary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.concept-badge-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}
.concept-badge-sub {
  font-size: 0.7rem;
  opacity: 0.85;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.concept-text { padding-left: var(--spacing-md); }
.concept-text p { color: var(--color-text-light); line-height: 1.9; }
.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* === PRESTATIONS === */
.prestations-section { background: var(--color-light); }
.prestation-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.prestation-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}
.prestation-card-media {
  position: relative;
  overflow: hidden;
}
.prestation-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prestation-card:hover .prestation-card-media img { transform: scale(1.05); }
.prestation-card-icon {
  position: absolute;
  bottom: -1.25rem;
  left: 1.5rem;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 3px solid white;
  box-shadow: var(--shadow);
}
.prestation-card-body {
  padding: 2rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prestation-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.prestation-card-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  flex: 1;
}
.prestation-card-footer {
  padding: 0 1.5rem 1.5rem;
}
.prestation-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.prestation-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
}
.prestation-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* === PROCESSUS === */
.process-section { background: var(--color-primary); }
.process-section .section-title { color: white; }
.process-section .section-subtitle { color: rgba(255,255,255,0.75); }
.process-section .section-label { color: var(--color-secondary); }
.process-section .section-label::before,
.process-section .section-label::after { background: var(--color-secondary); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: rgba(255,255,255,0.2);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step-number {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}
.process-step:hover .process-step-number {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}
.process-step h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* === RÉFÉRENCES === */
.references-section { background: var(--color-white); }
.references-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: var(--color-white);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.references-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.reference-card {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.reference-card:hover {
  background: white;
  border-color: var(--color-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.reference-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.type-film { background: #E3F0FF; color: #1a5fa8; }
.type-serie { background: #F3E8FF; color: #7c3aed; }
.type-pub { background: #FEF3C7; color: #92400e; }
.type-clip { background: #D1FAE5; color: #065f46; }
.reference-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
}
.reference-year {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}
.references-cta { text-align: center; margin-top: 2.5rem; }
.references-count {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
.references-count strong { color: var(--color-primary); }

/* === GALERIE / INSTAGRAM === */
.gallery-section {
  background: var(--color-light);
  padding: var(--spacing-lg) 0;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 var(--spacing-md);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.gallery-grid-main {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto;
  gap: 6px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:nth-child(1) img { height: 100%; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,110,44,0.7);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  color: white;
  font-size: 1.8rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* === FORMULAIRE DEVIS === */
.devis-section { background: var(--color-light); }
.devis-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--spacing-xl);
  align-items: start;
}
.devis-info h2 { margin-bottom: 1rem; }
.devis-info p { color: var(--color-text-light); margin-bottom: 1.5rem; }
.devis-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.devis-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.devis-contact-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}
.devis-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.icon-whatsapp { background: #E8FDF1; }
.icon-messenger { background: #E8F4FF; }
.icon-phone { background: var(--color-primary-light); }
.devis-contact-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-dark);
  font-weight: 600;
}
.devis-contact-text span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.devis-form-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
}
.devis-form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-light);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,110,44,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-light); }
.form-group select option { background: white; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-submit { flex: 1; justify-content: center; }
.form-privacy {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* === TEMOIGNAGES === */
.testimonials-section { background: var(--color-white); }
.testimonial-card {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  border-left: 3px solid var(--color-primary);
}
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.testimonial-stars {
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* === FOOTER === */
#site-footer { background: var(--color-dark); color: rgba(255,255,255,0.7); }
.footer-main { padding: var(--spacing-xl) 0 var(--spacing-lg); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--spacing-lg);
}
.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.25rem;
}
.footer-brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--color-primary); color: white; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-secondary); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}
.footer-contact-item span:first-child { font-size: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--color-secondary); }
.footer-admin-link {
  color: rgba(255,255,255,0.24);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color var(--transition), border-color var(--transition), opacity var(--transition);
  opacity: 0.58;
}
.footer-admin-link:hover {
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.16);
  opacity: 1;
}

/* === PAGES INTERNES === */
.page-hero {
  background: var(--color-dark);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,30,26,0.95) 0%, rgba(59,110,44,0.4) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero .section-label { margin-bottom: 1rem; color: var(--color-secondary); }
.page-hero .section-label::before,
.page-hero .section-label::after { background: var(--color-secondary); opacity: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
}
.breadcrumb a { color: var(--color-secondary); }
.breadcrumb-sep { opacity: 0.4; }

/* === CANTINE CINEMA PAGE === */
.cinema-avantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--spacing-lg);
}
.avantage-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.avantage-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.avantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.avantage-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.avantage-card p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; }

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* === NOTICE === */
.notice {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.notice-success { background: #D1FAE5; color: #065f46; border: 1px solid #6EE7B7; }
.notice-error { background: #FEE2E2; color: #991b1b; border: 1px solid #FCA5A5; }

/* === WP CONTENT === */
.wp-content h2, .wp-content h3 { margin: 2rem 0 0.75rem; }
.wp-content p { margin-bottom: 1.2rem; color: var(--color-text-light); line-height: 1.9; }
.wp-content ul, .wp-content ol { margin: 1rem 0 1rem 1.5rem; }
.wp-content li { margin-bottom: 0.5rem; }
.wp-content a { color: var(--color-primary); text-decoration: underline; }
.wp-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 900px;
  margin: 0 auto;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner a { color: var(--color-secondary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* === UTILS === */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden { display: none !important; }
.divider-leaf {
  text-align: center;
  color: var(--color-primary);
  opacity: 0.3;
  font-size: 1.5rem;
  margin: 0.75rem 0;
  letter-spacing: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .references-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid-main { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; }
}
@media (max-width: 768px) {
  :root { --spacing-xl: 4rem; --spacing-lg: 2.5rem; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .concept-inner,
  .devis-inner,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid { grid-template-columns: 1fr; }
  .concept-text { padding-left: 0; }
  .concept-media-accent { display: none; }
  .cinema-avantages { grid-template-columns: 1fr 1fr; }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-main { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { justify-content: flex-start; padding: 0 var(--spacing-md); flex-direction: column; gap: 1.25rem; }
  .hero-proof { gap: 1.5rem; }
  .hero-proof-sep { display: none; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; gap: 0.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit-area { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; bottom: 0; left: 0; right: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .cinema-avantages { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid-main { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .hero-title { font-size: 2rem; }
}

/* === MOBILE OVERRIDES v2 === */
.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero-content h1 {
  color: white;
  margin-bottom: 1rem;
}
.page-hero-content p {
  color: rgba(255,255,255,0.75);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  body { overflow-x: hidden; }

  .header-inner {
    height: 64px;
    padding: 0 1rem;
  }
  .site-logo img,
  .custom-logo {
    max-height: 30px;
  }
  .main-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .container,
  .container-sm {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: 92vh;
  }
  .hero-content {
    padding-top: 90px;
    padding-bottom: 2rem;
  }
  .hero-title {
    max-width: 100%;
  }
  .hero-actions,
  .hero-proof,
  .cookie-actions,
  .footer-bottom-inner,
  .footer-legal,
  .footer-social {
    width: 100%;
  }
  .hero-actions,
  .cookie-actions,
  .footer-legal,
  .footer-social {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn,
  .cookie-actions .btn,
  .footer .btn,
  .footer-legal a,
  .footer-social .social-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-proof {
    gap: 1rem;
    align-items: stretch;
  }
  .hero-proof-sep {
    display: none;
  }
  .hero-proof-item {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .hero-proof-number {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .concept-inner,
  .devis-inner,
  .footer-grid,
  .cinema-avantages,
  .process-steps,
  .references-grid,
  .gallery-grid-main {
    grid-template-columns: 1fr !important;
  }
  .process-steps::before {
    display: none;
  }
  .concept-text {
    padding-left: 0;
  }
  .concept-media-accent {
    display: none;
  }
  .concept-media-main {
    aspect-ratio: 16 / 10;
  }

  .stats-bar-inner {
    justify-content: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .stat-item {
    width: 100%;
  }

  .prestation-card:hover,
  .reference-card:hover,
  .avantage-card:hover,
  .testimonial-card:hover,
  .social-btn:hover {
    transform: none;
  }

  .devis-inner {
    gap: 2rem;
  }
  .devis-contact-item {
    align-items: flex-start;
  }
  .devis-contact-text {
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-submit-area {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero {
    padding: 110px 0 56px;
  }
  .page-hero h1,
  .page-hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .page-hero .breadcrumb,
  .page-hero-content .breadcrumb {
    flex-wrap: wrap;
  }

  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns:1fr 1fr"],
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"],
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] > *,
  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] > *,
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] > * {
    min-width: 0;
  }
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] img,
  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] img,
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] img {
    width: 100%;
  }
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .page-template-template-merci-php .hero-content {
    padding: 110px 1rem 2rem;
  }
  .page-template-template-merci-php .hero-content > div[style*="display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:3rem;"] {
    flex-direction: column;
    align-items: stretch;
  }
  .page-template-template-merci-php .hero-content > div[style*="display:flex;gap:1.5rem;flex-wrap:wrap;"] {
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-template-template-references-php .references-filter {
    justify-content: flex-start;
  }
  .page-template-template-references-php .filter-btn,
  .references-filter .filter-btn {
    width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .page-hero {
    padding: 100px 0 48px;
  }
  .page-hero h1,
  .page-hero-content h1 {
    font-size: 1.9rem;
  }
  .references-grid,
  .gallery-grid-main,
  .cinema-avantages,
  .process-steps {
    grid-template-columns: 1fr !important;
  }
  .gallery-item:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
  }
  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .footer-bottom-inner {
    gap: 0.75rem;
  }
  .footer-bottom-inner > * {
    width: 100%;
  }
  .filter-btn {
    padding: 0.65rem 1rem;
  }
}

/* === MOBILE OVERRIDES v3 === */
@media (max-width: 768px) {
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] > img {
    order: -1;
  }
  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .concept-media-main {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 480px) {
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    gap: 1.25rem !important;
  }
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns:1fr 1fr"] div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* === MOBILE OVERRIDES v4 === */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  #site-header {
    backdrop-filter: blur(10px);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .site-logo {
    min-width: 0;
    max-width: calc(100% - 72px);
  }

  .site-logo img,
  .custom-logo {
    max-width: 180px;
  }

  .mobile-menu {
    padding: 1rem;
    gap: 0.75rem;
  }

  .mobile-menu .menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-menu .menu a {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  .hero-content,
  .page-hero-inner,
  .container,
  .container-sm {
    min-width: 0;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions,
  .cookie-actions,
  .footer-social,
  .footer-legal,
  .form-submit-area,
  .references-filter {
    width: 100%;
  }

  .hero-actions,
  .cookie-actions,
  .footer-social,
  .footer-legal,
  .form-submit-area,
  .references-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cookie-actions .btn,
  .footer .btn,
  .footer-legal a,
  .footer-social .social-btn,
  .references-filter .filter-btn,
  .page-hero .btn,
  .page-template-template-merci-php .hero-content .btn,
  .devis-contact-item {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hero-proof {
    width: 100%;
  }

  .hero-proof-item {
    width: 100%;
    min-width: 0;
    padding: 0.9rem 1rem;
  }

  .page-hero {
    padding: 110px 0 44px;
  }

  .page-hero-inner {
    text-align: center;
  }

  .page-hero .breadcrumb {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .concept-inner,
  .devis-inner,
  .footer-grid,
  .cinema-avantages,
  .process-steps,
  .references-grid,
  .gallery-grid-main {
    grid-template-columns: 1fr !important;
  }

  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns"],
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns"],
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns"],
  .page-template-template-merci-php .hero-content > div[style*="display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:3rem;"],
  .page-template-template-merci-php .hero-content > div[style*="display:flex;gap:1.5rem;flex-wrap:wrap;"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns"] > *,
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns"] > *,
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns"] > * {
    min-width: 0;
  }

  .page-template-template-contact-php .section > .container > div[style*="grid-template-columns"] img,
  .page-template-template-prestations-php .section > .container > div[style*="grid-template-columns"] img,
  .page-template-template-cantine-cinema-php .section > .container > div[style*="grid-template-columns"] img {
    width: 100%;
  }

  .concept-text {
    padding-left: 0;
  }

  .concept-media-accent {
    display: none;
  }

  .concept-media-main {
    aspect-ratio: 16 / 10;
  }

  .stats-bar-inner {
    padding: 0 1rem;
  }

  .stat-item,
  .reference-card,
  .avantage-card,
  .prestation-card {
    width: 100%;
  }

  .reference-card,
  .avantage-card,
  .prestation-card {
    padding: 1.25rem;
  }

  .references-filter {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.75rem 1rem;
  }

  .wp-content {
    overflow-wrap: anywhere;
  }

  .wp-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wp-content iframe,
  .wp-content embed,
  .wp-content video {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container,
  .container-sm {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 10vw, 2.4rem);
  }

  .page-hero {
    padding: 100px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hero-proof-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hero-proof-number {
    font-size: 1.45rem;
  }

  .page-template-template-merci-php .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-template-template-merci-php .hero-content > div[style*="background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:var(--radius-lg);padding:1.5rem 2rem;text-align:left;"] {
    padding: 1.25rem;
  }
}

/* ===== MOBILE FIXES — inline grids templates ===== */
@media (max-width: 768px) {
  /* Grilles 1fr 1fr dans les templates (sections sans classe .section) */
  .page-template-template-prestations-php div[style*="grid-template-columns:1fr 1fr"],
  .page-template-template-cantine-cinema-php div[style*="grid-template-columns:1fr 1fr"],
  .page-template-template-contact-php div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Mini-grille services (2×2 petites cartes) — garder 2 colonnes */
  .page-template-template-prestations-php div[style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  /* Grille stats 4 colonnes → 2 colonnes */
  .page-template-template-cantine-cinema-php div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  /* Ordre image/texte sur mobile : image toujours après texte */
  .page-template-template-prestations-php div[style*="grid-template-columns:1fr 1fr"] > img,
  .page-template-template-cantine-cinema-php div[style*="grid-template-columns:1fr 1fr"] > div[style*="position:relative"] {
    order: 2;
  }
  .page-template-template-prestations-php div[style*="grid-template-columns:1fr 1fr"] > div,
  .page-template-template-cantine-cinema-php div[style*="grid-template-columns:1fr 1fr"] > div:not([style*="position:relative"]) {
    order: 1;
  }
  /* Références grid : 2 colonnes sur tablette */
  .references-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  /* Page hero : réduire padding */
  .page-hero {
    padding-top: 100px;
  }
  /* CTA buttons dans templates : full width */
  .page-template-template-cantine-cinema-php div[style*="display:flex;gap:1rem"] .btn,
  .page-template-template-prestations-php div[style*="display:flex"] .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Stats 4 colonnes → 1 colonne sur petit mobile */
  .page-template-template-cantine-cinema-php div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Mini-grille services → 1 colonne */
  .page-template-template-prestations-php div[style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"] {
    grid-template-columns: 1fr !important;
  }
  /* Références : 1 colonne sur très petit écran */
  .references-grid {
    grid-template-columns: 1fr !important;
  }
  /* Taille stats chiffres */
  .page-template-template-cantine-cinema-php div[style*="font-size:3rem"] {
    font-size: 2.2rem !important;
  }
  /* Galerie homepage : 1 colonne */
  .gallery-grid-main {
    grid-template-columns: 1fr !important;
  }
  .gallery-item:nth-child(1) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
