/* ==========================================================================
   Olivier Plancade — Psychologue Lyon 2
   styles.css — feuille de style unique du site
   ========================================================================== */

/* --- Palette (reprise du thème d'origine) --- */
:root {
  --color-bg: #ffffff;
  --color-primary-bg: #f4f2ec; /* sections alternées */
  --color-accent-1: #3664d9;   /* H1, titres */
  --color-accent-2: #4169e1;   /* emphases dans le texte */
  --color-foreground: #111111; /* texte courant, noms */
  --color-text: #111111;
  --color-border: #e1e1e1;

  /* Police réelle du site d'origine : Times New Roman pour tout le contenu,
     Arial/sans-serif générique uniquement pour la navigation. Vérifié par
     inspection des styles calculés (getComputedStyle) sur l'export réel. */
  --font-body: "Times New Roman", Times, serif;
  --font-button: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-nav: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --max-width: 1100px;
  --radius: 6px;
}

/* --- Reset minimal --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(20px, 4.2vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-foreground); text-decoration: none; font-family: var(--font-nav); }
a:hover, a:focus-visible { color: var(--color-accent-1); }
:focus-visible { outline: 2px solid var(--color-accent-1); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--color-accent-1); margin: 0 0 .6em; font-family: var(--font-body); }
h1 { font-size: 53px; font-weight: 600; line-height: 1.38; }
h2 { font-size: clamp(32px, 2.6vw, 49px); line-height: 1.29; font-weight: 600; }
h3 { font-size: clamp(28px, 1.9vw, 36px); line-height: 1.36; font-weight: 600; }
h4 { font-size: clamp(24px, 1.5vw, 28px); color: var(--color-accent-2); line-height: 1.5; font-weight: 600; }
p { color: var(--color-text); margin: 0 0 1em; line-height: 1.2; text-align: justify; hyphens: auto; }
p.lead { color: var(--color-accent-1); }
strong, b { font-weight: 700; color: var(--color-accent-2); }

@media (max-width: 560px) {
  h1 { font-size: clamp(34px, 11vw, 53px); }
  p { text-align: left; hyphens: none; }
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(40px, 6vw, 90px) 0; position: relative; z-index: 1; }
.section--tinted { background-color: rgba(255,255,255,.55); }

/* --- Fond fixe décoratif : asymétrique, ne défile pas avec la page --- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-fixed svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.wrapper { position: relative; z-index: 1; }


/* --- Skip link (accessibilité) --- */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--color-accent-1); color: #fff; padding: 10px 18px;
  z-index: 2000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  max-width: 1400px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap;
}
.site-logo-link { flex-shrink: 0; display: block; }
.site-logo-link img {
  width: 44px; height: 44px; object-fit: contain;
}
.site-identity { margin-right: 10px; flex-shrink: 0; line-height: 1.2; }
.site-identity h1 {
  font-size: 24px; margin: 0; font-family: var(--font-body);
  font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap;
}
.site-identity h1 a { color: var(--color-foreground); font-family: inherit; }
.site-identity h1 a:hover { color: var(--color-accent-1); }
.site-identity p {
  margin: 0; font-size: 24px; color: var(--color-foreground); font-family: var(--font-body);
  font-style: normal; font-weight: 400; white-space: nowrap;
}

.main-nav { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.main-nav ul {
  list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: nowrap;
}
.main-nav a {
  font-family: var(--font-nav); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
  padding: 6px 1px; border-bottom: 2px solid transparent; color: #000000;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-accent-1); border-bottom-color: var(--color-accent-1);
}
.nav-toggle {
  display: none; margin-left: auto; flex-shrink: 0;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius);
  width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: var(--color-accent-1); }

/* ==========================================================================
   Bouton flottant "Prendre rendez-vous"
   ========================================================================== */
.rdv-button {
  position: fixed; left: 50%; top: 93%; transform: translate(-50%, calc(-50% - var(--banner-lift, 0px)));
  z-index: 900; width: 100%; max-width: 430px; padding: 0 16px;
  display: flex; justify-content: center;
  transition: transform .25s ease;
}
.rdv-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #020381 0%, #2874fc 100%);
  color: #fff; font-family: var(--font-button); font-weight: 400; font-size: 16px;
  padding: 11px 24px; border-radius: 50px; box-shadow: 0 8px 24px rgba(2,3,129,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rdv-button__link:hover {
  color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(2,3,129,.35);
}
.rdv-button__link img { width: 90px; height: auto; }

/* ==========================================================================
   Hero (page d'accueil)
   ========================================================================== */
.hero {
  padding-top: clamp(50px, 7vw, 90px);
}
.hero__grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center;
}
.hero__portrait img {
  border-radius: var(--radius); box-shadow: 0 20px 45px rgba(54,100,217,.15);
}
.hero__content h1 { margin-bottom: .4em; }
.hero__content strong { color: var(--color-accent-2); }

/* Animation d'apparition (fidèle à la classe "animated" + keyframes slideInUp de l'original) */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animated {
  animation: fadeSlideIn .7s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .animated { animation: none; }
}

/* ==========================================================================
   Bloc image autonome (cabinet, illustrations pleine largeur)
   ========================================================================== */
