*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f3f4f6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  gap: 1rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 52px;
  height: auto;
}

.logo-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: #e5e7eb;
}

.btn-nav {
  background: #facc15;
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.35);
  font-weight: 600;
}

.btn-nav:hover {
  background: #fbbf24;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #111827;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: #f9fafb;
  border-radius: 999px;
}

/* Hero */

.section-hero {
  padding: 2.5rem 0 2rem;
}

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-media-card {
  background: #020617;
  border-radius: 1.75rem;
  padding: 0.9rem;
  box-shadow: 0 25px 40px rgba(15,23,42,0.55);
}

.hero-media {
  border-radius: 1.2rem;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto; /* pas de zoom */
}

.hero-media-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  color: #f9fafb;
  font-size: 0.8rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.section-hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.txt-highlight {
  color: #facc15;
}

.hero-text {
  color: #4b5563;
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at top left, #fde047, #facc15);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 18px 35px rgba(250,204,21,0.55);
}

.btn-primary:hover {
  background: #fbbf24;
}

.btn-ghost {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-weight: 500;
  background: #fff;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 0.85rem;
}

.badge {
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  background: #f9fafb;
}

.badge-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-text {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Sections */

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: #f9fafb;
  padding: 2.5rem 0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-intro {
  color: #6b7280;
  font-size: 0.95rem;
  max-width: 680px;
  margin-bottom: 1.6rem;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.card {
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Cards images */

.cards-grid-images .card {
  padding: 0.9rem 0.9rem 1.1rem;
}

.card-image-wrapper {
  border-radius: 1.1rem;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.card-image-wrapper img {
  width: 100%;
  height: auto; /* pas de zoom sur les réalisations */
}

.card-image-wrapper-tall img {
  width: 100%;
  height: auto;
}

.card-image h3 {
  margin-bottom: 0.25rem;
}

/* A propos */

.about-grid {
  display: grid;
  gap: 1.8rem;
  align-items: flex-start;
}

.about-grid p {
  color: #4b5563;
  font-size: 0.95rem;
}

.about-highlight {
  background: #111827;
  color: #f9fafb;
  border-radius: 1.3rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.35);
}

.about-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.about-highlight ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
}

.about-highlight li + li {
  margin-top: 0.45rem;
}

/* Contact */

.section-dark {
  background: #020617;
  color: #e5e7eb;
}

.contact-layout {
  display: grid;
  gap: 1.8rem;
}

.card-dark {
  background: #020617;
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 24px 45px rgba(15,23,42,0.7);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0.8rem;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.25rem;
}

.contact-note {
  font-size: 0.85rem;
  color: #9ca3af;
}

.contact-form {
  background: #0b1120;
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 24px 45px rgba(15,23,42,0.7);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #facc15;
  outline-offset: 1px;
}

.full-width {
  width: 100%;
  margin-top: 0.4rem;
}

/* Footer */

.site-footer {
  padding: 1.4rem 0 1.6rem;
  background: #020617;
  color: #9ca3af;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
}

.footer-small {
  margin-top: 0.25rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 40;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: #020617;
  border-radius: 1.5rem;
  padding: 1rem 1rem 1.2rem;
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.9);
  color: #f9fafb;
  font-size: 1.2rem;
  cursor: pointer;
}

#lightbox-caption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Responsive */

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }
  .section-hero {
    padding-top: 3rem;
  }
  .section-hero h1 {
    font-size: 2.4rem;
  }
  .about-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
}
/* Lightbox transitions et flèches */
#lightbox-image {
  transition: opacity 0.25s ease;
}
.fade-out {
  opacity: 0;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
/* ✅ Ajustement du cadrage des images en plein écran (PC + mobile) */
.lightbox img {
  max-width: 90vw;          /* largeur max : 90% de l’écran */
  max-height: 90vh;         /* hauteur max : 90% de l’écran */
  object-fit: contain;      /* garde les proportions sans rogner */
  border-radius: 12px;      /* coins légèrement arrondis */
  box-shadow: 0 0 20px rgba(0,0,0,0.6); /* ombre douce */
  transition: transform 0.3s ease;
}

/* effet léger au survol sur PC */
.lightbox img:hover {
  transform: scale(1.02);
}