/* ==========================================================================
   STYLES.CSS - SITE ALEXANDRA ROUSSEAU (SEXOLOGIE & MASSAGES)
   Charte graphique optimisée - Performance & Core Web Vitals (CLS < 0.05)
   ========================================================================== */

/* 1. IMPORTATION DES POLICES GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,700&display=swap');

/* 2. VARIABLES GLOBALES DE COULEURS */
:root {
  /* Bleu Canard / Teal (Boutons primaires, bordures, sous-titres h2) */
  --color-primary: #095f7a;           /* rgba(9, 95, 122, 1) */
  --color-primary-dark: #07475c;
  --color-primary-light: #cfe2f3;     /* rgba(207, 226, 243, 1) Fond pastel Sexologie */

  /* Violet / Pourpre profond (Titres majeurs, boutons massages) */
  --color-accent: #6c2686;            /* rgba(108, 38, 134, 1) */
  --color-accent-dark: #531c67;
  --color-accent-light: #ede2f1;      /* rgba(237, 226, 241, 1) Fond pastel Massages & Stages */

  /* Bandeau d'annonce */
  --color-banner-bg: #ffff00;         /* rgb(255, 255, 0) Jaune vif */
  --color-banner-text: #000000;

  /* Liens & Actions */
  --color-link-blue: #1967d2;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebc59;

  /* Neutres */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #202124;
  --color-text-dark: #1c1c1c;
  --color-border: rgba(0, 0, 0, 0.12);

  /* Typographie & Layout */
  --font-family: 'Roboto', Arial, sans-serif;
  --max-width: 1140px;
}

/* 3. RESET ET CORPS DE PAGE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 13pt;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4. BANDEAU D'ANNONCE SUPÉRIEUR (JAUNE) */
.top-banner,
aside.top-bar {
  background-color: var(--color-banner-bg);
  color: var(--color-banner-text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-size: 13pt;
  gap: 20px;
  flex-wrap: wrap;
}

.top-banner p,
aside.top-bar p {
  margin: 0;
  color: var(--color-banner-text);
}

.top-banner .btn-nouveau,
aside.top-bar .btn-nouveau {
  color: var(--color-banner-text);
  border: 1px solid var(--color-banner-text);
  padding: 4px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 11pt;
  font-weight: 500;
  transition: background-color 0.2s;
}

.top-banner .btn-nouveau:hover,
aside.top-bar .btn-nouveau:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* 5. EN-TÊTE & NAVIGATION */
header.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 48px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.site-brand,
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 15pt;
  font-weight: 400;
  gap: 12px;
}

.site-brand img,
.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 13pt;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-menu li a.active {
  font-weight: bold;
}

.nav-menu li a:hover {
  opacity: 0.82;
}

/* Bouton Hamburger mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-dark);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* 6. STRUCTURE DES SECTIONS & FONDS COLORÉS */
section {
  padding: 24px 0;
  width: 100%;
}

section.bg-white {
  background-color: var(--color-bg);
}

section.bg-blue {
  background-color: var(--color-primary-light);
}

section.bg-purple {
  background-color: var(--color-accent-light);
}

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

/* Conteneur de bannière avec aspect-ratio anti-décalage (CLS) */
.hero-image-box {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
}

.hero-image-box img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 7. TYPOGRAPHIE & TITRES */
h1.main-title {
  font-size: 30pt;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  line-height: 1.2;
  margin: 0;
}

/* Prise en charge à la fois des balises <h2> et des balises <p> pour les sous-titres */
h2.sub-intro,
p.sub-intro,
.sub-intro {
  font-size: 18pt;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 18pt 0;
  text-align: justify;
}

.sub-intro span.normal {
  font-weight: 400;
}

.sub-intro span.italic {
  font-weight: 400;
  font-style: italic;
}

