/* =========================================================
   Sud Ouest Artifices - feuille de style unifiée
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --bg: #0b0b0f;
  --ink: #e9e9ef;
  --muted: #b7b7c6;
  --line: #23233a;
  --card: #161624;
  --accent: #e94a4a;
}

/* ---------- Reset de base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fond global ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(5, 5, 10, .35), rgba(5, 5, 10, .35)),
    url('../img/Bouquet.webp') center/cover no-repeat fixed;
  opacity: .28;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(10, 10, 18, .4), transparent 55%),
    linear-gradient(to bottom, rgba(5, 5, 10, .85), rgba(5, 5, 10, .9));
  pointer-events: none;
  z-index: -1;
}

/* ---------- Conteneur ---------- */
.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Typo globale ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 650;
  letter-spacing: 0.03em;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 14px;
}

h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

p {
  margin-bottom: 10px;
  color: var(--muted);
}

.lead {
  font-size: 17px;
  color: #f0f0ff;
}

/* ---------- Liens ---------- */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(10, 10, 18, .92), rgba(10, 10, 18, .86));
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Logo dans la barre du haut : plus imposant */
.brand img {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .15),
    0 0 20px rgba(233, 74, 74, .65);
}

.brand span {
  font-weight: 650;
  letter-spacing: .09em;
  font-size: 15px;
  text-transform: uppercase;
  color: #f7f7ff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #f0f0ff;
  text-decoration: none;
}

.nav a:hover {
  border-color: rgba(233, 74, 74, .6);
  background: radial-gradient(circle at 0 0, rgba(233, 74, 74, .18), transparent 60%);
}

.nav a.active {
  border-color: rgba(233, 74, 74, .9);
  background: radial-gradient(circle at 0 0, rgba(233, 74, 74, .26), transparent 65%);
}

/* =========================================================
   HERO Accueil
   ========================================================= */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 90px 0 54px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 36px;
  align-items: center;
}

/* Canvas animation */
#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Photos discrètes en arrière-plan dans le hero (home) */
.hero-inner,
.hero-right {
  position: relative;
}

.hero-inner::before,
.hero-right::before {
  content: "";
  position: absolute;
  inset: -18px -24px -22px -24px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.20;
  filter: saturate(1.15) contrast(1.05);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* Bloc de gauche : coulisses / installation */
.hero-inner::before {
  background-image:
    linear-gradient(135deg, rgba(11, 11, 15, 0.90), rgba(11, 11, 15, 0.65)),
    url("../img/100.webp");
}

/* Bloc de droite : feu d’artifice en plein ciel */
.hero-right::before {
  background-image:
    linear-gradient(140deg, rgba(11, 11, 15, 0.90), rgba(11, 11, 15, 0.65)),
    url("../img/1.webp");
}

/* Logo principal sur la home : plus imposant, lumineux, animé */
.hero-logo {
  width: 210px;
  height: auto;
  margin: 0 0 14px 0;
  filter: drop-shadow(0 0 10px rgba(233, 74, 74, 0.7));
  animation: logoPulse 3.2s ease-in-out infinite;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Effet au survol (desktop) */
.hero-logo:hover {
  transform: scale(1.05) translateY(-1px);
  filter: drop-shadow(0 0 18px rgba(255, 210, 140, 1));
}

/* Animation de “respiration” */
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(233, 74, 74, 0.7));
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(255, 230, 160, 1));
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner h1 {
  margin-top: 10px;
}

.hero p {
  max-width: 520px;
}

/* CTA hero */
.cta-univers {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 14px 0 16px;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: radial-gradient(circle at 0 0, rgba(233, 74, 74, .20), rgba(10, 10, 18, .95));
  text-decoration: none;
}

.cta-univers .verb {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 235, 220, .9);
}

.cta-univers .title {
  font-size: 14px;
  color: #fff1e0;
  margin-top: 3px;
}

.cta-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #ffb36b, #e94a4a 58%, #5a1122);
  color: #160909;
  box-shadow: 0 12px 32px rgba(233, 74, 74, .55);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(233, 74, 74, .8);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  border-color: rgba(235, 235, 255, .35);
  color: var(--ink);
  background: radial-gradient(circle at 0 0, rgba(233, 74, 74, .18), rgba(10, 10, 15, .9));
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

/* Hero right : citations */
.hero-right {
  position: relative;
  z-index: 1;
  padding: 14px 16px 16px;
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(233, 74, 74, .25), rgba(11, 11, 20, .96));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .75);
}

.hero-right h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 4px;
  color: #ffece2;
}

.hero-right .lead {
  font-size: 13px;
  margin-bottom: 10px;
}

.card-quote {
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(5, 5, 12, .85);
  border: 1px solid rgba(255, 255, 255, .08);
}

.card-quote p {
  margin: 0 0 4px;
  color: #f8f8ff;
  font-size: 14px;
}

.card-quote footer {
  font-size: 11px;
  color: rgba(220, 220, 245, .85);
}

/* =========================================================
   SECTIONS GÉNÉRIQUES
   ========================================================= */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 42px 0;
}

.section-alt {
  padding: 48px 0;
}

/* Section “Projection” sur la home */
.section-cta {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 28px 0 32px;
}

.section-cta .lead {
  margin-bottom: 16px;
}

.section-cta .btn-cta-sm {
  font-size: 13px;
  padding: 9px 16px;
}

