/*
Theme Name: Séjour Cinéma
Theme URI: https://www.sejourcinema.com
Author: Pierre Médy
Author URI: https://www.sejourcinema.com
Description: Thème personnalisé pour Séjour Cinéma - Éducation à l'image. Ateliers cinéma, Escape Movie, Fond Vert et projets culturels.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: sejourcinema
Tags: education, cinema, culture, one-page, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (modifiable via le customizer)
   ============================================================ */
:root {
  --sc-orange:       #F26522;
  --sc-teal:         #5BBCB8;
  --sc-beige:        #C8B89A;
  --sc-dark:         #4A3728;
  --sc-text:         #3A3A3A;
  --sc-bg:           #FFFFFF;
  --sc-light:        #F7F5F2;
  --sc-border:       #E8E4DF;
  --sc-shadow:       rgba(74, 55, 40, 0.12);

  --font-heading:    'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body:       'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius:          6px;
  --radius-lg:       12px;
  --transition:      0.25s ease;
  --max-width:       1160px;
  --gutter:          clamp(1rem, 4vw, 2.5rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::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(--sc-text);
  background: var(--sc-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sc-teal); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--sc-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--sc-dark); }

blockquote {
  border-left: 4px solid var(--sc-orange);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sc-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--sc-dark);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section--light { background: var(--sc-light); }
.section--dark  { background: var(--sc-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.section__header h2 { margin-bottom: 0.75rem; }
.section__header p { color: #666; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================================
   COLOR BAND (header decoration)
   ============================================================ */
.color-band {
  display: flex;
  height: 6px;
  width: 100%;
}
.color-band span { flex: 1; }
.color-band span:nth-child(1) { background: var(--sc-beige); }
.color-band span:nth-child(2) { background: var(--sc-teal); }
.color-band span:nth-child(3) { background: var(--sc-orange); }
.color-band span:nth-child(4) { background: var(--sc-dark); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sc-bg);
  box-shadow: 0 2px 12px var(--sc-shadow);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-heading);
}
.site-logo .logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sc-dark);
  letter-spacing: -0.02em;
}
.site-logo .logo-main span { color: var(--sc-orange); }
.site-logo .logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sc-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#primary-navigation ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
#primary-navigation li { position: relative; text-align: center; }
#primary-navigation a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
#primary-navigation a:hover,
#primary-navigation .current-menu-item > a,
#primary-navigation .current_page_item > a {
  color: var(--sc-orange);
  background: rgba(242, 101, 34, 0.08);
}

/* Dropdown */
#primary-navigation .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--sc-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--sc-shadow);
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  border-top: 3px solid var(--sc-orange);
}
#primary-navigation li:hover > .sub-menu,
#primary-navigation li:focus-within > .sub-menu { display: flex; }
#primary-navigation .sub-menu a {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 0;
}

.nav-cta {
  background: var(--sc-orange) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover {
  background: var(--sc-dark) !important;
  color: #fff !important;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sc-dark);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--sc-dark) 0%, #2d1f14 100%);
  color: #fff;
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-content h1 span { color: var(--sc-orange); }
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animated film strip */
.film-strip-anim {
  width: 260px;
  height: 320px;
  position: relative;
  border: 3px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.film-icon {
  font-size: 4rem;
  animation: pulse 3s ease-in-out infinite;
}
.film-strip-anim p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 1rem;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.film-strip-anim__img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius-lg) - 3px) calc(var(--radius-lg) - 3px) 0 0;
  margin: 0;
}
/* Hero vidéo */
.hero-visual__video {
  width: 100%;
  max-width: 420px;
}
.hero-visual__video > div { margin-top: 0 !important; }
.hero-visual__caption {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--sc-orange);
  color: #fff;
  border-color: var(--sc-orange);
}
.btn-primary:hover {
  background: var(--sc-dark);
  border-color: var(--sc-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-teal {
  background: var(--sc-teal);
  color: #fff;
  border-color: var(--sc-teal);
}
.btn-teal:hover { background: #3da09c; border-color: #3da09c; color: #fff; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.78rem; }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--sc-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--sc-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(74, 55, 40, 0.2);
}
.card__badge {
  height: 5px;
}
.card__badge--orange { background: var(--sc-orange); }
.card__badge--teal   { background: var(--sc-teal); }
.card__badge--beige  { background: var(--sc-beige); }
.card__badge--dark   { background: var(--sc-dark); }

.card__icon {
  font-size: 2.5rem;
  padding: 1.5rem 1.5rem 0;
}
.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--sc-dark);
}
.card__body p {
  font-size: 0.9rem;
  color: #666;
  flex: 1;
  text-align: center;
  margin-bottom: 1.25rem;
}
.card__tag {
  display: inline-block;
  background: var(--sc-light);
  color: var(--sc-teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* ============================================================
   PAGE HERO (internal pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--sc-dark) 0%, #2d1f14 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sc-beige), var(--sc-teal), var(--sc-orange), var(--sc-dark));
}
.page-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.page-hero-icon {
  font-size: 3rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 700px; }
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: var(--sc-orange); }

