/* ============================================================
   COMPONENTS.CSS — Casino Evenements
   Reusable components: hero, buttons, cards, FAQ accordion,
   CTA, intro, legal, error, scroll animations
   ============================================================ */

/* ============================================================
   HERO SECTIONS
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient overlay for text legibility */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgba(10, 10, 10, 0.95) 0%,
      rgba(10, 10, 10, 0.7) 35%,
      rgba(10, 10, 10, 0.4) 60%,
      rgba(10, 10, 10, 0.25) 100%
    );
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 300;
  color: var(--white-soft);
  margin-top: var(--space-lg);
  max-width: 38ch;
  line-height: 1.7;
}

.hero .btn {
  margin-top: var(--space-xl);
}

/* ----- Hero — Accueil (full viewport, centered) ----- */

.hero--accueil {
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero--accueil::after {
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(212, 175, 55, 0.05) 0%,
      transparent 60%
    ),
    linear-gradient(
      to top,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(10, 10, 10, 0.5) 40%,
      rgba(10, 10, 10, 0.3) 70%,
      rgba(10, 10, 10, 0.15) 100%
    );
}

.hero--accueil h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.hero--accueil .hero-subtitle {
  max-width: 48ch;
  margin-inline: auto;
}

/* ----- Hero — Mini (inner pages) ----- */

.hero--mini {
  min-height: 32vh;
  padding: var(--space-2xl) 0 var(--space-xl);
}

@media (min-width: 768px) {
  .hero--mini {
    min-height: 36vh;
    padding: var(--space-3xl) 0 var(--space-2xl);
  }
}

/* Hero mini without background image (FAQ, some pages) */
.hero--mini:not(:has(.hero-bg)) {
  background: var(--dark-card);
  border-bottom: 1px solid var(--border-subtle);
}

.hero--mini:not(:has(.hero-bg))::after {
  display: none;
}

/* ----- Hero — 404 ----- */

.hero--404 {
  min-height: 20vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark-card);
  border-bottom: 1px solid var(--border-subtle);
}

.hero--404::after {
  display: none;
}

/* ----- Hero kicker (small gold label above H1, with short baseline) ----- */

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  position: relative;
}

.hero-kicker::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ----- Hero — SEO pages ----- */

.seo-departement {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.05em 2.8em;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary — solid gold */
.btn--primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

/* Secondary — outlined gold, minimal */
.btn--secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-gold-strong);
}

.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
}

/* ============================================================
   CTA CONTACT SECTION
   ============================================================ */

.cta-contact {
  padding: var(--section-gap) 0;
  text-align: center;
  position: relative;
}

.cta-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.cta-contact h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
}

.cta-contact p {
  color: var(--white-muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-top: var(--space-lg);
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  line-height: 1.8;
}

.cta-contact .btn {
  margin-top: var(--space-xl);
}

.cta-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.cta-contact-actions .btn {
  margin-top: 0;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */

.intro {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.intro > .container {
  max-width: 760px;
}

.intro p {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--white-soft);
  text-align: center;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-item[open] {
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.01);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-fast) var(--ease-out);
}

/* Remove default marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: '';
}

/* Custom gold indicator */
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform var(--duration-normal) var(--ease-out);
  margin-top: -3px;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--white-muted);
}