h2.section-heading-purple {
  font-size: 30pt;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

h2.section-heading-bar {
  font-size: 18pt;
  font-weight: 700;
  text-align: center;
  line-height: 1.38;
  margin: 0;
}

.bg-blue h2.section-heading-bar {
  color: var(--color-primary);
}

.bg-purple h2.section-heading-bar {
  color: var(--color-accent);
}

h3.item-title {
  font-size: 13pt;
  font-weight: 700;
  color: #000000;
  line-height: 1.38;
  margin: 0 0 8px 0;
  text-align: justify;
}

h3.stage-title {
  font-size: 14pt;
  font-weight: 700;
  color: #000000;
  line-height: 1.38;
  margin: 14pt 0 12pt 0;
  text-align: justify;
}

p {
  margin: 0 0 12pt 0;
  line-height: 1.38;
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

ul.square-list {
  list-style-type: square;
  margin: 0 0 12pt 0;
  padding-left: 20pt;
}

ul.square-list li {
  margin-bottom: 6pt;
  line-height: 1.38;
  text-align: justify;
}

ul.nested-list {
  list-style-type: square;
  margin: 0 0 12pt 0;
  padding-left: 30pt;
}

ul.nested-list li {
  margin-bottom: 12pt;
  line-height: 1.38;
  text-align: justify;
}

/* Ligne de séparation */
.divider-line {
  background-color: var(--color-primary);
  height: 2px;
  width: 100%;
  margin: 8.5px 0;
}

/* Liens textuels */
a.link-teal {
  color: var(--color-primary);
  text-decoration: underline;
}

a.link-blue {
  color: var(--color-link-blue);
  text-decoration: underline;
}

/* 8. GROUPES RÉDUCTIBLES (ACCORDÉONS <details>) */
details.collapsible-group {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 14px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: background-color 0.2s;
}

details.collapsible-group[open] {
  background-color: #fafbfc;
}

summary {
  font-size: 15pt;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 18pt;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s;
}

details.collapsible-group[open] summary::after {
  content: '-';
}

.collapsible-content {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 9. BOUTONS GOOGLE SITES & WHATSAPP */
.btn-gsites {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27pt;
  padding: 8px 24px;
  font-size: 13pt;
  font-family: var(--font-family);
  font-weight: 400;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  width: 100%;
  transition: opacity 0.2s, background-color 0.2s;
}

.btn-gsites:hover {
  opacity: 0.9;
}

.btn-teal {
  background-color: var(--color-primary);
  color: #f9f9f9;
  border: 1px solid var(--color-primary);
}

.btn-teal:hover {
  background-color: var(--color-primary-dark);
}

.btn-purple {
  background-color: var(--color-accent);
  color: #f9f9f9;
  border: 1px solid var(--color-accent);
}

.btn-purple:hover {
  background-color: var(--color-accent-dark);
}

/* Boutons verts pour WhatsApp */
/* Style des boutons WhatsApp aligné sur la charte */
a[href*="wa.me"] {
  /* Hérite naturellement de .btn-teal ou .btn-purple sans forcer le vert */
}

/* 10. GRILLES & DISPOSITION */
.row-2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.row-1cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 11. RÉSEAUX SOCIAUX & CARTE MAPS */
.social-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 16px 0;
}

.social-icon-insta {
  display: inline-flex;
  width: 48px;
  height: 48px;
  background-color: #fe005c;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.social-icon-insta img,
.social-icon-amt img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.map-wrapper {
  width: 100%;
  position: relative;
  padding-top: 70%;
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 12. PLAN DU SITE & PIED DE PAGE */
.sitemap-box h2 {
  font-size: 12pt;
  color: var(--color-accent);
  margin: 0 0 6px 0;
  font-weight: 700;
}

.sitemap-box p {
  margin: 0;
  line-height: 1.2;
  text-align: left;
  word-break: break-all;
}

.sitemap-box a {
  color: var(--color-link-blue);
  font-size: 12pt;
  text-decoration: underline;
}

footer {
  padding: 24px 0 40px 0;
  text-align: center;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer h3 {
  margin: 0 0 4px 0;
  font-size: 8pt;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.2;
  text-align: center;
}

footer h3.address-line {
  color: #000000;
}

footer small {
  display: block;
  font-size: 8pt;
  color: #000000;
  line-height: 1.4;
  margin-top: 6px;
}

/* 13. RESPONSIVE DESIGN (TABLETTE & MOBILE) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 12px 20px;
  }
  .menu-toggle {
    display: block;
  }
  .site-brand span {
    font-size: 13pt;
  }
  nav.main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
  }
  nav.main-nav.open {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .row-2cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  h1.main-title,
  h2.section-heading-purple {
    font-size: 23pt;
  }
  h2.sub-intro,
  p.sub-intro,
  .sub-intro,
  h2.section-heading-bar {
    font-size: 17pt;
  }
}