/* ============================================================
   PROJECT SECTIONS
   ============================================================ */
.project-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--sc-border);
}
.project-section:last-child { border-bottom: none; }
.project-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.project-section__inner.reverse { direction: rtl; }
.project-section__inner.reverse > * { direction: ltr; }
.project-section__content {}
.project-section__label {
  display: inline-block;
  background: var(--sc-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.project-section__label--teal { background: var(--sc-teal); }
.project-section__label--beige { background: var(--sc-beige); color: #fff; }
.project-section__content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.project-section__content h3 {
  font-size: 1.1rem;
  color: var(--sc-teal);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.project-section__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}
.project-section__media .video-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.project-section__media .video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Info boxes */
.info-box {
  background: var(--sc-light);
  border-left: 4px solid var(--sc-orange);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}
.info-box--teal { border-color: var(--sc-teal); }
.info-box--beige { border-color: var(--sc-beige); }
.info-box strong { display: block; margin-bottom: 0.25rem; color: var(--sc-orange); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-box--teal strong { color: var(--sc-teal); }

/* Feature list */
.feature-list {
  margin: 1rem 0;
}
.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--sc-text);
  border-bottom: 1px solid var(--sc-border);
  font-size: 0.95rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--sc-orange);
  font-size: 0.6rem;
  top: 0.7rem;
}
.feature-list li strong { color: var(--sc-dark); }

/* Tags badges */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tag {
  background: rgba(91, 188, 184, 0.1);
  color: var(--sc-teal);
  border: 1px solid rgba(91, 188, 184, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag--orange {
  background: rgba(242, 101, 34, 0.1);
  color: var(--sc-orange);
  border-color: rgba(242, 101, 34, 0.3);
}
.tag--dark {
  background: rgba(74, 55, 40, 0.1);
  color: var(--sc-dark);
  border-color: rgba(74, 55, 40, 0.2);
}

/* ============================================================
   ABOUT SECTION (homepage)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-content .lead {
  font-size: 1.15rem;
  color: var(--sc-dark);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.about-visual {
  background: var(--sc-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  text-align: center;
}
.about-visual .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sc-orange);
  display: block;
  line-height: 1;
}
.about-visual .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-divider {
  width: 40px;
  height: 3px;
  background: var(--sc-orange);
  margin: 0.5rem auto;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info {}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(242, 101, 34, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail strong { display: block; font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.15rem; }
.contact-detail a { color: var(--sc-text); font-weight: 600; }
.contact-detail a:hover { color: var(--sc-orange); }

.contact-form-wrapper {
  background: var(--sc-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}
.contact-form-wrapper h3 { margin-bottom: 1.5rem; }

/* WordPress default form styles */
.wpcf7-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sc-dark);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sc-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--sc-text);
  background: var(--sc-bg);
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--sc-orange);
}
.wpcf7-form textarea,
.contact-form textarea { min-height: 130px; resize: vertical; }
.wpcf7-submit,
.contact-form button[type="submit"] {
  background: var(--sc-orange);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
}
.wpcf7-submit:hover,
.contact-form button[type="submit"]:hover { background: var(--sc-dark); }

/* ============================================================
   PARTNERS / LOGOS BAR
   ============================================================ */
.partners-bar {
  background: var(--sc-dark);
  padding: 2rem 0;
}
.partners-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.partner-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.partner-item:hover { background: rgba(255,255,255,0.15); color: #fff; }
a.partner-item { text-decoration: none; cursor: pointer; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #1a0f08;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-main { font-size: 1.4rem; font-family: var(--font-heading); font-weight: 800; color: #fff; }
.footer-brand .logo-main span { color: var(--sc-orange); }
.footer-brand .logo-sub { font-size: 0.7rem; color: var(--sc-teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--sc-orange); }
.footer-contact-item { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; align-items: flex-start; }
.footer-contact-item .ico { color: var(--sc-orange); font-size: 1rem; margin-top: 0.1rem; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--sc-orange); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--sc-orange); }

