/* =========================
   VARIABLES
========================= */
:root{
  --ruggieri-deep:#8a3f3a;
  --ruggieri-accent:#ff746b;	
  --ruggieri-black:#000;
  --ruggieri-white:#fff;

  --menu-h:52px;
  --brand-h:130px;

  /* Mobile header */
  --menu-h-m:52px;
  --brand-h-m:102px; /* -15% vs 120 */
}

/* =========================
   RESET / BASE
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; padding:0; }
html{ scroll-padding-top: calc(var(--menu-h) + 12px); }

body.page{
  background:var(--ruggieri-black);
  color:var(--ruggieri-white);
  font-family:"Manrope", Arial, sans-serif;
  padding-top: 0;
}





/* Force liens */
a{ color:inherit; text-decoration:none; }
a:visited{ color:inherit; }
a:hover{ text-decoration:none; }

@media (max-width: 1024px){
  body.page::before{ height: var(--menu-h-m); }
  html{ scroll-padding-top: calc(var(--menu-h-m) + 12px); }
}

:focus-visible{
  outline: 2px solid var(--ruggieri-accent);
  outline-offset: 3px;
}

/* Accessibilité : réduire les animations */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }

  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}




/* ==========================================================
   PAGE HERO (réutilisable)
========================================================== */
.pageHero{
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 18vh, 160px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(255,255,255,0.12);

  --hero-bg: none;
  --hero-accent: var(--ruggieri-accent);
}

.pageHero-bg{
  position: absolute;
  inset: -30px;
  background: var(--hero-bg) center / cover no-repeat;

  /* on garde du flou, mais on ne tue pas la couleur */
  filter: blur(12px) saturate(1.15) contrast(1.05);
  opacity: .95;

  transform: translate3d(0,0,0) scale(1.10);
  will-change: transform;

  z-index: 0;
  pointer-events: none;
}


/* Overlay directement sur le hero (plus simple et sûr) */
.pageHero::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(900px 450px at 25% 25%, rgba(255,116,107,0.18), transparent 55%),
    linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.70));
  z-index: 1;
  pointer-events:none;
}

.pageHero-inner{
  position: relative;
  z-index: 2;
}


.pageHero-crumb{
  color: rgba(255,255,255,0.48);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pageHero-crumb .sep{
  opacity: .55;
  margin: 0 8px;
}

.pageHero-title{
  margin: 10px 0 6px;
  font-family: "Cinzel", serif;
  font-weight: 500;
  letter-spacing: .02em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: var(--hero-accent);
  text-shadow:
    0 0 12px rgba(255,116,107,0.25),
    0 0 32px rgba(255,116,107,0.15);
}

.pageHero-sub{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  max-width: 55ch;
}
/* ==========================================================
   PAGE HERO – liens
========================================================== */

.pageHero a{
  position: relative;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: color .35s ease;
}

/* filet décoratif */
.pageHero a::after{
  content:"";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    var(--ruggieri-accent),
    rgba(255,255,255,0)
  );

  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  opacity: .9;
}

/* hover / focus */
.pageHero a:hover,
.pageHero a:focus-visible{
  color: var(--ruggieri-accent);
}

.pageHero a:hover::after,
.pageHero a:focus-visible::after{
  transform: scaleX(1);
}

/* accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce){
  .pageHero a,
  .pageHero a::after{
    transition: none;
  }
}




/* =========================
   Language switch (desktop only)
========================= */
.langSwitch{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 11px 14px;
  border-radius: 999px;

  text-decoration: none;
  color: rgba(255,255,255,0.92);

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);

  box-shadow: 0 18px 55px rgba(0,0,0,0.45);

  overflow: hidden; /* important pour l'effet */

  transition: transform .2s ease, border-color .25s ease;
}

.langSwitch:hover{
  transform: translateY(-2px);
  border-color: rgba(189,158,87,0.45);
  background: rgba(0,0,0,0.45);
}

.langSwitch-ico{
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;

  color: var(--ruggieri-accent);
  background: rgba(189,158,87,0.12);
  border: 1px solid rgba(189,158,87,0.35);
}

.langSwitch-text{
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.langSwitch::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--ruggieri-accent);

  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,.0,.2,1);

  z-index:0;
}

.langSwitch:hover::before{
  transform: translateX(0);
}

.langSwitch:hover{
  border-color: var(--ruggieri-accent);
}

.langSwitch-ico,
.langSwitch-text{
  position: relative;
  z-index: 1;
}

/* Couleur normale */
.langSwitch-ico{
  color: var(--ruggieri-accent);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

/* Icône blanche quand le fond rouge apparaît */
.langSwitch:hover .langSwitch-ico{
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}
/* Desktop only: on masque en mobile (menu burger) */
@media (max-width: 900px){
  .langSwitch{ display: none; }
}




/* =========================
   Bloc mentions légales
========================= */

.legal{
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.7;
  color: var(--text-color, #444);
  font-size: 16px;
}


/* =========================
   Titres principaux (H2)
========================= */

.legal h2{
  font-size: 36px;
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 18px;
  padding-bottom: 10px;

  color: #fff;

  border-bottom: 2px solid var(--ruggieri-accent);

  letter-spacing: .02em;
	text-transform: uppercase
}


/* =========================
   Sous-titres (H3)
========================= */

.legal h3{
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;

  color: var(--ruggieri-accent);
}


/* =========================
   Paragraphes
========================= */

.legal p{
  margin-bottom: 18px;
  color: #fff;
}


/* =========================
   Listes
========================= */

.legal ul{
  margin: 18px 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.legal li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
	color:white;
}

/* puce élégante */

.legal li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--ruggieri-accent);
}


/* =========================
   Liens
========================= */

.legal a{
  color: var(--ruggieri-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
}

.legal a:hover{
  border-bottom: 1px solid var(--ruggieri-accent);
}


/* =========================
   Responsive
========================= */

@media (max-width: 768px){

  .legal{
    padding: 40px 18px;
    font-size: 15px;
  }

  .legal h2{
    font-size: 24px;
  }

  .legal h3{
    font-size: 18px;
  }

}