/* ============================================================
   ARTICLE CARD (Blog listing + homepage)
   ============================================================ */

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.article-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.article-card > a {
  display: block;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.article-card:hover img {
  transform: scale(1.04);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  flex: 1;
}

.article-card-category {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.article-card-body h2,
.article-card-body h3 {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  line-height: 1.35;
  margin-bottom: 0;
  text-transform: none;
}

.article-card-body h2 a,
.article-card-body h3 a {
  color: var(--white);
  transition: color var(--duration-fast) var(--ease-out);
}

.article-card-body h2 a:hover,
.article-card-body h3 a:hover {
  color: var(--gold);
}

.article-card-body > p {
  font-size: 0.875rem;
  color: var(--white-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.no-articles {
  text-align: center;
  color: var(--white-muted);
  font-style: italic;
  padding: var(--space-2xl) 0;
}

/* ============================================================
   CARTE REALISATION (Preview component)
   ============================================================ */

.realisations-preview {
  padding: var(--section-gap) 0;
}

.realisations-preview > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.realisations-preview h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.realisations-preview .btn {
  margin-top: var(--space-xl);
}

.realisations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
}

@media (min-width: 768px) {
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .realisations-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.carte-realisation {
  position: relative;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.carte-realisation--linked {
  cursor: pointer;
}

.carte-realisation:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.carte-realisation-link {
  color: inherit;
  text-decoration: none;
}

.carte-realisation-link:hover,
.carte-realisation-link:focus {
  color: var(--gold);
}

.carte-realisation-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.carte-realisation-link:focus-visible {
  outline: none;
}

.carte-realisation--linked:has(.carte-realisation-link:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.carte-realisation-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* Le <picture> est inline par defaut : on le passe en block et on lui donne
   la pleine hauteur du cadre, sinon height:100% sur l'<img> ne se resout pas
   et l'image garde son ratio naturel (le 16/9 du chateau ne remplissait pas
   le cadre 4/3 comme le 4/3 du gala James Bond). */
.carte-realisation-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carte-realisation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.carte-realisation:hover .carte-realisation-image img {
  transform: scale(1.04);
}

.carte-realisation-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.carte-realisation-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.carte-realisation-body h3 {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  line-height: 1.3;
  margin-bottom: 0;
}

.carte-realisation-lieu {
  font-size: 0.8125rem;
  color: var(--white-muted);
}

.carte-realisation-details {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--white-muted);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-xs);
}

.carte-realisation-details li {
  position: relative;
}

.carte-realisation-details li + li::before {
  content: '';
  position: absolute;
  left: calc(var(--space-md) / -2);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

.legal-content {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.legal-content > .container {
  max-width: 760px;
}

.legal-content h2 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.5rem);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--white-soft);
}

.legal-content ul {
  margin-top: var(--space-sm);
  padding-left: var(--space-lg);
}

.legal-content li {
  font-size: 0.9375rem;
  color: var(--white-soft);
  line-height: 1.75;
  position: relative;
  padding-left: var(--space-md);
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   ERROR CONTENT (404)
   ============================================================ */

.error-content {
  padding: var(--space-2xl) 0 var(--space-3xl);
  text-align: center;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 5rem + 5vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: var(--dark-card);
  background: linear-gradient(
    135deg,
    var(--gold-dark) 0%,
    var(--gold) 40%,
    var(--gold-light) 60%,
    var(--gold-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-lg);
}

.error-message {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  color: var(--white-muted);
  max-width: 36ch;
  margin-inline: auto;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.fade-in-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

/* Etat initial : retire du flux pour ne pas perturber Lighthouse LCP detection. */
.cookie-banner.cookie-banner--awaiting {
  display: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }
}

.cookie-banner-content p {
  font-size: 0.8125rem;
  color: var(--white-muted);
  line-height: 1.6;
  flex: 1;
}

.cookie-banner-content a {
  color: var(--gold);
  transition: color var(--duration-fast) var(--ease-out);
}

.cookie-banner-content a:hover {
  color: var(--gold-light);
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 0.6em 1.6em;
  font-size: 0.75rem;
}

/* ============================================================
   DEVIS SECTION — Formulaire de demande de devis
   Composant partagé par l'accueil et la page contact.
   Layout : info à gauche, formulaire à droite.
   ============================================================ */

.devis-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.devis-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .devis-layout {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* ----- Colonne info ----- */

.devis-info h2 {
  margin-bottom: var(--space-md);
}

.devis-intro {
  color: var(--white-muted);
  font-size: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.devis-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.devis-contact-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: var(--space-xs);
}

.devis-contact-item a {
  color: var(--white);
  transition: color var(--duration-fast) var(--ease-out);
}

.devis-contact-item a:hover {
  color: var(--gold);
}

/* ----- Colonne formulaire ----- */

.devis-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-xl);
  /* Empeche le grid blowout : les selects avec options longues
     ne doivent pas forcer le wrapper a depasser le viewport. */
  min-width: 0;
}

@media (min-width: 768px) {
  .devis-form-wrapper {
    padding: var(--space-2xl);
  }
}

.devis-form-contact-info {
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--white-muted);
}

.devis-form-contact-info a {
  color: var(--gold);
  text-decoration: none;
}

.devis-form-contact-info a:hover,
.devis-form-contact-info a:focus {
  text-decoration: underline;
}

.devis-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Champ piège anti-bot (honeypot) : retiré du flux visuel sans display:none
   (certains bots ignorent les champs en display:none / type=hidden). */
.devis-form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.devis-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .devis-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.devis-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.devis-form-group label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.devis-form-group label .required {
  color: var(--gold);
  margin-left: 2px;
}

.devis-form-group input,
.devis-form-group select,
.devis-form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--white);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  /* Force le champ a respecter la largeur du parent (anti-overflow mobile). */
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.devis-form-group input::placeholder,
.devis-form-group textarea::placeholder {
  color: var(--white-muted);
  opacity: 0.5;
}

.devis-form-group input:focus,
.devis-form-group select:focus,
.devis-form-group textarea:focus {
  border-bottom-color: var(--gold);
}

.devis-form-group select {
  cursor: pointer;
  color: var(--white-muted);
}

.devis-form-group select option {
  background: var(--dark-card);
  color: var(--white);
}

.devis-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.devis-form .btn {
  align-self: center;
  margin-top: var(--space-md);
}

/* ----- Etat d'erreur (validation client) ----- */

.devis-form-group input[aria-invalid="true"],
.devis-form-group select[aria-invalid="true"],
.devis-form-group textarea[aria-invalid="true"] {
  border-bottom-color: #c45c5c;
}

.devis-form .form-error {
  font-size: 0.75rem;
  color: #c45c5c;
  min-height: 1.2em;
  line-height: 1.4;
}

/* ----- Message de retour après envoi ----- */

.devis-form .form-status {
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  display: none;
  margin-top: var(--space-sm);
}

.devis-form .form-status.is-success {
  display: block;
  background: rgba(55, 120, 70, 0.1);
  border: 1px solid rgba(55, 120, 70, 0.3);
  color: #6abf7b;
}

.devis-form .form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.1);
  border: 1px solid rgba(139, 58, 58, 0.3);
  color: #c45c5c;
}
