:root {
  --bg: #ffffff;
  --fg: #2a2a2a;
  --muted: #666666;
  --line: #e0e0e0;
  --gold: #B8956A;
  --gold-text: #8C6239;   /* Or profond lisible (texte, liens actifs) */
  --maxw: 1100px;
  --serif: "Didot", "Bodoni MT", "Baskerville", "Georgia", serif;  /* Luxe absolu */
  --sans: "Helvetica Neue", "Futura", "Montserrat", sans-serif;   /* Modernité sobre */
}

/* RESET & GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}




body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}


/* Bannière cookies */
#cookie-banner {
  position: relative;
  background-color: #f5f5f5;
  color: #2a2a2a;
  width: 60%;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 1001;
}
#cookie-banner p {
  margin-bottom: 1rem;
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
#cookie-banner button {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  background-color: #ffffff;
  color: #2a2a2a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}
#cookie-banner button.active,
#cookie-banner button#refuser {
  background-color: #888888;
  color: #ffffff;
}
#cookie-banner button:hover:not(.active) {
  background-color: #f0f0f0;
}



/* HEADER */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo img {
  /* height: 36px;*/
  height: 36px;
  margin-left: 20px; /* Ajoute une marge à gauche de l'image */
}

/* NAVIGATION */
.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center; /* centre le menu */
  position: relative;      /* permet à lang-switch de se positionner à droite */
}

#nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 auto; /* ajout pour nouveau logo - Centre la liste dans nav-container */
}

#nav-list a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--fg);
  text-decoration: none;
}

#nav-list a.active-page {
  text-decoration: underline;
  text-decoration-color: var(--gold-text);
  text-underline-offset: 4px;
}

/* LANGUES SUR LA MÊME LIGNE */
.lang-switch {
  position: absolute;
  right: 20px;
  /* margin-right: 0px ajout marge à droite */
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.lang-switch a.lang {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.lang-switch a.lang.active-lang::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gold-text);
}

.lang-sep {
  color: var(--muted);
  padding: 0 4px;
}

/* MAIN */
main {
  flex: 1;
  padding-top: 100px; /* décale le contenu sous header fixe */
}

/* --- HERO (Accueil) --- */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.kicker {
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.contact-mail {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
}
.contact-mail a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.contact-mail a:hover {
  color: var(--gold);
}

.thumbnail {
  width: 150px;      /* largeur du thumbnail */
  height: auto;      /* conserve le ratio */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: block;    /* centre l’image si margin auto */
  margin: 1rem auto;
}

/* BUTTONS */
.actions {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--fg);
  text-decoration: none;
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.btn:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background-color: rgba(184, 149, 106, 0.05);
}

/* --- FOOTER PREMIUM --- */
/* --- LOGO FRANCENUM DANS FOOTER --- */

footer {
  text-align: center;
  /* padding: 2rem 0;  */
  padding: 2rem 60px 2rem 20px; /* 60px à droite pour l'image, 20px à gauche */
  border-top: 1px solid var(--line);
  background: #fafafa;
  font-size: 0.9rem;
  position: relative; /* Ajouté pour le positionnement du logo */
  min-height: 80px;   /* Hauteur minimale pour l'alignement */
}

.footer-francenum {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.footer-francenum img {
  height: 62px;
  width: auto;
  max-width: 150px;
  border: none;
  display: block;
  /* border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1); */
}


/* Accessibilité */
.footer-francenum a {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  color: var(--fg);
  text-decoration: none;
}

/* Focus visible */
.footer-francenum a:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 2px;
  background-color: rgba(184, 149, 106, 0.1);
}


.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 28px; /* espacement chic */
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  padding: 0 10px;
}
.footer-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1rem;
  border-right: 1px solid var(--line); /* séparateur chic */
}
.footer-nav a:hover {
  color: var(--gold-text);
}
.footer-note {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.8rem;
}

