/* =============================================
   JOE DE SÉGURET — GLOBAL STYLESHEET
   Palette : ivoire, terre, vert mousse, doré
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --ivoire:    #f5f0e8;
  --creme:     #ede5d0;
  --terre:     #8b6f47;
  --terre-dk:  #5c4a2a;
  --vert:      #4a5e45;
  --vert-lt:   #6b7f66;
  --or:        #c9a84c;
  --or-lt:     #e8d5a0;
  --brun:      #3a2e1e;
  --gris:      #7a7068;
  --blanc:     #ffffff;

  --font-titre: 'Cormorant Garamond', Georgia, serif;
  --font-corps: 'Raleway', sans-serif;

  --radius: 2px;
  --transition: 0.35s ease;
  --shadow: 0 4px 24px rgba(58,46,30,0.13);
  --shadow-lg: 0 12px 48px rgba(58,46,30,0.22);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ivoire);
  color: var(--brun);
  font-family: var(--font-corps);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.15;
  color: var(--brun);
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--terre); }
h5 { font-size: 0.85rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--vert-lt); font-family: var(--font-corps); }

p { margin-bottom: 1.1em; }

em { font-style: italic; color: var(--terre); }

.subtitle {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--vert-lt);
  letter-spacing: .04em;
}

/* --- LAYOUT HELPERS --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
}
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }

.section { padding: clamp(3rem, 8vw, 7rem) 0; }
.section--dark { background: var(--brun); color: var(--creme); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--or-lt); }
.section--dark h5 { color: var(--or); }
.section--cream { background: var(--creme); }
.section--vert { background: var(--vert); color: var(--ivoire); }
.section--vert h2, .section--vert h3, .section--vert h4 { color: var(--or-lt); }
.section--vert h5 { color: var(--or); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* --- ORNEMENT TRAIT --- */
.ornement {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.ornement::before, .ornement::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--or);
  opacity: .5;
}
.ornement--left::before { display: none; }
.ornement--left { justify-content: flex-start; }
.ornement--left::after { flex: 0; width: 60px; }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background: rgba(245,240,232,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav__logo {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brun);
  letter-spacing: .03em;
}
.nav__logo span { color: var(--or); font-style: italic; }

.nav__links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-corps);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brun);
  position: relative;
  transition: color var(--transition);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--terre); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--vert);
  color: var(--ivoire) !important;
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--terre-dk) !important; color: var(--ivoire) !important; }
.nav__cta::after { display: none !important; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brun);
  transition: var(--transition);
  border-radius: 2px;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--ivoire);
  border-bottom: 1px solid var(--creme);
  padding: 1.5rem clamp(1.2rem, 5vw, 3rem);
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
  box-shadow: var(--shadow);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brun);
  padding: .5rem 0;
  border-bottom: 1px solid var(--creme);
}
.nav__mobile a:last-child { border-bottom: none; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 72px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.75);
  transition: transform 0.1s linear;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58,46,30,.82) 0%, rgba(58,46,30,.12) 55%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--ivoire);
  padding: 5rem clamp(1.2rem, 5vw, 3rem);
  max-width: 760px;
}
.hero__eyebrow {
  font-family: var(--font-corps);
  font-size: 0.78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}
.hero__title {
  color: var(--ivoire);
  margin-bottom: .6rem;
}
.hero__subtitle {
  color: var(--or-lt);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-family: var(--font-titre);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- BOUTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-corps);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--or); color: var(--brun); }
.btn--primary:hover { background: var(--terre); color: var(--ivoire); }
.btn--outline { border: 1px solid rgba(245,240,232,.5); color: var(--ivoire); }
.btn--outline:hover { background: var(--ivoire); color: var(--brun); border-color: var(--ivoire); }
.btn--vert { background: var(--vert); color: var(--ivoire); }
.btn--vert:hover { background: var(--terre-dk); }
.btn--sm { padding: .55rem 1.3rem; font-size: .75rem; }

/* --- CARDS --- */
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img { width: 100%; height: 240px; object-fit: cover; }
.card__body { padding: 1.8rem; }
.card__tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vert);
  font-weight: 600;
  margin-bottom: .7rem;
}

