:root {
  --bg-left: #f2faf5;
  --bg-right: #86af9b;
  --text: #172032;
  --muted: #49556a;
  --accent: #1f4d8f;
  --accent-soft: #dfe9f7;
  --line: #223047;
  --surface: #ffffff;
  --max-width: 1200px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 35, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--text);
  background: linear-gradient(135deg, #d9ede3 0%, #ffffff 40%, #ffd4b8 100%);
  background-attachment: fixed;
  line-height: 1.45;
  overflow-x: hidden; /* Empêche tout scroll horizontal parasite */
  overflow-wrap: break-word; /* Force la coupure des mots trop longs */
}

body.home-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, var(--bg-left) 0 50%, var(--bg-right) 50% 100%);
  background-attachment: scroll;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

a:hover {
  color: #183d73;
  text-decoration-color: #183d73;
}

a:focus-visible {
  outline: 3px solid rgba(31, 77, 143, 0.22);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  z-index: 2000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(23, 32, 50, 0.12);
  backdrop-filter: blur(10px);
  background: rgba(236, 248, 241, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: block;
  font-size: clamp(1.2rem, 5vw, 2rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  max-width: 100%;
  word-wrap: break-word;
}

.brand small {
  display: block;
  font-size: 0.48em;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(23, 32, 50, 0.3);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.hero,
.page-internal-main,
.page-split {
  padding: 60px 0;
}

/* Site-wide hero: left 50% background image, right 50% green translucent */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: var(--text);
  min-height: clamp(520px, 48vh, 780px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  /* left half: background art */
  background-image: url('/assets/images/background.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  /* right half: translucent green overlay */
  inset: 0 0 0 50%;
  background: linear-gradient(180deg, rgba(169,205,187,0.92), rgba(169,205,187,0.92));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: none;
  box-shadow: inset 1px 0 0 rgba(31, 77, 143, 0.06);
  transform: translateX(0);
  pointer-events: none;
  z-index: 0;
}

/* Homepage-specific hero: left = background.jpg, right = teal->sage gradient */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background-image: url('/assets/images/background.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background: linear-gradient(180deg, rgba(22,90,82,0.94) 0%, rgba(183,209,188,0.92) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: none;
  box-shadow: inset 1px 0 0 rgba(31, 77, 143, 0.06);
  pointer-events: none;
  z-index: 0;
}

/* Stack portrait and caption under the portrait on the homepage */
.home-hero .photo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(18px, 3vw, 34px);
  background: transparent !important;
}

.home-hero .portrait {
  margin: 0 auto;
  width: min(82%, 480px);
}

.home-hero .caption {
  margin-top: 14px;
  color: rgba(23,32,50,0.86);
  z-index: 2;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

/* Keep the hero card readable above the image but with a softer tint */
.hero .hero-card {
  position: relative;
  z-index: 3;
  background: rgba(248, 255, 251, 0.78);
  border-color: rgba(36, 98, 78, 0.12);
  box-shadow: 0 18px 40px rgba(20,35,61,0.09);
}

.hero .hero-card h1::after {
  background: linear-gradient(90deg, #ff7a5a, #ffb88c);
}

/* Make primary CTAs pop against the hero */
.hero .btn-primary {
  background: linear-gradient(90deg, #ff6f3c, #ff9a5e);
  border-color: transparent;
  color: #fff;
}

@keyframes mountainWind {
  0%,
  100% {
    transform: translateX(-30%) translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(32%) translateY(8px);
    opacity: 0.65;
  }
}

@keyframes rightPanelDrift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-0.8%);
  }
}

.home-photo-stack {
  position: relative;
  min-height: clamp(360px, 52vw, 620px);
}

/* Make the right column (aside) show the background art full-size */
.photo-panel,
.home-photo-stack {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-origin: border-box;
  border-radius: var(--radius);
}

/* Subtle divider between columns, visible when image has light areas */
.photo-panel {
  box-shadow: none;
  border-left: 1px solid rgba(31,77,143,0.06);
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.photo-panel,
.home-photo-stack {
  /* make aside a vertical stack: portrait then caption */
  background: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.photo-panel { border-left: none !important; }

/* ensure hero card sits above the background image */
.hero .hero-card { z-index: 3; }

.hero-background-art {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 120, 64, 0.92) 0 18%, rgba(255, 120, 64, 0) 42%),
    radial-gradient(circle at 72% 30%, rgba(123, 39, 133, 0.82) 0 14%, rgba(123, 39, 133, 0) 38%),
    radial-gradient(circle at 48% 78%, rgba(255, 43, 96, 0.68) 0 20%, rgba(255, 43, 96, 0) 44%),
    linear-gradient(145deg, #ff4f2d 0%, #f33f2b 30%, #7d245e 68%, #31124c 100%);
}

.hero-background-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-background-art:empty {
  border: 1px solid rgba(31, 77, 143, 0.08);
}

.home-photo-stack .portrait-sandrine {
  position: relative;
  z-index: 1;
  width: min(82%, 480px);
  margin: clamp(18px, 3vw, 34px) auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero::before, .hero::after, .home-hero::after {
    display: none;
  }

  .home-hero::before {
    display: block;
    width: 100%;
    opacity: 0.7; /* On restaure la photo rouge en fond sur toute la largeur */
    z-index: 0;
  }

  .hero {
    background: transparent;
    min-height: auto;
    padding: 40px 0;
  }
}

.split-grid {
  display: grid;
  /* enforce a true 50/50 split so the right panel occupies half the hero */
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-card,
.content-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  padding: clamp(16px, 4vw, 40px); /* Réduction du padding sur petit écran */
}

/* Rappel de background.jpg sur les conteneurs de texte des pages internes */
.page-internal .content-card,
.page-internal .contact-info,
.page-internal .contact-form-panel,
.page-internal .partners {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-top: 5px solid #b2433f; /* Ligne rouge pour le rappel visuel de l'image */
  box-shadow: 0 15px 35px rgba(178, 67, 63, 0.08); /* Légère ombre teintée */
  border-radius: var(--radius);
}

.page-internal .content-card::before,
.page-internal .contact-info::before,
.page-internal .contact-form-panel::before,
.page-internal .partners::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-art);
  background-size: cover;
  background-position: center;
  opacity: 0.12; /* Légèrement plus visible pour le rappel artistique */
  z-index: 0;
  pointer-events: none;
}

.page-internal .content-card > *,
.page-internal .contact-info > *,
.page-internal .contact-form-panel > *,
.page-internal .partners > * {
  position: relative;
  z-index: 1; /* On force le texte à passer devant l'image de fond */
}

.kicker {
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 8px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 8vw, 3.6rem); /* Floor plus bas pour mobile */
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: #14233f;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Réduction de la taille des titres sur les pages internes uniquement */
.page-internal h1 {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  letter-spacing: 0.04em; /* Un peu moins espacé pour plus d'élégance en petit */
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f4d8f, #7ea6de);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 650;
  color: #1b3156;
  letter-spacing: 0.014em;
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 0.95em;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f4d8f, #88acd9);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: #253f69;
  letter-spacing: 0.012em;
  font-weight: 600;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0 0 20px;
  color: #203152;
}

.quote {
  font-style: italic;
  font-size: 1.45rem;
  color: #344b72;
  margin: 30px 0;
}

.lead {
  font-size: 1.25rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.contact-status-banner,
.form-alert {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(20, 35, 61, 0.08);
}

.contact-status-banner {
  background: linear-gradient(180deg, #f2fbf4 0%, #e3f5e7 100%);
  border-color: rgba(61, 124, 73, 0.28);
}

.contact-status-banner:focus-visible {
  outline: 3px solid rgba(61, 124, 73, 0.28);
  outline-offset: 3px;
}

.contact-status-banner__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 124, 73, 0.12);
  color: #285c36;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-status-banner strong,
.form-alert strong {
  display: block;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  color: #17301f;
  margin-bottom: 6px;
}

.contact-status-banner p,
.form-alert p {
  margin: 0;
  color: #31523b;
  font-size: 1rem;
}

.form-alert--error {
  background: #fff4f4;
  border-color: rgba(160, 43, 43, 0.22);
}

.form-alert--success {
  background: linear-gradient(180deg, #f2fbf4 0%, #e3f5e7 100%);
  border-color: rgba(61, 124, 73, 0.28);
}

.form-alert--error strong,
.form-alert--error p {
  color: #7f2f2f;
}

.form-alert--success strong,
.form-alert--success p {
  color: #285c36;
}

.photo-panel {
  position: sticky;
  top: 110px;
}

/* Contact form visual improvements */
.contact-form-panel {
  /* Le padding est maintenant géré par le sélecteur groupé contact-visual */
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 12px;
}

.contact-form .form-field {
  display: block;
}

.contact-form .form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(23,32,50,0.08);
  background: #fbfdfe;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-map {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 32, 50, 0.1);
  height: 450px;
  background: #eee;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(31,77,143,0.28);
  box-shadow: 0 8px 20px rgba(31,77,143,0.06);
  transform: translateY(-1px);
}

.btn.btn-primary {
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(31,77,143,0.12);
}

@media (max-width: 900px) {
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
}

/* Make banner more vivid green */
.contact-status-banner {
  background: linear-gradient(180deg, #f7fff6 0%, #e9fbec 100%);
  border: 1px solid rgba(34, 139, 34, 0.18);
}


.portrait {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  background: #d2dacd;
}

.portrait img {
  width: 100%;
  height: auto;
}

.portrait-sandrine {
  position: relative;
  isolation: isolate;
  border-radius: 14px;
  overflow: hidden;
  width: min(82%, 480px);
  margin: 0 auto;
}

.portrait-sandrine::before {
  content: "";
  position: absolute;
  inset: -180% 42% auto -42%;
  height: 240%;
  background: linear-gradient(
    102deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-130%);
  animation: sandrineShine 7.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.portrait-sandrine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.portrait-sandrine img {
  transform-origin: 52% 42%;
  animation: sandrineFloat 5.6s ease-in-out infinite;
  transition: transform 280ms ease, filter 280ms ease;
}

.portrait-sandrine:hover img {
  transform: scale(1.03) rotate(0.35deg);
  filter: saturate(1.04);
}

@keyframes sandrineFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.015);
  }
}

@keyframes sandrineShine {
  0%,
  55% {
    transform: translateX(-130%);
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  80%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

.caption {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
}

.section {
  padding: 42px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  margin-bottom: 20px;
}

.section-title::before {
  display: none;
}

.section-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(22, 30, 44, 0.45);
}

.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Blog index card & thumbnail styles */
.blog-list {
  display: grid;
  gap: 20px;
}

.blog-item {
  display: grid;
  grid-template-columns: 1fr; /* Mobile first: une seule colonne par défaut */
  gap: 22px;
  align-items: start;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23,32,50,0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(20,35,61,0.08);
}

@media (min-width: 768px) {
  .blog-item {
    grid-template-columns: 260px 1fr; /* On repasse en 2 colonnes sur tablette/desktop */
  }
}

.blog-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(20,35,61,0.08);
}

/* Make whole card clickable and style hover/focus */
.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:focus-visible {
  outline: 3px solid rgba(31,77,143,0.18);
  border-radius: 16px;
}

.blog-item {
  transition: transform 220ms ease, box-shadow 220ms ease;
  align-items: center;
}

.blog-card-link:hover .blog-item,
.blog-card-link:focus .blog-item {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20,35,61,0.12);
}

.blog-thumb img {
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.blog-thumb img:hover,
.blog-card-link:focus .blog-thumb img {
  transform: scale(1.06) rotate(0.6deg);
  box-shadow: 0 16px 36px rgba(20,35,61,0.18);
}

.blog-item .excerpt {
  color: var(--muted);
  margin-top: 6px;
}

/* Improve desktop layout: limit card width so preview doesn't leave large empty space */
.blog-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
  .blog-item {
    grid-template-columns: 300px 1fr;
  }
}

/* Post hero banner */
.post-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: clamp(220px, 32vw, 420px);
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
}

