/* Palette & thèmes globaux */
:root {
  --brand: #10497B; /* Bleu principal */
  --brand-secondary: #2F6FA3; /* Bleu secondaire strict */
  --brand-50: #EAF1F7; /* Teinte fonctionnelle issue du bleu principal */
  --brand-200: #D9E7F4; /* Texte clair sur fond bleu */
  --accent: #ED7725; /* Orange accent */
  --surface: #FFFFFF;
  --ink: #1F2937;
}



/* Accessibilité, performance perçue et hiérarchie typographique */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  transform: translateY(-150%);
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1 {
  font-size: 36px !important;
  line-height: 1.12 !important;
}

h2 {
  font-size: 28px !important;
  line-height: 1.2 !important;
}

h3 {
  font-size: 20px !important;
  line-height: 1.3 !important;
}

p,
li {
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

p.text-sm,
div.text-sm p,
.service-card p,
.service-card li,
.repro-card p,
.repro-card li {
  font-size: 16px !important;
}

.text-xs,
.caption {
  font-size: 13px !important;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.icon-sprite {
  display: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

/* Fallback minimal pour les icônes éventuellement injectées par index.js. */
.fas,
.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
}

.fa-star::before { content: "★"; }
.fa-chevron-left::before { content: "‹"; }
.fa-chevron-right::before { content: "›"; }
.fa-chevron-down::before { content: "⌄"; }
.fa-envelope::before { content: "✉"; }
.fa-facebook::before { content: "f"; font-weight: 700; }
.fa-instagram::before { content: "◎"; }

.hover-bg-brand-dark:hover {
  background-color: #0B3559 !important;
}

.hover-border-brand-30:hover {
  border-color: rgba(16, 73, 123, 0.3) !important;
}

/* Utilitaires simples HTML + CSS (complètent Tailwind) */
.text-brand {
  color: var(--brand) !important;
}
.text-brand-200 {
  color: var(--brand-200) !important;
}
.text-accent {
  color: var(--accent) !important;
}

.bg-brand {
  background-color: var(--brand) !important;
}
.bg-brand-50 {
  background-color: var(--brand-50) !important;
}
.bg-accent {
  background-color: var(--accent) !important;
}

.border-brand {
  border-color: var(--brand) !important;
}

.hover-text-brand:hover {
  color: var(--brand) !important;
}


/* Personnalisation des polices */
body {
  font-family: 'Montserrat', sans-serif;
}

h1,
h2,
h3,
.serif-font {
  font-family: 'Playfair Display', serif;
}

/* Animation au scroll (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Effet de survol sur les cartes services */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Icônes de services : style unique outline, jamais filled */
.service-icon,
.bg-brand-50.text-brand,
.bg-accent.text-white {
  color: var(--brand) !important;
}

.bg-accent.text-white .icon,
.bg-brand-50.text-brand .icon {
  stroke: currentColor;
}

/* Hero Background */
:root {
  /* Intensité et étendue du bokeh (flou centré) */
  --hero-blur: 8px; /* Rayon du flou au centre */
  --hero-blur-center: 25%; /* Rayon de la zone fortement floutée (centre) */
  --hero-blur-fade: 42%; /* Où le flou s'estompe vers les bords */
}

.hero-bg {
  /* Overlay sombre global pour la lisibilité, complété par .hero-content */
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Effet Parallaxe */

  /* Prépare les calques images */
  position: relative;
  overflow: hidden;
  isolation: isolate; /* assure une pile d'empilement propre */
}



.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.hero-content p,
.hero-kicker {
  text-align: center;
}

.hero-content .text-white {
  color: #fff !important;
}

.hero-bg > .absolute {
  z-index: 1;
}

/* Calque image net (fond) */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2; /* derrière le dégradé */
  background-image: url('images/wallpapper.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: translateZ(0); /* pistes perf */
  will-change: transform;
}

/* Calque image flouté + masqué radialement (bokeh centré) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* au-dessus de l'image nette mais sous le contenu + dégradé */
  background-image: url('images/wallpapper.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  /* Flou au centre */
  filter: blur(var(--hero-blur));
  /* Légère mise à l'échelle pour éviter les bords visibles après blur */
  transform: scale(1.04);

  /* Masque radial: opaque au centre (flou visible), transparent vers l'extérieur (laisse voir l'image nette) */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) var(--hero-blur-center), rgba(0, 0, 0, 0) var(--hero-blur-fade));
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) var(--hero-blur-center), rgba(0, 0, 0, 0) var(--hero-blur-fade));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Ajustements responsives (flou un peu plus doux sur mobile) */
@media (max-width: 640px) {
  :root {
    --hero-blur: 14px;
    --hero-blur-center: 42%;
    --hero-blur-fade: 78%;
  }
}

/* Témoignages */
#testimonial-track {
  will-change: transform;
}

/* Section Cadeaux - Nouveau Style "Glassmorphism & Overlay" */
.cadeau-card {
  flex: 0 0 calc(33.333% - 1rem);
  height: 350px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.cadeau-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(16, 73, 123, 0.25);
}

.card-image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cadeau-card:hover .product-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 73, 123, 0.9) 0%, rgba(16, 73, 123, 0.4) 50%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.4s ease;
}

.cadeau-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(16, 73, 123, 0.95) 0%, rgba(16, 73, 123, 0.6) 50%, rgba(16, 73, 123, 0.2) 100%);
}

.card-content {
  z-index: 3;
  color: white;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.cadeau-card:hover .card-content {
  transform: translateY(0);
}

.cadeau-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Icon fallback style if no image */
.cadeau-icon-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, #1a5a94 100%);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  border: 1px solid rgba(16, 73, 123, 0.08);
  box-shadow: 0 15px 40px -20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px -25px rgba(16, 73, 123, 0.35);
}

.testimonial-rating i {
  color: var(--accent);
}

.testimonial-date {
  color: var(--brand-200);
}

@media (max-width: 1024px) {
  .testimonial-card, .cadeau-card {
    flex-basis: calc(50% - 0.75rem);
  }
}

@media (max-width: 640px) {
  .testimonial-card, .cadeau-card {
    flex-basis: 100%;
  }
}

/* Section Laboratoire - Nouvelle interface à onglets */
.labo-tabs-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.labo-pane {
  grid-area: 1 / 1 / 2 / 2;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
  visibility: visible;
}

.labo-pane.hidden {
  display: block !important; /* On ne veut pas de display: none pendant la transition */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.labo-tab-btn.active {
  box-shadow: 0 4px 12px rgba(16, 73, 123, 0.2);
}

@media (max-width: 767px) {
  .labo-tab-btn {
    width: 100%;
    text-align: center;
  }
}


/* Lisibilité des zones sombres et cartes de service */
.bg-brand p,
.bg-brand li,
.bg-brand span {
  line-height: 1.65;
}

.bg-brand .text-brand-200 {
  color: var(--brand-200) !important;
}

.border-accent {
  border-color: var(--accent) !important;
}

[id="repro"] .grid > div,
[id="repro"] .mt-12 {
  text-align: left;
}

[id="repro"] .grid > div p,
[id="repro"] .grid > div li {
  font-size: 16px !important;
}

[id="boutique"] .grid p {
  font-size: 16px !important;
}

[role="tab"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hero-bg,
  .hero-bg::before,
  .hero-bg::after {
    background-attachment: scroll;
  }
}