/* --- CAROUSEL / SLIDER --- */
.slider { position: relative; overflow: hidden; border-radius: var(--radius); }
.slider__track { display: flex; transition: transform .5s ease; }
.slider__slide { min-width: 100%; position: relative; }
.slider__slide img { width: 100%; height: 480px; object-fit: cover; }
.slider__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(58,46,30,.75));
  color: var(--ivoire);
  padding: 2rem 1.8rem 1.4rem;
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.1rem;
}
.slider__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(245,240,232,.85);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--brun);
  transition: background var(--transition);
  z-index: 2;
  font-size: 1.2rem;
}
.slider__btn:hover { background: var(--ivoire); }
.slider__btn--prev { left: 1rem; }
.slider__btn--next { right: 1rem; }
.slider__dots {
  display: flex; justify-content: center; gap: .5rem;
  padding: .8rem 0;
}
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--creme);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.slider__dot.active { background: var(--or); transform: scale(1.3); }

/* --- RÉSULTATS / PALMARES --- */
.palmares {
  background: var(--creme);
  border-left: 3px solid var(--or);
  padding: 1.8rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.palmares h3 { margin-bottom: .3rem; }
.palmares__year {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--or); font-weight: 600; margin-bottom: .8rem;
}
.palmares ul { display: flex; flex-direction: column; gap: .4rem; }
.palmares li {
  display: flex; align-items: baseline; gap: .6rem;
  font-size: .92rem;
}
.palmares li::before { content: '✦'; color: var(--or); font-size: .6rem; flex-shrink: 0; }

/* Champion badge */
.badge-champion {
  display: inline-block;
  background: var(--or);
  color: var(--brun);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: var(--radius);
}

/* --- QUOTE --- */
.blockquote {
  border-left: 3px solid var(--or);
  padding: 1.5rem 2rem;
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--terre-dk);
  margin: 2.5rem 0;
  background: var(--creme);
}
.blockquote footer { font-size: .82rem; margin-top: .8rem; color: var(--gris); font-style: normal; font-family: var(--font-corps); letter-spacing: .08em; }

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info a { transition: color var(--transition); }
.contact-info a:hover { color: var(--or); }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--creme);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--terre);
  font-size: 1rem;
}

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: .5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--creme);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-family: var(--font-corps);
  font-size: .92rem;
  color: var(--brun);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--or); background: var(--blanc); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* --- GALERIE GRID --- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.galerie-item:hover img { transform: scale(1.05); }
.galerie-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(58,46,30,.5);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition);
  color: var(--ivoire);
  font-size: 1.8rem;
}
.galerie-item:hover .galerie-item__overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,15,8,.95);
  z-index: 200;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--ivoire);
  font-size: 2rem; cursor: pointer;
}

/* --- FOOTER --- */
.footer {
  background: var(--brun);
  color: var(--creme);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer__logo {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  color: var(--or-lt);
  margin-bottom: .6rem;
}
.footer__tagline { font-size: .88rem; color: rgba(237,229,208,.55); margin-bottom: 0; }
.footer__heading {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
  font-family: var(--font-corps);
  font-weight: 600;
}
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
  font-size: .88rem;
  color: rgba(237,229,208,.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--or-lt); }
.footer__copy { font-size: .78rem; color: rgba(237,229,208,.35); text-align: center; }

/* --- DIVIDER ORNEMENT --- */
.divider {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 2.5rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--or); opacity: .3;
}
.divider__symbol { color: var(--or); font-size: 1rem; opacity: .6; }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--brun);
  color: var(--creme);
  padding: 1.2rem clamp(1.2rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 300;
  border-top: 2px solid var(--or);
}
.cookie-banner p { font-size: .85rem; margin: 0; flex: 1; min-width: 200px; }
.cookie-banner__btns { display: flex; gap: .8rem; flex-shrink: 0; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .palmares { padding: 1.4rem 1.2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
  .slider__slide img { height: 280px; }
  .cookie-banner { flex-direction: column; }
  .cookie-banner__btns { width: 100%; justify-content: flex-end; }
}