/* --- PAGES LÉGALES HARMONISÉES --- */
.legal-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 20px;
  font-family: var(--sans);
  color: var(--muted);
  line-height: 1.8;
}
.legal-container h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--fg);
  text-align: center;
  margin-bottom: 3rem;
}
.legal-section {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-title::after {
  content: "+";
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}
.legal-title.active::after {
  content: "−";
}
.legal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 0.5rem;
}
.legal-content.inner {
  max-height: 2500px;
  padding: 1rem 0;
}
.legal-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.legal-content a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}
.legal-content a:hover {
  border-bottom: 1px solid var(--gold-text);
}
.legal-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.legal-content li {
  margin-bottom: 0.4rem;
}

/* --- PAGES CONTENU (Identité, Services, etc.) --- */
.section.container.prestation {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: justify;
  line-height: 1.8;
  color: var(--muted);
}

.section.container.prestation h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--fg);
  text-align: center;
  margin-bottom: 0.6rem;   /* réduit l’espace avec le h4 */
}

.section.container.prestation h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;     /* rapproche du texte */
}

.section.container.prestation p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.premium-accroche {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0.6rem 0 1rem;
}

.premium-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 1rem 0 0.5rem;
}

.premium-quote-ss {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  padding-left: 1rem;
  margin: 1rem 0 0.5rem;
}


/* Mail dans le corps (identité & services) */
.contact-mail-prestation {
  text-align: center;
  margin-top: 2rem;
}
.contact-mail-prestation a {
  color: var(--fg);
  font-weight: 600;        /* gras noir comme dans hero */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.contact-mail-prestation a:hover {
  border-color: var(--gold);
}

/* --- Focus élégant pour conformité RGAA 10.7 --- */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--gold-text); /* contour doré subtil */
  outline-offset: 2px;                /* espace autour de l’élément */
  box-shadow: 0 0 4px rgba(184,149,106,0.5); /* légère lueur */
}

.skip-link {
  position: absolute;
  top: -40px;          /* hors écran par défaut */
  left: 0;
  background: #8C6239; /* or profond, lisible et premium */
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;              /* visible lors du focus clavier */
}


/* --- RESPONSIVE --- */

/* 1) Responsive pour largeur ≤ 768px */
@media (max-width: 768px) {
  /* HEADER */
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  #nav-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .lang-switch {
    position: static;
    margin-top: 0.5rem;
  }

  /* MAIN */
  main {
    padding-top: 180px; /* hauteur fixe du header */
  }

  /* FOOTER */
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 20px 3rem;
  }

   footer-francenum {
    position: static;
     display: flex; 
    justify-content: center;
    margin-top: 1rem;
  }

  /* HERO et TITRES */
  .hero h1 {
    font-family: "Georgia", serif; /* plus lisible sur mobile */
    font-size: 1.9rem;
    line-height: 1.4;
    font-weight: 500;
  }

  .section.container.prestation h2,
  .legal-container h1 {
    font-family: "Georgia", serif;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
  }

  .kicker {
    font-size: 1rem;
  }

  .contact-mail,
  .contact-mail-prestation a {
    font-size: 1rem;
  }
}



/* ===========================================================
   ACCESSIBILITÉ NUMÉRIQUE (RGAA / WCAG)
   Classes utilitaires pour masquage visuel et navigation clavier
   =========================================================== */

/* Masquer visuellement mais garder accessible aux lecteurs d’écran */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Rendre l’élément visible quand il est focusable */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

/* Focus visible pour navigation clavier */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--gold-text);
  outline-offset: 2px;
  box-shadow: 0 0 4px rgba(184,149,106,0.5);
}

/* Lien "Aller au contenu" (skip-link) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #8C6239;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

/* 2) Adaptation pour fenêtres très basses (hauteur ≤ 256px) */
@media (max-height: 256px) {
  /* HEADER */
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 10px 0;
  }

  .logo img {
    height: 24px;
    margin-left: 10px;
  }

  #nav-list {
    gap: 0.3rem;
  }

  .lang-switch {
    font-size: 0.8rem;
    gap: 4px;
    position: static;
    margin-top: 0.3rem;
  }

  main {
    padding-top: 60px; /* ajuste le contenu sous le header réduit */
  }

 .footer-francenum {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
  .footer-francenum img {
    height: 40px; /* Taille légèrement réduite en mobile */
  }
}