/* ============================================================
   PASS CULTURE & BADGES
   ============================================================ */
.badge-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--pass    { background: #1a1a2e; color: #e2b96f; }
.badge--adage   { background: #003189; color: #fff; }
.badge--cnc     { background: #c8002d; color: #fff; }
.badge--green   { background: #1a6b3c; color: #fff; }
.badge--eac     { background: var(--sc-teal); color: #fff; }

/* ============================================================
   CONTENT PAGE (page.php generic)
   ============================================================ */
.page-content {
  padding: 3rem 0 5rem;
}
.page-content .entry-content {
  max-width: 800px;
}
.page-content .entry-content h2 {
  color: var(--sc-orange);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sc-border);
}
.page-content .entry-content h3 {
  color: var(--sc-teal);
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-content .entry-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.page-content .entry-content ul li { margin-bottom: 0.4rem; }
.page-content .entry-content ol { margin: 1rem 0 1.5rem 1.5rem; }

/* Two-col content layout */
.two-col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ============================================================
   VIMEO EMBED CONTAINER
   ============================================================ */
.video-card {
  background: var(--sc-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
}
.video-card .video-ratio {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-card .video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-card__caption {
  padding: 1rem 1.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

/* ============================================================
   ACCORDION (pour les sous-ateliers)
   ============================================================ */
.accordion {}
.accordion-item {
  border: 1px solid var(--sc-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: rgba(242, 101, 34, 0.06);
  border: none;
  cursor: default;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sc-orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-trigger .acc-arrow { display: none; }
.accordion-content {
  padding: 1.25rem;
  border-top: 1px solid var(--sc-border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .project-section__inner { grid-template-columns: 1fr; }
  .project-section__inner.reverse { direction: ltr; }
  #primary-navigation { display: none; }
  #primary-navigation.open {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--sc-bg);
    box-shadow: 0 8px 24px var(--sc-shadow);
    padding: 1rem 0;
    z-index: 999;
  }
  #primary-navigation.open ul {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter);
  }
  #primary-navigation.open .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    border-top: none;
  }
  #primary-navigation.open li:hover > .sub-menu { display: flex; }
  .menu-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .badge-row { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}

/* ============================================================
   WORDPRESS CORE ALIGNMENTS
   ============================================================ */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; text-align: center; }
.alignwide { margin-left: -2rem; margin-right: -2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: #888; text-align: center; margin-top: 0.35rem; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-orange { color: var(--sc-orange) !important; }
.text-teal   { color: var(--sc-teal)   !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }

/* ============================================================
   FLOATING ANNOUNCEMENT BUBBLE
   ============================================================ */
#sc-bubble {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 9000;
  width: 280px;
  font-family: var(--font-body);
  transition: top 0.35s ease, transform 0.35s ease, opacity 0.3s ease;
}
#sc-bubble.sc-bubble--hidden {
  transform: translateY(-50%) translateX(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
}
/* Docked: réduit sous le menu */
#sc-bubble.sc-bubble--docked {
  top: 76px; /* 70px nav + 6px color-band */
  transform: none;
  right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  width: auto;
  min-width: 200px;
}
#sc-bubble.sc-bubble--docked .sc-bubble__header {
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -3px 3px 12px rgba(0,0,0,0.3);
}
#sc-bubble.sc-bubble--docked.sc-bubble--hidden {
  transform: translateX(calc(100% + 1px));
  opacity: 0;
  pointer-events: none;
}

.sc-bubble__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sc-dark);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}
.sc-bubble__header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
}
.sc-bubble__header-icon { font-size: 1rem; }
.sc-bubble__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sc-bubble__toggle,
.sc-bubble__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.sc-bubble__toggle:hover,
.sc-bubble__close:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.sc-bubble__body {
  background: #2a2a2a;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.1rem 1.15rem;
  overflow: hidden;
  max-height: 300px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.sc-bubble__body.sc-bubble--collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.sc-bubble__content-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  display: block;
}
.sc-bubble__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.sc-bubble__desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.sc-bubble__link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sc-teal);
  border-bottom: 1px solid rgba(91,188,184,0.4);
  padding-bottom: 0.1rem;
  transition: color var(--transition), border-color var(--transition);
}
.sc-bubble__link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.sc-bubble__link::after { content: ' →'; }

@media (max-width: 480px) {
  #sc-bubble {
    width: calc(100vw - 2rem);
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  #sc-bubble.sc-bubble--hidden {
    transform: translateY(-50%) translateX(calc(100% + 2rem));
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--sc-orange);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }
