/* ============================================================
   LUEURS DES RUES — Feuille de style principale
   Compagnie de spectacle vivant — Tarn, Occitanie
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ----------------------------------------------------------------
   Variables
---------------------------------------------------------------- */
:root {
  /* Palette "papier & encre" (affiche Compagnie, 02/10/2026).
     Le site passe du noir au papier creme de l'affiche ; les accents
     sont l'orange brule, le rouge brique et l'or des etoiles. */

  /* Papiers (fonds) */
  --paper-1:     #f6e2bd;  /* fond de page */
  --paper-2:     #fbf0d9;  /* cartes, champs, surfaces surelevees */
  --paper-3:     #eed4a8;  /* sections alternees, pied de page */
  --paper-4:     #e0c08d;  /* creux, survol */
  --paper-edge:  rgba(168, 72, 10, 0.28);  /* filets et bordures */

  /* Encres (textes) */
  --ink-1:       #3d1a0a;  /* titres, texte fort */
  --ink-2:       #6a3d1a;  /* texte courant, texte secondaire */
  --ink-3:       #8a6540;  /* mentions discretes */

  /* Accents repris de l'affiche */
  --orange:      #cc5c04;  /* orange brule */
  --orange-dark: #a8480a;  /* orange profond : labels, filets, focus */
  --brick:       #94240c;  /* rouge brique : titres */
  --brick-light: #b8331a;  /* erreurs, survols rouges */
  --red-deep:    #7c1c0c;  /* fonds rouges pleins (badges, voiles) */
  --gold:        #e9a93c;  /* or des etoiles */
  --gold-dark:   #7a4a10;  /* or sombre : ornements */
  --cream:       #f8e9c8;  /* texte clair sur fond rouge ou sur photo */

  --border-gold: var(--paper-edge);
  --shadow-glow: 0 0 30px rgba(168, 72, 10, 0.18);

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;

  --nav-height: 72px;
  --radius:     5px;
  --transition: 0.3s ease;
}

/* ----------------------------------------------------------------
   Reset
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--paper-1);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ----------------------------------------------------------------
   Layout helpers
---------------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 90px 0; }

/* ----------------------------------------------------------------
   Typography helpers
---------------------------------------------------------------- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--brick);
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-dark), transparent);
  margin: 0.6rem auto 1rem;
}

.section-sub {
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-dark), var(--gold-dark));
  color: var(--paper-1);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(204, 92, 4, 0.26);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brick), var(--orange-dark));
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(204, 92, 4, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--orange-dark);
  color: var(--brick);
}
.btn-outline:hover {
  background: rgba(204, 92, 4, 0.10);
  border-color: var(--brick);
  transform: translateY(-3px);
}

/* ----------------------------------------------------------------
   Navigation
---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(251, 240, 217, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(93, 45, 12, 0.18);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brick);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }

.logo-ornament { color: var(--gold-dark); font-size: 0.65rem; }

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(204, 92, 4, 0.30);
}
.nav-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2.8rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brick);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--brick); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(204, 92, 4, 0.14);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  cursor: pointer;
  padding: 9px 10px;
  z-index: 1001;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brick);
  transition: all var(--transition);
  transform-origin: center;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------------------------------------------
   Hero — Accueil
---------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  height: 100vh; /* fallback navigateurs anciens */
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#starCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(251, 240, 217, 0.03) 0%, rgba(124, 28, 12, 0.14) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 820px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.8rem;
  box-shadow: 0 0 50px rgba(204, 92, 4, 0.30), 0 0 100px rgba(233, 169, 60, 0.22);
  animation: fadeInUp 0.9s ease 0.1s both;
  flex-shrink: 0;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.9s ease 0.45s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  color: var(--ink-1);
  line-height: 1.05;
  margin-bottom: 0.8rem;
  animation: fadeInUp 0.9s ease 0.4s both;
}
/* Compagnie en pre-titre : rappelle le medaillon de l affiche, ou le mot est
   pose en arc au-dessus du nom. Filets or de part et d autre (02/10/2026). */
.hero-title-compagnie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 1.5vw, 0.82rem);
  line-height: 1;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.1rem;
}
.hero-title-compagnie::before,
.hero-title-compagnie::after {
  content: '';
  height: 1px;
  width: clamp(26px, 7vw, 76px);
  flex-shrink: 0;
}
.hero-title-compagnie::before { background: linear-gradient(90deg, transparent, var(--gold-dark)); }
.hero-title-compagnie::after  { background: linear-gradient(90deg, var(--gold-dark), transparent); }
.hero-title-accent {
  color: var(--brick);
  display: block;
  text-shadow: 0 0 50px rgba(233, 169, 60, 0.55);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--ink-2);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 3rem;
  animation: fadeInUp 0.9s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.8s both;
}

.hero-scroll-btn {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: heroBounce 2.4s ease infinite;
}
.hero-scroll-btn span {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-scroll-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-2);
}

/* ----------------------------------------------------------------
   About — Accueil
---------------------------------------------------------------- */
.about {
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(204, 92, 4, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--brick);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.about-text p {
  color: var(--ink-2);
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}
.about-text p strong { color: var(--ink-1); font-weight: 600; }

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.badge {
  background: rgba(168, 72, 10, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--brick);
  padding: 0.38rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

.about-emblem {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(204, 92, 4, 0.25), 0 0 140px rgba(204, 92, 4, 0.14);
  position: relative;
}
.about-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* kept for fallback */
.emblem-inner { display: none; }
.emblem-title { display: none; }
.emblem-sub   { display: none; }
.emblem-star  { display: none; }

/* ----------------------------------------------------------------
   Featured cards — Accueil
---------------------------------------------------------------- */
.featured { background: var(--paper-1); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(93, 45, 12, 0.20), 0 0 24px rgba(168, 72, 10, 0.18);
  border-color: var(--orange-dark);
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.card:hover .card-img img { transform: scale(1.07); }

.card-category {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: rgba(124, 28, 12, 0.86);
  border: 1px solid var(--border-gold);
  color: var(--brick);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.card-body { padding: 1.5rem; }

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brick);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.card-desc {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(168, 72, 10, 0.18);
}

.card-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------------
   Page hero — pages intérieures
---------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(204, 92, 4, 0.08) 0%, transparent 55%);
}

.page-hero-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.9rem;
  position: relative; z-index: 1;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--ink-1);
  margin-bottom: 0.9rem;
  position: relative; z-index: 1;
}
.page-hero-title span { color: var(--brick); }

.page-hero-desc {
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ----------------------------------------------------------------
   Prestations — liste
---------------------------------------------------------------- */
.prestations-section { background: var(--paper-1); }

.prestation-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.prestation-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  background: var(--paper-2);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.prestation-item:nth-child(even) {
  grid-template-columns: 1.6fr 1fr;
}
.prestation-item:nth-child(even) .prestation-image { order: 2; }
.prestation-item:nth-child(even) .prestation-info  { order: 1; }
.prestation-item:hover {
  box-shadow: 0 12px 44px rgba(93, 45, 12, 0.20), 0 0 30px rgba(204, 92, 4, 0.08);
}

.prestation-image {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.prestation-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.prestation-item:hover .prestation-image img { transform: scale(1.05); }

.prestation-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(61, 26, 10, 0.45));
}
.prestation-item:nth-child(even) .prestation-img-overlay {
  background: linear-gradient(to left, transparent 60%, rgba(61, 26, 10, 0.45));
}

.prestation-info {
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prestation-category {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}

.prestation-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--brick);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.prestation-subtitle {
  font-style: italic;
  color: var(--ink-1);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.prestation-desc {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.prestation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(204, 92, 4, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--ink-2);
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}

/* Accordion fiche technique */
.tech-sheet {
  border-top: 1px solid var(--border-gold);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.tech-sheet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--brick);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.tech-sheet-toggle:hover { color: var(--ink-1); }

.tech-toggle-icon {
  font-style: normal;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s ease;
  font-family: var(--font-body);
  font-weight: 300;
}
.tech-sheet.open .tech-toggle-icon { transform: rotate(45deg); }

.tech-sheet-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s ease;
}
.tech-sheet.open .tech-sheet-body { max-height: 600px; }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
}

.tech-item { display: flex; flex-direction: column; }

.tech-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.2rem;
}

.tech-value {
  color: var(--ink-1);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   Contact
---------------------------------------------------------------- */
.contact-section { background: var(--paper-1); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brick);
  margin-bottom: 1.8rem;
  letter-spacing: 0.05em;
}

.form-group { margin-bottom: 1.3rem; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--border-gold);
  color: var(--ink-1);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 3px rgba(204, 92, 4, 0.12);
}
.form-control::placeholder { color: rgba(106, 61, 26, 0.45); }
.form-control.error { border-color: var(--brick-light); }

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8480a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.form-control option { background: var(--paper-2); }

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-top: 0.8rem;
}

/* Honeypot — invisible aux humains */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

/* CAPTCHA */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.captcha-question {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--brick);
  white-space: nowrap;
  user-select: none;
}
.captcha-input {
  width: 5rem !important;
  text-align: center;
  font-size: 1.1rem !important;
  letter-spacing: 0.15em;
}
.captcha-refresh {
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--ink-2);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.captcha-refresh:hover {
  border-color: var(--brick);
  color: var(--brick);
}


/* Contact info */
.contact-info-panel {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brick);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(204, 92, 4, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.25rem;
  display: block;
}

.contact-info-value {
  color: var(--ink-1);
  font-size: 0.93rem;
  line-height: 1.5;
}
.contact-info-value a {
  color: var(--ink-1);
  transition: color var(--transition);
}
.contact-info-value a:hover { color: var(--brick); }

.contact-legal-box {
  background: var(--paper-2);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 1.4rem;
}
.contact-legal-box h4 {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.75rem;
}
.contact-legal-box p {
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.footer {
  background: var(--paper-3);
  border-top: 1px solid var(--border-gold);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}
.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(168, 72, 10, 0.28);
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brick);
  margin-bottom: 0;
  line-height: 1.3;
}
.footer-brand-desc {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1.2rem;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav-links a {
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: color var(--transition);
}
.footer-nav-links a:hover { color: var(--brick); }

.footer-contact-col p {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}
.footer-contact-col a {
  color: var(--ink-2);
  transition: color var(--transition);
}
.footer-contact-col a:hover { color: var(--brick); }

.footer-bottom {
  border-top: 1px solid rgba(204, 92, 4, 0.12);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-2);
}
.footer-orn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
}

/* ----------------------------------------------------------------
   Toast
---------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--orange-dark);
  color: var(--ink-1);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  box-shadow: 0 12px 32px rgba(93, 45, 12, 0.20);
  z-index: 9000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ----------------------------------------------------------------
   Scroll reveal
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
   Animations keyframes
---------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(9px); }
}
@keyframes rotateStar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   Gallery thumbnails
---------------------------------------------------------------- */
.gallery-thumbs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  background: linear-gradient(to top, rgba(61, 26, 10, 0.78) 0%, transparent 100%);
  z-index: 3;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 58px; height: 44px;
  border: 2px solid rgba(233, 169, 60, 0.45);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  padding: 0; background: none;
  transition: border-color 0.2s, transform 0.18s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--brick);
  transform: scale(1.1);
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}

/* main image becomes clickable when gallery is active */
.prestation-image.has-gallery > img { cursor: zoom-in; }

/* ----------------------------------------------------------------
   Lightbox
---------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(46, 18, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(88vw, 920px);
  max-height: 82vh;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(46, 18, 8, 0.55), 0 0 0 1px rgba(204, 92, 4, 0.14);
  transition: opacity 0.18s ease;
}
.lightbox-img.fading { opacity: 0; }

.lightbox-close {
  position: fixed;
  top: 1.1rem; right: 1.3rem;
  width: 2.5rem; height: 2.5rem;
  background: rgba(204, 92, 4, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--brick);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 9999;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(204, 92, 4, 0.26);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem;
  background: rgba(233, 169, 60, 0.18);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--brick);
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9999;
  line-height: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(204, 92, 4, 0.26); }
.lightbox-prev[hidden],
.lightbox-next[hidden] { display: none; }

.lightbox-counter {
  position: fixed;
  top: 1.2rem; left: 1.3rem;
  color: var(--ink-2);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  z-index: 9999;
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */

/* ── Tablette large (≤ 1180px) ─────────────────────────────── */
@media (max-width: 1180px) {
  .container { padding: 0 1.2rem; }
}

/* ── Tablette (≤ 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --nav-height: 64px; }

  section { padding: 70px 0; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-emblem { display: none; }

  /* Cards */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Prestations */
  .prestation-item,
  .prestation-item:nth-child(even) {
    grid-template-columns: 1fr 1.4fr;
  }
  .prestation-info { padding: 2rem 1.8rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info-panel { position: static; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  section { padding: 55px 0; }

  /* ── Navigation mobile ── */
  .nav {
    background: rgba(251, 240, 217, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(93, 45, 12, 0.20);
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(251, 240, 217, 0.99);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.4rem;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1001;
    box-shadow: 0 12px 32px rgba(93, 45, 12, 0.22);
    visibility: hidden;
  }
  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-toggle { display: flex; }
  .nav-link {
    padding: 1rem 1.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    display: block;
    width: 100%;
    color: var(--ink-1);
    border-bottom: 1px solid rgba(204, 92, 4, 0.08);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link:hover, .nav-link.active { background: rgba(204, 92, 4, 0.08); color: var(--brick); }
  .nav-link::after { display: none; }
  .nav-logo { font-size: 0.88rem; }

  /* ── Hero ── */
  .hero { min-height: 100svh; }
  .hero-tagline { font-size: 0.65rem; letter-spacing: 0.35em; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }
  .hero-cta .btn { width: 100%; max-width: 280px; text-align: center; }

  /* ── Page hero ── */
  .page-hero {
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 44px;
  }
  .page-hero-tag { letter-spacing: 0.3em; }
  .page-hero-desc { font-size: 0.92rem; padding: 0 0.5rem; }

  /* ── About ── */
  .about-text h2 { font-size: 1.5rem; }
  .about-badges { gap: 0.5rem; }

  /* ── Cards ── */
  .cards-grid { grid-template-columns: 1fr; }

  /* ── Prestations ── */
  .prestation-item,
  .prestation-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .prestation-item:nth-child(even) .prestation-image { order: 0; }
  .prestation-item:nth-child(even) .prestation-info  { order: 1; }
  .prestation-item:nth-child(even) .prestation-img-overlay {
    background: linear-gradient(to right, transparent 60%, rgba(61, 26, 10, 0.45));
  }
  .prestation-image { min-height: 220px; }
  .prestation-info { padding: 1.6rem 1.4rem; }
  .prestation-title { font-size: 1.4rem; }
  .tech-grid { grid-template-columns: 1fr; gap: 0.65rem; }

  /* ── Contact form ── */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-section-title { font-size: 1.1rem; }

  /* ── Contact info ── */
  .contact-info-title { font-size: 1.1rem; }
  .contact-legal-box { padding: 1.1rem; }

  /* ── Footer ── */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  /* ── Toast ── */
  .toast {
    left: 1rem; right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ── Petit mobile (≤ 480px) ────────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-height: 56px; }

  .container { padding: 0 1rem; }
  section { padding: 45px 0; }

  /* Nav */
  .nav-logo { font-size: 0.82rem; gap: 0.4rem; }
  .logo-ornament { display: none; }

  /* Buttons */
  .btn { padding: 0.75rem 1.6rem; font-size: 0.74rem; }

  /* Hero */
  .hero-scroll-btn { bottom: 1.4rem; }

  /* Section titles */
  .section-sub { font-size: 0.88rem; padding: 0 0.5rem; }

  /* Prestations */
  .prestation-image { min-height: 190px; }
  .prestation-info { padding: 1.2rem 1rem; }
  .prestation-title { font-size: 1.25rem; }
  .prestation-subtitle { font-size: 0.85rem; }
  .prestation-desc { font-size: 0.84rem; }
  .prestation-tags { gap: 0.4rem; }
  .tag { font-size: 0.68rem; padding: 0.22rem 0.55rem; }

  /* Contact */
  .contact-icon { width: 38px; height: 38px; font-size: 1rem; }
  .contact-info-value { font-size: 0.86rem; }

  /* Card */
  .card-footer { flex-wrap: wrap; gap: 0.6rem; }
  .card-footer .btn { width: 100%; text-align: center; }

  /* Footer */
  .footer-brand { font-size: 1rem; }
  .footer-orn { font-size: 0.6rem; }
}

/* ── Très petit mobile (≤ 360px) ───────────────────────────── */
@media (max-width: 360px) {
  .hero-title { font-size: 2.6rem; }
  .hero-tagline { display: none; }
  .page-hero-title { font-size: 2rem; }
  .prestation-info { padding: 1rem 0.85rem; }
  .section-title { font-size: 1.5rem; }
}

/* ----------------------------------------------------------------
   PALETTE CLAIRE - exceptions (02/10/2026)
   Le fond est clair partout, sauf la ou une photo ou une visionneuse
   impose un fond sombre : le texte y reste creme ou or, jamais encre.
--------------------------------------------------------------- */
.card-category { color: var(--ink-1); border-color: rgba(233, 169, 60, 0.45); }
.btn-outline:hover { background: rgba(204, 92, 4, 0.10); border-color: var(--orange); }
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--gold); }
.lightbox-close,
.lightbox-prev,
.lightbox-next { color: var(--gold); border-color: rgba(233, 169, 60, 0.45); }
.lightbox-counter { color: var(--ink-1); }