/* Full-width image for posts with text below */
.post-image-full {
  margin-bottom: 18px;
}
.post-image-full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20,35,61,0.08);
}

.post-main-image-container {
  margin-bottom: 30px;
}

.post-additional-images {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-image-secondary {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(20,35,61,0.08);
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 40%, rgba(255,255,255,0.02) 100%);
  mix-blend-mode: multiply;
}

.post-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 40px) 24px;
  color: #0b0b0b;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 60%);
  border-radius: 12px;
  display: inline-block;
  margin: 0 24px 24px 24px;
}

.hero-meta {
  color: rgba(11,11,11,0.65);
  margin: 0 0 8px 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 3.6rem);
  line-height: 1.02;
  color: #0b0b0b; /* titles in black for readability */
  text-shadow: none;
}

.post-content {
  margin-top: 12px;
}

@media (min-width: 1000px) {
  .post-content {
    max-width: 900px;
  }
}

.blog-item .meta {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
  .blog-thumb img {
    height: 220px;
  }
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 32, 50, 0.1);
  border-radius: 12px;
  padding: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list-clean li {
  margin: 0;
  position: relative;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  border: 1px solid rgba(31, 77, 143, 0.14);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(223, 233, 247, 0.48));
  box-shadow: 0 8px 18px rgba(20, 35, 61, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: listItemReveal 420ms ease both;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #7ea6de, #1f4d8f 68%);
  box-shadow: 0 0 0 4px rgba(31, 77, 143, 0.16);
}

