/* ============================================
   CYBERVAILLANCE — FEUILLE DE STYLE COMMUNE
   Version améliorée (centrage + cohérence)
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --violet:      #5B2D8E;
  --or:          #C9A84C;
  --or-light:    #E8C97A;
  --or-pale:     #F5E4B0;
  --noir:        #0A0A12;
  --blanc:       #F8F6F2;
  --font-titre:  'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-corps:  'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background-color: var(--noir);
  color: var(--blanc);
  font-family: var(--font-corps);
  overflow-x: hidden;
  line-height: 1.7;
}

/* fond décoratif */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(91,45,142,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(201,168,76,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(91,45,142,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

.site-wrapper {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ========== NAVIGATION (fixe) ========== */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10,10,18,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
.nav-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.35));
}
.nav-logo-name {
  font-family: var(--font-titre);
  font-weight: 900; font-size: 1rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--or-light), var(--or));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-titre);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(248,246,242,0.55);
  text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--or-light); background: rgba(201,168,76,0.08);
}
.nav-links .nav-rdv {
  margin-left: 0.6rem; color: var(--or-light);
  border: 1px solid rgba(201,168,76,0.35); padding: 0.4rem 1rem;
}
.nav-links .nav-rdv:hover {
  background: rgba(201,168,76,0.15); border-color: var(--or); color: var(--or-pale);
}
.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(--or-light); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,18,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  z-index: 99;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-titre);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(248,246,242,0.65);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(201,168,76,0.07);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--or-light); background: rgba(201,168,76,0.05); }
.nav-mobile .nav-rdv-mobile {
  margin: 0.8rem 2rem 0;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 6px;
  text-align: center; color: var(--or-light);
  border-bottom: 1px solid rgba(201,168,76,0.35);
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 420px) {
  .nav-bar { padding: 0 1.2rem; }
}

/* ========== SECTIONS GÉNÉRALES ========== */
section[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.section-bloc {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
}
.section-bloc:nth-child(even) {
  background: rgba(91,45,142,0.05);
  border-top: 1px solid rgba(201,168,76,0.07);
  border-bottom: 1px solid rgba(201,168,76,0.07);
}
.section-inner {
  width: 100%;
  max-width: 860px;
  text-align: center;  /* ← crucial pour centrer tout le contenu texte */
}

/* ========== HERO ========== */
#accueil {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  justify-content: flex-start;
  min-height: auto;
}
.logo-wrap {
  margin-bottom: 1.8rem;
  animation: fadeDown 0.8s ease both;
}
.logo-wrap img {
  width: 120px; height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.4));
}
.brand-name {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--or-light) 0%, var(--or) 40%, var(--or-pale) 70%, var(--or) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
  animation: fadeDown 0.8s 0.15s ease both;
  filter: drop-shadow(0 2px 20px rgba(201,168,76,0.3));
}
.brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(248,246,242,0.5);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s 0.25s ease both;
  text-align: center;  /* ← CORRECTION : centrage du texte */
}
.sep {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 0 auto 2rem;
  border: none;
  animation: fadeIn 1s 0.3s ease both;
}
h1 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.9s 0.35s ease both;
  text-align: center;
}
h1 span {
  background: linear-gradient(135deg, var(--or-light), var(--or));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.accroche-2 {
  font-family: var(--font-titre);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(248,246,242,0.75);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.45s ease both;
  text-align: center;
}
.citation {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 auto 2.5rem;
  max-width: 680px;
  width: 100%;
  animation: fadeUp 0.9s 0.5s ease both;
}
.citation blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: rgba(248,246,242,0.6);
  letter-spacing: 0.03em;
  text-align: center;
}
.citation-sep {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
  min-width: 20px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.9s 0.6s ease both;
}
.btn-rdv, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s;
}
.btn-rdv {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.12));
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--or-light);
}
.btn-rdv:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--or);
  color: var(--or-pale);
}
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--or-light);
  font-weight: 600;
  font-size: 0.82rem;
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--or);
  color: var(--or-pale);
}

/* ========== TITRES DE SECTION ========== */
.section-titre {
  font-family: var(--font-titre);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.section-sous-titre {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(248,246,242,0.7);
  margin-bottom: 2.5rem;
}

/* ========== GRILLES (valeurs, services) ========== */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.valeur-card {
  background: rgba(91,45,142,0.1);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  padding: 1.3rem 1.1rem;
  text-align: left;
  transition: border-color 0.25s, background 0.25s;
}
.valeur-card:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(91,45,142,0.18);
}
.valeur-nom {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or-light);
  margin-bottom: 0.4rem;
}
.valeur-desc {
  font-size: 0.83rem;
  color: rgba(248,246,242,0.5);
  line-height: 1.55;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.service-card {
  background: rgba(91,45,142,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.service-card:hover {
  border-color: rgba(201,168,76,0.45);
  background: rgba(91,45,142,0.2);
  transform: translateY(-2px);
}
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  width: fit-content;
}
.service-badge.dispo::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.8);
  animation: pulse 2s infinite;
}
.service-titre {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--blanc);
  line-height: 1.3;
}
.service-desc {
  font-size: 0.83rem;
  color: rgba(248,246,242,0.55);
  line-height: 1.6;
  flex: 1;
}
.service-cibles {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(201,168,76,0.85);
  font-style: italic;
}
.prochainement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.prochainement-card {
  background: rgba(91,45,142,0.06);
  border: 1px dashed rgba(201,168,76,0.15);
  border-radius: 10px;
  padding: 1.3rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,246,242,0.6);
  width: fit-content;
}
.badge-soon::before { content: '◎'; font-size: 0.7rem; color: rgba(201,168,76,0.4); }
.prochainement-titre {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(248,246,242,0.5);
}
.prochainement-desc {
  font-size: 0.82rem;
  color: rgba(248,246,242,0.6);
  line-height: 1.5;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
  align-items: start;
}
.contact-bloc h3 {
  font-family: var(--font-titre);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}
