/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose:      #d4783a;
  --rose-light:#f0c89a;
  --rose-pale: #fdf4ed;
  --bleu:      #a8c8e8;
  --bleu-light:#d4e8f5;
  --vert:      #b8c89a;
  --jaune:     #e8c848;
  --lavande:   #c8a878;
  --text:      #87ceeb;
  --text-light:#b9e6f8;
  --white:     #000000;
  --surface:   #141414;
  --shadow:    rgba(0,0,0,0.45);
  --radius:    12px;
  --font-title:'Josefin Sans', sans-serif;
  --font-body: 'Josefin Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===========================
   NAV
=========================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135,206,235,0.25);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px var(--shadow); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.4rem; font-weight: 400;
  color: var(--text);
}
.nav-logo span { color: var(--rose); margin-left: 1px; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .95rem; font-weight: 400; color: var(--text-light);
  transition: color .2s;
}
.nav-links a:hover { color: var(--rose); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lang-switch a {
  display: inline-flex;
  line-height: 0;
  border-radius: 2px;
  opacity: 0.72;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="page"] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--rose);
}
.flag {
  display: block;
  width: 1.45rem;
  height: 0.95rem;
  border-radius: 2px;
}
.flag-fr { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.flag-us {
  background:
    linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 42% 54% no-repeat,
    repeating-linear-gradient(#b22234 0 7.7%, #fff 7.7% 15.4%);
}
.flag-it { background: linear-gradient(90deg, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%); }
.flag-de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: .3rem; }
.nav-dropdown > .dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid rgba(135,206,235,0.25);
  border-radius: var(--radius); box-shadow: 0 10px 30px var(--shadow);
  list-style: none; padding: .5rem 0; min-width: 190px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
  pointer-events: none;
  z-index: 1001;
}
.nav-dropdown:hover > .dropdown,
.nav-dropdown.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: .5rem 1.2rem; color: var(--text-light); font-size: .9rem; }
.dropdown a:hover { background: rgba(135,206,235,0.12); color: var(--text); }

.burger {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text);
}

/* ===========================
   HERO
=========================== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: #000000;
  padding-top: 70px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: none;
}

.hero-splash {
  position: absolute; bottom: -20px; left: -5%;
  width: 110%; height: 200px;
  background: #000000;
  border-radius: 50% 50% 0 0 / 80px 80px 0 0;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(212,120,58,.15);
  color: var(--rose);
  border: 1px solid rgba(212,120,58,.35);
  padding: .35rem 1.2rem; border-radius: 20px;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-content h1 em { color: var(--text); font-style: italic; font-weight: 400; }

.hero-sub {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 500px; margin: 0 auto 2.5rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #d4783a, #b85820);
  color: white;
  padding: .8rem 2rem; border-radius: 30px;
  font-weight: 700; font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(212,120,58,.35);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,120,58,.5); }
.btn-primary.full { width: 100%; text-align: center; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose);
  padding: .75rem 1.8rem; border-radius: 30px;
  font-weight: 700; font-size: .95rem;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--rose); color: white; }

/* ===========================
   SECTIONS COMMUNES
=========================== */
.section-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: .5rem;
  text-align: center;
}
.section-title.left { text-align: left; }

.section-sub {
  text-align: center; color: var(--text-light);
  font-size: 1rem; margin-bottom: 3rem;
}

/* ===========================
   GALERIE
=========================== */
#galerie { background: #000000; }

.section-banner {
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center 22%;
  padding: 4.5rem 1.5rem;
}
.section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.section-banner .section-title {
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.gallery-filters {
  display: flex; gap: .75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter {
  padding: .45rem 1.3rem; border-radius: 20px;
  border: 1.5px solid var(--rose-light);
  background: transparent; color: var(--text-light);
  font-size: .9rem; cursor: pointer;
  transition: all .2s;
}
.filter:hover, .filter.active {
  background: var(--rose); border-color: var(--rose);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-img {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: #000000;
}
.gallery-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover .gallery-img img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,48,64,.75) 0%, transparent 50%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.2rem;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-weight: 700; font-size: 1rem; }
.gallery-overlay small { color: rgba(255,255,255,.75); font-size: .8rem; }

.gallery-caption {
  text-align: center; margin-top: .6rem;
  font-size: .9rem; color: var(--text-light);
}

.gallery-item.hidden { display: none; }

/* ===========================
   À PROPOS
=========================== */
#apropos {
  background: #000000;
}

.apropos-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: center;
}

.apropos-img img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
}

.apropos-text p {
  color: var(--text-light); margin-bottom: 1rem;
}
.apropos-text strong { color: var(--text); }
.apropos-text em { color: var(--rose); font-style: italic; }

.apropos-links {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===========================
   CONTACT
=========================== */
#contact { background: #000000; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem; align-items: start;
}

.contact-form {
  display: flex; flex-direction: column; gap: 1.2rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 700; color: var(--text); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid rgba(135,206,235,0.35);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem; color: var(--text);
  background: var(--surface);
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text);
  background: #1c1c1c;
}

.form-note { text-align: center; font-size: .9rem; color: var(--rose); margin-top: .5rem; }

.contact-info {
  display: flex; flex-direction: column; gap: 1.2rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid rgba(135,206,235,0.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
}
.contact-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.contact-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.contact-card p, .contact-card a { font-size: .9rem; color: var(--text-light); }
.contact-card a:hover { color: var(--rose); }

/* ===========================
   FOOTER
=========================== */
footer {
  background: #000000;
  color: var(--text-light);
  border-top: 1px solid rgba(135,206,235,0.25);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
  line-height: 2;
}
footer a { color: var(--rose-light); }
footer a:hover { color: var(--rose); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 1rem; }
  .nav-links.open {
    display: flex;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #000000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--rose-light);
    box-shadow: 0 10px 30px var(--shadow);
  }
  .nav-dropdown { position: static; }
  .nav-dropdown > .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    box-shadow: none; border: none; border-radius: 0; padding: .3rem 0 .3rem 1rem;
    background: transparent; min-width: auto;
    display: none;
  }
  .nav-dropdown.open > .dropdown { display: block; }
  .dropdown a { padding: .4rem 0; }
  .nav-drop-trigger { color: var(--text-light); }
  .burger { display: block; }

  .apropos-inner { grid-template-columns: 1fr; gap: 2rem; }
  .apropos-img { max-width: 300px; margin: 0 auto; }
  .section-title.left { text-align: center; }
  .apropos-links { justify-content: center; }

  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