.list-clean li:hover {
  transform: translateX(3px);
  border-color: rgba(31, 77, 143, 0.32);
  box-shadow: 0 12px 24px rgba(20, 35, 61, 0.13);
}

.list-clean li:nth-child(2) {
  animation-delay: 70ms;
}

.list-clean li:nth-child(3) {
  animation-delay: 140ms;
}

.list-clean li:nth-child(4) {
  animation-delay: 210ms;
}

.list-clean li:nth-child(5) {
  animation-delay: 280ms;
}

@keyframes listItemReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prose-block {
  margin-bottom: 14px;
}

.prose-block p {
  margin: 0 0 20px;
  font-size: 1.08rem;
  line-height: 1.52;
}

.text-emphasis {
  margin: 10px 0 24px 22px;
  color: #a33a35;
  font-style: italic;
  font-size: 1.12rem;
}

.red-list {
  color: #a33a35;
  display: block;
  margin-top: 6px;
}

.text-emphasis,
.red-list {
  text-align: center;
}

.apsyse-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 30px 0 8px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(223, 233, 247, 0.72));
  border: 1px solid rgba(31, 77, 143, 0.22);
  box-shadow: 0 16px 34px rgba(22, 34, 55, 0.22);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.apsyse-showcase::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -18%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(31, 77, 143, 0.24), rgba(31, 77, 143, 0));
  z-index: -1;
  pointer-events: none;
}