.feature-image {
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(54,100,217,.12);
  overflow: hidden;
}
.feature-image img { width: 100%; }
.feature-image__caption {
  margin-top: 14px; text-align: center; font-size: 15px; color: var(--color-text);
  font-family: var(--font-nav);
}

/* --- Bloc texte + image côte à côte (ex. paragraphe Anubis) --- */
.split-block {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center;
}
.split-block--reverse { grid-template-columns: 300px 1fr; }
.split-block--reverse .split-block__media { order: -1; }
.split-block__media img { border-radius: var(--radius); box-shadow: 0 16px 36px rgba(54,100,217,.14); }
.split-block__media figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--color-text); font-family: var(--font-nav); }


.diplomas__grid {
  display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center;
}
.diploma-item { margin-bottom: 22px; }
.diploma-item h3 { color: var(--color-accent-1); margin-bottom: .15em; font-size: 20px; }
.diploma-item p { margin: 0; }
.diplomas__image img { border-radius: var(--radius); }

.trainings__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.training-item { margin-bottom: 20px; }
.training-item h4 { margin-bottom: .15em; }
.training-item p { margin: 0; }

/* ==========================================================================
   Travaux (publications)
   ========================================================================== */
.works p { margin-bottom: 1.4em; }
.works .works__label { color: var(--color-accent-2); font-weight: 700; }
.works a { text-decoration: underline; }

/* ==========================================================================
   Bloc citation (page sous-page ICV / Brainspotting)
   ========================================================================== */
.page-hero h1 { text-align: center; margin-bottom: .8em; }
.quote-cover {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.quote-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.quote-cover::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1;
}
.quote-cover blockquote {
  position: relative; z-index: 2; color: #fff; font-size: clamp(18px, 2vw, 22px);
  font-style: italic; text-align: center; max-width: 760px; margin: 0;
}
.quote-cover blockquote cite { display: block; margin-top: 1em; font-style: normal; font-weight: 700; }

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */
.contact-form { max-width: 620px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-accent-1); }
.form-row .required { color: #cf2e2e; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-family: inherit; font-size: 16px; color: var(--color-text);
  background: #fff;
}
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233664d9'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--color-accent-1); outline: none; box-shadow: 0 0 0 3px rgba(54,100,217,.15);
}
.form-row textarea { resize: vertical; min-height: 150px; }

/* honeypot anti-spam, invisible pour les humains */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-captcha {
  display: flex; align-items: center; gap: 12px; background: var(--color-primary-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px;
}
.form-captcha label { margin: 0; font-weight: 600; }
.form-captcha input { width: 90px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 16px; }
.form-captcha__question { font-family: var(--font-nav); color: var(--color-text); }

.btn-submit {
  background: var(--color-accent-1); color: #fff; border: none; border-radius: 999px;
  padding: 14px 34px; font-weight: 700; font-size: 16px; cursor: pointer;
  font-family: var(--font-nav); transition: background .15s ease;
}
.btn-submit:hover { background: #2a4fb0; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-feedback { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); display: none; }
.form-feedback.is-success { display: block; background: #e7f5ec; color: #1f7a3f; border: 1px solid #bfe6cc; }
.form-feedback.is-error { display: block; background: #fdeceb; color: #b3261e; border: 1px solid #f6c6c2; }

.contact-alt { margin-top: 40px; }

/* ==========================================================================
   Pages légales
   ========================================================================== */
.legal-content h2 { margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-content ul { padding-left: 1.2em; }

/* ==========================================================================
   Bandeau cookies (maison, RGPD)
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(0,0,0,.08);
  padding: 20px 24px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; flex: 1 1 480px; font-size: 16px; color: var(--color-text); }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner__actions button {
  border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: var(--font-nav); border: 1px solid var(--color-accent-1);
}
.cookie-accept { background: var(--color-accent-1); color: #fff; }
.cookie-refuse { background: #fff; color: var(--color-accent-1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border); padding: 30px 0 110px;
  margin-top: 40px; background: rgba(255,255,255,.75); position: relative; z-index: 1;
}
.site-footer__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.site-footer nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.site-footer nav a { font-size: 13px; color: var(--color-text); }
.site-footer p { margin: 0; font-size: 13px; color: var(--color-text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero__grid, .diplomas__grid, .trainings__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 260px; margin: 0 auto; }
  .diplomas__image { order: -1; max-width: 340px; margin: 0 auto; }
  .split-block, .split-block--reverse { grid-template-columns: 1fr; }
  .split-block__media, .split-block--reverse .split-block__media { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 1340px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,.15); padding: 90px 28px 28px; transform: translateX(100%);
    transition: transform .25s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .nav-toggle { display: inline-flex; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 400; display: none; }
  .nav-overlay.is-visible { display: block; }
}

@media (max-width: 600px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .rdv-button { max-width: none; }
  .form-captcha { flex-wrap: wrap; }
  .site-identity h1 { font-size: 17px; }
  .site-identity p { font-size: 13px; }
  .site-logo-link img { width: 36px; height: 36px; }
  .site-header__inner { gap: 8px; padding: 10px 16px; }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rdv-button__link, .main-nav, .btn-submit { transition: none; }
}