.contact-email, .contact-tel {
  display: block;
  color: var(--or-light);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-email {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: clamp(0.88rem, 2vw, 1rem);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 0.1rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}
.contact-email:hover, .contact-tel:hover {
  color: var(--or-pale);
  border-color: var(--or);
}
.contact-tel {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.contact-geo {
  font-size: 0.82rem;
  color: rgba(248,246,242,0.65);
  margin-bottom: 0.4rem;
}
.gpg-line {
  font-size: 0.78rem;
  color: rgba(248,246,242,0.65);
  margin-top: 0.3rem;
}
.gpg-line a {
  color: rgba(201,168,76,0.85);
  text-decoration: none;
  font-family: monospace;
}
.gpg-line a:hover { color: var(--or-light); }
address { font-style: normal; }
.addr-line {
  font-size: 0.85rem;
  color: rgba(248,246,242,0.65);
  line-height: 2;
}
.cta-sub {
  font-size: 0.78rem;
  color: rgba(248,246,242,0.6);
  margin-top: 0.8rem;
}
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-titre);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or-light);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: all 0.2s;
}
.social-link:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--or);
  color: var(--or-pale);
}
.social-link svg {
  width: 14px; height: 14px;
  fill: currentColor;
}

/* ========== PAGES SECONDAIRES ========== */
.page-main {
  flex: 1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.page-header { text-align: center; margin-bottom: 3rem; animation: fadeDown 0.7s 0.1s ease both; }
.page-header h1 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--or-light) 0%, var(--or) 40%, var(--or-pale) 70%, var(--or) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
.page-header .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(248,246,242,0.65);
}
.articles { display: flex; flex-direction: column; gap: 0; }
article {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 1.8rem 0;
  animation: fadeUp 0.8s ease both;
}
article:last-child { border-bottom: 1px solid rgba(201,168,76,0.1); }
article h2 {
  font-family: var(--font-titre);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--or); margin-bottom: 1rem;
}
article p {
  font-size: 0.9rem;
  color: rgba(248,246,242,0.75);
  margin-bottom: 0.6rem; line-height: 1.75;
}
article a {
  color: var(--or-light); text-decoration: none;
}
article a:hover { color: var(--or-pale); }
article ul { list-style: none; margin: 0.6rem 0 0.8rem; }
article ul li {
  font-size: 0.9rem;
  color: rgba(248,246,242,0.75);
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative; line-height: 1.65;
}
article ul li::before {
  content: "▸"; position: absolute; left: 0;
  color: var(--or); font-size: 0.75rem; top: 0.45rem;
}
.info-block {
  border-left: 2px solid var(--or);
  padding: 0.6rem 1rem; margin: 0.4rem 0;
  font-size: 0.88rem;
  color: rgba(248,246,242,0.75);
  background: rgba(201,168,76,0.04);
  border-radius: 0 4px 4px 0; line-height: 1.8;
}
.info-block strong { color: rgba(248,246,242,0.9); }
.badge-ok {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(91,45,142,0.2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px; padding: 0.5rem 1rem;
  font-size: 0.85rem; color: rgba(248,246,242,0.8);
  margin: 0.4rem 0;
}
.badge-ok::before { content: "✓"; color: var(--or); font-weight: bold; }

/* ========== FOOTER ========== */
footer {
  position: relative; z-index: 1;
  padding: 1.5rem 2rem; text-align: center;
  font-size: 0.72rem;
  color: rgba(248,246,242,0.55);
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(201,168,76,0.07);
}
footer a { color: rgba(201,168,76,0.75); text-decoration: none; }
footer a:hover { color: var(--or-light); }
.footer-sep { margin: 0 0.6rem; opacity: 0.4; }

/* ========== ANIMATIONS ========== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .valeurs-grid       { grid-template-columns: repeat(2, 1fr); }
  .services-grid      { grid-template-columns: 1fr; }
  .prochainement-grid { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .page-main { padding: 2rem 1.2rem 4rem; }
  .section-bloc { padding: 2.5rem 1.2rem; }
  .citation blockquote { white-space: normal; }
  .citation-sep { display: none; }
  .citation { gap: 0; }
}
@media (max-width: 420px) {
  .valeurs-grid { grid-template-columns: 1fr; }
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(91,45,142,0.7); border: 1px solid rgba(201,168,76,0.35);
  color: var(--or-light); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s, background 0.25s;
  backdrop-filter: blur(8px);
}
#back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; }
#back-to-top:hover { background: rgba(91,45,142,0.9); border-color: var(--or); color: var(--or-pale); }
#back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ACCESSIBILITÉ ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
:focus-visible {
  outline: 2px solid var(--or-light);
  outline-offset: 4px;
  border-radius: 3px;
}