.apsyse-showcase img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(23, 32, 50, 0.16);
  transform: rotate(-0.7deg) scale(1.01);
  transition: transform 260ms ease, box-shadow 260ms ease;
  box-shadow: 0 10px 22px rgba(21, 36, 62, 0.22);
}

.apsyse-showcase-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
}

.apsyse-showcase-link figure {
  margin: 0;
}

.apsyse-showcase-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(21, 36, 62, 0.24);
  border-color: rgba(31, 77, 143, 0.32);
}

.apsyse-showcase-link:focus-visible {
  outline: 3px solid rgba(31, 77, 143, 0.28);
  outline-offset: 4px;
}

.apsyse-showcase:hover img {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 16px 30px rgba(21, 36, 62, 0.28);
}

.apsyse-showcase figcaption {
  margin-top: 10px;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.88rem;
  color: #344b72;
}

.prose-block a,
.lead a,
.notice a,
.card a {
  color: #1f4d8f;
  text-decoration-color: rgba(31, 77, 143, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
}

.prose-block a:hover,
.lead a:hover,
.notice a:hover,
.card a:hover {
  background: rgba(223, 233, 247, 0.5);
  box-shadow: inset 0 -0.55em 0 rgba(223, 233, 247, 0.55);
}

.prose-block a:focus-visible,
.lead a:focus-visible,
.notice a:focus-visible,
.card a:focus-visible {
  outline: 3px solid rgba(31, 77, 143, 0.22);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Contact page visual styles */
.contact-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
  width: 100%;
}

/* Alignement visuel des titres dans la grille de contact */
.contact-visual .kicker {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-info,
.contact-form-panel {
  /* On force un padding identique pour les deux blocs pour l'alignement */
  padding-top: 80px !important;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 40px;
}

.contact-visual h1,
.contact-visual h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 24px 0;
  padding: 0;
}

.contact-visual h1::after,
.contact-visual h2::before {
  display: none; /* On retire les décorations spécifiques pour un alignement parfait */
}

@media (max-width: 900px) {
  .contact-visual {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-map {
  margin-top: 40px;
  height: 450px;
  width: 100%;
}

.contact-info .lead {
  margin-bottom: 18px;
  color: #203152;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.contact-list li {
  padding: 10px 14px;
  background: linear-gradient(120deg, rgba(255,255,255,0.9), rgba(223,233,247,0.5));
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(31,77,143,0.08);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 6px auto 18px;
}

.social-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(223, 233, 247, 0.85));
  box-shadow: 0 10px 22px rgba(20, 35, 61, 0.1);
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 28px rgba(20, 35, 61, 0.16);
  filter: saturate(1.05);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  position: relative;
  z-index: 1;
}

.social-link--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}

.social-link--facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0f5fc4 100%);
}

.social-link--linkedin {
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
}

.social-link--instagram svg {
  width: 23px;
  height: 23px;
}

.social-link--instagram::before,
.social-link--facebook::before,
.social-link--linkedin::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.social-link:focus-visible {
  outline: 3px solid rgba(31, 77, 143, 0.28);
  outline-offset: 3px;
}

.partners {
  margin-top: 40px;
  padding: 40px 24px;
  text-align: center;
}