.section-cta .cta-note {
  margin-top: 10px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* Projection générique */
.projection {
  border-radius: 26px;
  padding: 22px 22px 22px;
  background:
    radial-gradient(circle at 0 0, rgba(233, 74, 74, .30), transparent 55%),
    linear-gradient(135deg, rgba(15, 14, 29, .97), rgba(12, 12, 23, .96));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .85);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 26px;
  align-items: center;
}

.projection h2 {
  margin-bottom: 8px;
}

.projection p {
  margin-bottom: 8px;
}

.projection ul {
  list-style: none;
  margin-top: 6px;
}

.projection li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

.projection li::before {
  content: "•";
  color: #ffb36b;
}

/* Cartouche infos */
.info-card {
  border-radius: 22px;
  padding: 14px 14px 16px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 190, 120, .22), transparent 55%),
    linear-gradient(145deg, rgba(16, 15, 35, 1), rgba(16, 15, 30, .98));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .8);
}

.info-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 6px;
  color: #ffe6d1;
}

.info-card p {
  font-size: 13px;
  margin-bottom: 6px;
}

/* =========================================================
   PAGES INTERNES
   ========================================================= */

/* même coussin haut que la page d’accueil */
.page {
  padding: 90px 0 60px;
}

/* Version centrée verticalement pour les pages internes
   dont le contenu n’est pas trop long */
.page.page-centered {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

/* On laisse .page gérer le padding vertical */
.page.page-centered > .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Titre principal animé des pages internes */
.page-title {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #fff3e6;
  text-shadow:
    0 0 10px rgba(233, 74, 74, 0.4),
    0 0 20px rgba(255, 200, 140, 0.25);
  animation: pageTitleGlow 3.4s ease-in-out infinite;
}

/* Animation douce, dans l’esprit du logo d’accueil */
@keyframes pageTitleGlow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(233, 74, 74, 0.40),
      0 0 20px rgba(255, 200, 140, 0.25);
    transform: translateY(0);
  }

  50% {
    text-shadow:
      0 0 18px rgba(233, 74, 74, 0.75),
      0 0 30px rgba(255, 230, 160, 0.90);
    transform: translateY(-1px);
  }
}

.page h1 {
  margin-bottom: 14px;
}

.page .lead {
  margin-bottom: 22px;
}

/* Layout deux colonnes parfois utilisé */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  align-items: flex-start;
}

/* Blocs de type carte */
.card {
  background: linear-gradient(145deg, rgba(20, 20, 36, .96), rgba(16, 16, 30, .98));
  border-radius: 22px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .8);
}

.card h2,
.card h3 {
  color: #f9f6ff;
}

.card h2 {
  margin-bottom: 6px;
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 16px;
}

.card p {
  font-size: 14px;
}

.card ul {
  margin: 6px 0 2px 18px;
  color: var(--muted);
  font-size: 14px;
}

.card li {
  margin-bottom: 4px;
}

/* Listes en ligne pour petits éléments */
.inline-list {
  list-style: none;
}

.inline-list li::before {
  content: "• ";
  color: #ffb36b;
}

/* Petites grilles utilitaires */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* =========================================================
   GALERIE
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(233, 74, 74, .18), rgba(10, 10, 16, .95));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .85);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s ease, filter .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 26px;
  align-items: flex-start;
}

.contact-card {
  background: linear-gradient(145deg, rgba(18, 18, 38, .96), rgba(14, 14, 28, .98));
  border-radius: 22px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .85);
}

.contact-card h2 {
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
}

.contact-info {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.contact-info a {
  color: #ffe0b0;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

label {
  font-size: 13px;
  color: #f0f0ff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(5, 5, 12, .9);
  color: var(--ink);
  font-size: 14px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(190, 190, 210, .78);
  font-size: 13px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button[type="submit"] {
  margin-top: 4px;
}

/* =========================================================
   TABLEAUX (réglementation, etc.)
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}

th,
td {
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 10px;
}

th {
  background: linear-gradient(to bottom, rgba(26, 26, 44, .98), rgba(20, 20, 36, .97));
  color: #f3f3ff;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: rgba(10, 10, 20, .85);
}

/* =========================================================
   MENTIONS / RGPD / CRÉDITS
   ========================================================= */
.meta-list {
  list-style: none;
  margin: 8px 0 14px;
}

.meta-list li {
  margin-bottom: 4px;
  font-size: 14px;
}

.meta-list strong {
  color: #f8f8ff;
}

small,
small a {
  font-size: 12px;
  color: rgba(190, 190, 210, .85);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 20px 0 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .04);
  background: linear-gradient(to top, rgba(5, 5, 12, .95), rgba(5, 5, 12, .88));
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer a {
  color: #ffd7a2;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   UTILS
   ========================================================= */
.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(235, 235, 255, .85);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  h1 {
    font-size: 36px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-logo {
    width: 160px;
    animation-duration: 3.8s; /* un peu plus lent sur mobile */
  }

  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    margin-top: 10px;
  }

  .projection {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid,
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner::before,
  .hero-right::before {
    opacity: 0.14;   /* un peu moins présent sur petits écrans */
  }

  .page.page-centered {
    min-height: auto; /* sur mobile : on laisse scroller naturellement */
    display: block;
  }

  .page-title {
    font-size: 32px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    gap: 3px;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 8px 14px;
  }
}