.partners h2 {
  margin-bottom: 30px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 140px));
  gap: 18px;
  align-items: start;
  justify-content: center;
  justify-items: center;
  max-width: 620px;
  margin: 0 auto;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 140px;
  padding: 6px 4px 0;
  text-align: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.partner img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(23,32,50,0.08);
  box-shadow: 0 8px 18px rgba(20,35,61,0.06);
}

.partner span {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #344b72;
  text-align: center;
  line-height: 1.3;
}

.partner:hover {
  transform: translateY(-2px);
  filter: saturate(1.02);
}

.partner--ff2p {
  width: 140px;
}

.partner--ff2p img {
  height: 90px;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(20, 35, 61, 0.08);
}

.partner--ff2p span {
  font-weight: 600;
  color: #2f4776;
}

.partner--portrait img {
  object-fit: cover;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    max-width: 100%;
  }

  .partner,
  .partner--ff2p {
    width: 100%;
  }
}

.contact-photo .portrait-contact img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.ff2p-showcase {
  display: block;
  margin: 26px auto 8px;
  max-width: 260px;
  text-align: center;
}

.ff2p-showcase-link {
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(223, 233, 247, 0.74));
  border: 1px solid rgba(31, 77, 143, 0.18);
  box-shadow: 0 14px 28px rgba(21, 36, 62, 0.14);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.ff2p-showcase-link figure {
  margin: 0;
}

.ff2p-showcase-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(21, 36, 62, 0.18);
  border-color: rgba(31, 77, 143, 0.28);
}

.ff2p-showcase-link:focus-visible {
  outline: 3px solid rgba(31, 77, 143, 0.28);
  outline-offset: 4px;
}

.ff2p-showcase img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 50, 0.14);
  box-shadow: 0 10px 24px rgba(20, 35, 61, 0.15);
}

.ff2p-showcase figcaption {
  margin-top: 10px;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.84rem;
  color: #2f4776;
  line-height: 1.45;
}

/* Centre les liens vers la FF2P dans les pages statiques (ex: experience-formation.html) */
.content-card p a[href*="ff2p.fr"] {
  display: block;
  max-width: 260px;
  margin: 16px auto 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.page-a-propos .content-card h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #10233f;
  letter-spacing: 0.08em;
}

.page-a-propos .content-card h1::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(16, 35, 63, 0.45);
}

.page-a-propos .text-emphasis {
  color: #b2433f;
  font-size: 1.18rem;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid #9b1d20;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.96rem;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 32, 50, 0.11);
  border-radius: 12px;
  padding: 18px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid rgba(23, 32, 50, 0.14);
  padding: 20px 0 34px;
  background: rgba(238, 240, 239, 0.9);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
}

.footer .container {
  text-align: center;
}

.footer-links {
  justify-content: center;
}

.footer .small {
  text-align: center;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px; /* Moins de perte d'espace sur les côtés */
  }

  h1 {
    letter-spacing: 0.03em; /* Moins d'espacement pour gagner de la place */
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body {
    background: linear-gradient(180deg, #d9ede3 0%, #ffffff 30%, #ffd4b8 100%) !important;
    background-attachment: scroll;
  }

  body.home-page {
    /* On retire le !important vert pour laisser la photo rouge de l'accueil s'exprimer */
    background: linear-gradient(180deg, #d9ede3 0%, #ffffff 30%, #ffd4b8 100%);
    background-attachment: scroll;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .photo-panel {
    position: static;
    order: -1;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 10px 0 16px;
  }

  .contact-map {
    height: 300px;
  }

  .site-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .apsyse-showcase {
    border-radius: 18px;
    padding: 10px;
  }

  .apsyse-showcase img {
    border-radius: 14px;
    transform: none;
  }

  .apsyse-showcase:hover {
    transform: none;
  }

  .apsyse-showcase:hover img {
    transform: none;
  }

  .list-clean li {
    padding: 9px 12px 9px 34px;
  }

  .list-clean li::before {
    left: 12px;
    width: 10px;
    height: 10px;
  }

  h1 {
    padding-bottom: 10px;
    margin-bottom: 16px;
    letter-spacing: 0.06em;
  }

  h1::after {
    width: 64px;
  }

  h2 {
    padding-left: 12px;
  }

  h2::before {
    width: 3px;
  }

  .portrait-sandrine::before {
    animation-duration: 9.5s;
  }

  .portrait-sandrine img {
    animation-duration: 6.8s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-clean li {
    animation: none;
    transition: none;
  }

  .portrait-sandrine::before,
  .portrait-sandrine img {
    animation: none;
  }

  .portrait-sandrine:hover img {
    transform: none;
    filter: none;
  }
}
