/*
Theme Name: SoFRIPA
Theme URI: https://sofripa.fr
Description: Thème WordPress professionnel pour la SoFRIPA (Société Francophone de Recherche en IPA). Inclut les pages Accueil, Association, Actualités, Recherche, Adhésion, Membres, Partenaires et Contact.
Version: 1.5.0
Author: Guilhem Jéhanno
Author URI: https://github.com/0xGuigui
Text Domain: sofripa
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* Petites aides CSS quand Tailwind CDN ne fournit pas certaines utilités */
body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
}

html,
body {
  min-height: 100%;
}

/* Sticky footer global (front): le contenu prend l'espace restant, le footer reste en bas */
body.wp-theme-sofripa {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@supports (min-height: 100dvh) {
  body.wp-theme-sofripa {
    min-height: 100dvh;
  }
}

body.wp-theme-sofripa > main,
body.wp-theme-sofripa > .min-h-screen {
  flex: 1 0 auto;
}

/* Les wrappers de page utilisaient min-h-screen, ce qui cassait le sticky footer global */
body.wp-theme-sofripa > .min-h-screen {
  min-height: 0 !important;
}

body.wp-theme-sofripa > footer {
  margin-top: auto;
}

.sofripa-site-header {
  border-bottom-color: rgba(10, 32, 84, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.84) 100%);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px -22px rgba(11, 40, 105, 0.45);
}

.sofripa-brand {
  position: relative;
  padding: 0.28rem 0.42rem 0.28rem 0.24rem;
  border-radius: 0.95rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.sofripa-brand:hover {
  background-color: rgba(0, 44, 142, 0.06);
  transform: translateY(-1px);
}

.sofripa-brand-logo {
  border: 1px solid rgba(0, 44, 142, 0.15);
  box-shadow: 0 8px 16px -12px rgba(0, 44, 142, 0.45);
}

.sofripa-main-nav {
  padding: 0.26rem 0.32rem;
  gap: 0.22rem !important;
  border: 1px solid rgba(0, 44, 142, 0.08);
  border-radius: 1.05rem;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 16px -24px rgba(0, 44, 142, 0.34);
}

.sofripa-main-nav__link {
  border-radius: 0.82rem !important;
  color: #18233f;
  min-height: 2.12rem;
  padding: 0.48rem 1.08rem !important;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sofripa-main-nav__link:hover {
  transform: none;
}

.sofripa-main-nav__link.is-active {
  background: linear-gradient(135deg, #002c8e 0%, #1f58b8 100%);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(0, 44, 142, 0.9);
}

.sofripa-menu-button {
  border-color: rgba(0, 44, 142, 0.2);
}

.sofripa-mobile-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93));
}

.sofripa-mobile-link {
  border: 1px solid transparent;
}

.sofripa-mobile-link:hover {
  border-color: rgba(0, 44, 142, 0.14);
}

/* Home Gutenberg: hero modernisé sans modifier le contenu éditable */
.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 160% at -8% -8%, rgba(114, 175, 238, 0.38), transparent 56%),
    radial-gradient(90% 115% at 108% 10%, rgba(255, 255, 255, 0.16), transparent 64%),
    linear-gradient(144deg, #001442 0%, #002e90 48%, #2960b9 100%) !important;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden::before,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.11) 0%, transparent 44%),
    repeating-linear-gradient(
      -24deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 30px
    );
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden > .wp-block-group,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type > .wp-block-group {
  position: relative;
  z-index: 2;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden h1.wp-block-heading,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type h1.wp-block-heading {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden p.text-lg,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type p.text-lg {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.83) !important;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-buttons,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-buttons {
  gap: 0.9rem !important;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button__link,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button__link {
  border-radius: var(--sofripa-btn-radius, 0.9rem);
  padding: 0.9rem 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button__link:hover,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button.is-style-fill .wp-block-button__link,
.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button.is-style-fill .wp-block-button__link,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: #fff !important;
  color: #08225f !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 16px 24px -20px rgba(0, 8, 34, 0.72);
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button.is-style-fill .wp-block-button__link:hover,
.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button.is-style-fill .wp-block-button__link:hover,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  box-shadow: 0 18px 30px -20px rgba(0, 8, 34, 0.78);
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button .wp-block-button__link:active,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button .wp-block-button__link:active {
  transform: translateY(0);
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button.is-style-outline .wp-block-button__link,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
}

.sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden .wp-block-button.is-style-outline .wp-block-button__link:hover,
.sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.58) !important;
}

.sofripa-home-content .wp-block-button__link {
  border-radius: var(--sofripa-btn-radius, 0.9rem);
  padding: 0.85rem 1.55rem;
  font-weight: 600;
}

.sofripa-home-content .wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 1.5px;
}

.sofripa-home-content .wp-block-group.bg-card {
  border-color: rgba(0, 44, 142, 0.12) !important;
  border-width: 1px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: 0 18px 42px -34px rgba(5, 37, 110, 0.6);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.sofripa-home-content .wp-block-group.bg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 44, 142, 0.24) !important;
  box-shadow: 0 22px 52px -34px rgba(5, 37, 110, 0.6);
}

.sofripa-home-content .panel-glow {
  border: 1px solid rgba(0, 44, 142, 0.1);
  background:
    radial-gradient(150% 110% at -8% -15%, rgba(114, 175, 238, 0.3), transparent 48%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 52px -38px rgba(0, 38, 120, 0.55);
}

@media (max-width: 900px) {
  .sofripa-main-nav__link {
    min-height: 2rem;
    padding: 0.42rem 0.88rem !important;
  }

  .sofripa-home-content .wp-block-group.alignfull.bg-primary.text-primary-foreground.overflow-hidden h1.wp-block-heading,
  .sofripa-home-content > .wp-block-group.alignfull.bg-primary.text-primary-foreground:first-of-type h1.wp-block-heading {
    max-width: 12ch;
  }
}

/* Harmonisation globale des pages Gutenberg (hors home) */
.sofripa-page-content > section.bg-primary.text-primary-foreground,
.sofripa-page-content .wp-block-group.alignfull.bg-primary.text-primary-foreground {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(118% 142% at -9% -8%, rgba(114, 175, 238, 0.34), transparent 58%),
    radial-gradient(88% 104% at 108% 12%, rgba(255, 255, 255, 0.15), transparent 66%),
    linear-gradient(145deg, #001847 0%, #00318f 54%, #2a63bb 100%) !important;
}

.sofripa-page-content > section.bg-primary.text-primary-foreground::before,
.sofripa-page-content .wp-block-group.alignfull.bg-primary.text-primary-foreground::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.11) 0%, transparent 45%),
    repeating-linear-gradient(
      -26deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 28px
    );
}

.sofripa-page-content > section.bg-primary.text-primary-foreground > .container,
.sofripa-page-content .wp-block-group.alignfull.bg-primary.text-primary-foreground > .container,
.sofripa-page-content .wp-block-group.alignfull.bg-primary.text-primary-foreground > .wp-block-group {
  position: relative;
  z-index: 1;
}

.sofripa-page-content > section.bg-primary.text-primary-foreground h1,
.sofripa-page-content .wp-block-group.alignfull.bg-primary.text-primary-foreground h1.wp-block-heading {
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

.sofripa-page-content > section.bg-primary.text-primary-foreground p,
.sofripa-page-content .wp-block-group.alignfull.bg-primary.text-primary-foreground p {
  color: rgba(255, 255, 255, 0.86) !important;
}

.sofripa-page-content .wp-block-buttons {
  gap: 0.78rem !important;
}

.sofripa-page-content .wp-block-button__link {
  border-radius: var(--sofripa-btn-radius, 0.9rem);
  padding: 0.78rem 1.34rem;
  font-weight: 600;
  line-height: 1.1;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.sofripa-page-content .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.sofripa-page-content .wp-block-button__link:active {
  transform: translateY(0);
}

.sofripa-page-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  box-shadow: var(--sofripa-btn-shadow-solid, 0 14px 28px -20px rgba(0, 44, 142, 0.62));
}

.sofripa-page-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  box-shadow: var(--sofripa-btn-shadow-solid-hover, 0 18px 30px -20px rgba(0, 44, 142, 0.68));
  filter: brightness(1.08);
}

.sofripa-page-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
  box-shadow: 0 2px 6px -2px rgba(0, 44, 142, 0.3);
  filter: brightness(0.97);
}

.sofripa-page-content .wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 1.5px;
}

.sofripa-page-content .bg-card.text-card-foreground.hover-lift,
.sofripa-page-content .wp-block-group.bg-card.text-card-foreground {
  border-width: 1px !important;
  border-color: rgba(0, 44, 142, 0.12) !important;
  border-radius: 1.08rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99));
  box-shadow: 0 18px 40px -34px rgba(5, 37, 110, 0.55);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.sofripa-page-content .bg-card.text-card-foreground.hover-lift:hover,
.sofripa-page-content .wp-block-group.bg-card.text-card-foreground:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 44, 142, 0.24) !important;
  box-shadow: 0 22px 52px -34px rgba(5, 37, 110, 0.58);
}

.sofripa-page-content .panel-glow,
.sofripa-page-content .is-style-sofripa-panel-glow {
  border: 1px solid rgba(0, 44, 142, 0.1);
  background:
    radial-gradient(152% 118% at -8% -14%, rgba(114, 175, 238, 0.27), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 46px -36px rgba(0, 38, 120, 0.45);
}

.sofripa-page-content section[class*="bg-muted/30"],
.sofripa-page-content .wp-block-group[class*="bg-muted/30"] {
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(114, 175, 238, 0.14), transparent 56%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.82), rgba(244, 248, 254, 0.82));
}

/* Harmonisation blocs Gutenberg (front + éditeur) */
body.wp-theme-sofripa main .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons {
  gap: 0.78rem !important;
  align-items: center;
}

body.wp-theme-sofripa main .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
  border-radius: var(--sofripa-btn-radius, 0.9rem);
  min-height: 2.7rem;
  padding: 0.74rem 1.34rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
}

body.wp-theme-sofripa main .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
  border-width: 1.5px;
  border-color: rgba(0, 44, 142, 0.2);
}

body.wp-theme-sofripa main .wp-block-quote,
.editor-styles-wrapper .wp-block-quote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #002c8e;
  border-radius: 0 0.95rem 0.95rem 0;
  background: linear-gradient(180deg, rgba(0, 44, 142, 0.04), rgba(114, 175, 238, 0.04));
}

body.wp-theme-sofripa main .wp-block-pullquote,
.editor-styles-wrapper .wp-block-pullquote {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(0, 44, 142, 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
}

body.wp-theme-sofripa main .wp-block-details,
.editor-styles-wrapper .wp-block-details {
  border: 1px solid rgba(0, 44, 142, 0.16);
  border-radius: 1rem;
  background: #fff;
  padding: 0.95rem 1.1rem;
}

body.wp-theme-sofripa main .wp-block-details > summary,
.editor-styles-wrapper .wp-block-details > summary {
  font-weight: 600;
  cursor: pointer;
}

body.wp-theme-sofripa main .wp-block-table,
.editor-styles-wrapper .wp-block-table {
  border: 1px solid rgba(0, 44, 142, 0.14);
  border-radius: 0.95rem;
  overflow: hidden;
}

body.wp-theme-sofripa main .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
  margin: 0;
}

body.wp-theme-sofripa main .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
  background: rgba(0, 44, 142, 0.06);
  font-weight: 600;
}

body.wp-theme-sofripa main .wp-block-table td,
body.wp-theme-sofripa main .wp-block-table th,
.editor-styles-wrapper .wp-block-table td,
.editor-styles-wrapper .wp-block-table th {
  border-color: rgba(0, 44, 142, 0.12);
  padding: 0.72rem 0.84rem;
}

body.wp-theme-sofripa main .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
  border-color: rgba(0, 44, 142, 0.2);
  opacity: 1;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

body.wp-theme-sofripa main .wp-block-code,
body.wp-theme-sofripa main pre.wp-block-code,
.editor-styles-wrapper .wp-block-code,
.editor-styles-wrapper pre.wp-block-code {
  border: 0;
  border-radius: 0.9rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.87rem;
  line-height: 1.6;
  padding: 0.95rem 1.1rem;
}

body.wp-theme-sofripa main :is(p, li, td, figcaption) code,
.editor-styles-wrapper :is(p, li, td, figcaption) code {
  border-radius: 0.45rem;
  background: rgba(0, 44, 142, 0.08);
  color: #08215f;
  padding: 0.14rem 0.34rem;
  font-size: 0.9em;
}

body.wp-theme-sofripa main .wp-block-image figcaption,
body.wp-theme-sofripa main .wp-block-table figcaption,
.editor-styles-wrapper .wp-block-image figcaption,
.editor-styles-wrapper .wp-block-table figcaption {
  color: #4b5563;
  font-size: 0.86rem;
}

body.wp-theme-sofripa main :is(ul.wp-block-list, ol.wp-block-list),
.editor-styles-wrapper :is(ul.wp-block-list, ol.wp-block-list) {
  padding-left: 1.2rem;
}

body.wp-theme-sofripa main :is(ul.wp-block-list, ol.wp-block-list) > li + li,
.editor-styles-wrapper :is(ul.wp-block-list, ol.wp-block-list) > li + li {
  margin-top: 0.34rem;
}

@media (max-width: 900px) {
  .sofripa-page-content .wp-block-button__link {
    padding: 0.7rem 1.12rem;
  }
}

.bg-primary { background-color: #002c8e; }
.text-primary { color: #002c8e; }
.text-primary-foreground { color: #ffffff; }
.hover\:bg-primary:hover { background-color: #002c8e; }
.hover\:bg-primary\/90:hover { background-color: rgba(0, 44, 142, 0.9); }

.bg-secondary { background-color: #72afee; }
.text-secondary { color: #72afee; }
.text-secondary-foreground { color: #ffffff; }

.bg-muted { background-color: #e9e9e9; }
.text-muted-foreground { color: #4b5563; }

.bg-accent { background-color: #72afee; }
.text-accent-foreground { color: #ffffff; }

/* Permet aux couleurs de conteneur (ex: .text-primary-foreground) de rester lisibles
   même quand les styles globaux Gutenberg forcent les headings en "primary". */
.text-primary-foreground .wp-block-heading,
.text-primary-foreground h1,
.text-primary-foreground h2,
.text-primary-foreground h3,
.text-primary-foreground h4,
.text-primary-foreground h5,
.text-primary-foreground h6,
.text-secondary-foreground .wp-block-heading,
.text-secondary-foreground h1,
.text-secondary-foreground h2,
.text-secondary-foreground h3,
.text-secondary-foreground h4,
.text-secondary-foreground h5,
.text-secondary-foreground h6,
.text-accent-foreground .wp-block-heading,
.text-accent-foreground h1,
.text-accent-foreground h2,
.text-accent-foreground h3,
.text-accent-foreground h4,
.text-accent-foreground h5,
.text-accent-foreground h6 {
  color: inherit;
}

.bg-primary\/5 { background-color: rgba(0, 44, 142, 0.05); }
.bg-primary\/10 { background-color: rgba(0, 44, 142, 0.1); }
.bg-primary\/70 { background-color: rgba(0, 44, 142, 0.7); }
.bg-footer-primary {background-color: #1b2433;}

.bg-secondary\/10 { background-color: rgba(114, 175, 238, 0.1); }
.bg-secondary\/20 { background-color: rgba(114, 175, 238, 0.2); }

.bg-muted\/30 { background-color: rgba(233, 233, 233, 0.3); }
.bg-muted\/50 { background-color: rgba(218, 219, 220, 0.5); }

.text-primary-foreground\/90 { color: rgba(255, 255, 255, 0.9); }
.text-primary-foreground\/80 { color: rgba(255, 255, 255, 0.8); }

.border-primary { border-color: #002c8e; }
.border-secondary { border-color: #72afee; }
.border-input { border-color: #e9e9e9; }
.border-border { border-color: #e9e9e9; }
.border-border\/50 { border-color: rgba(233, 233, 233, 0.5); }

.bg-background { background-color: #ffffff; }
.text-foreground { color: #000000; }

.bg-card { background-color: #ffffff; }
.text-card-foreground { color: #000000; }

/* Dégradés */
.bg-gradient-primary {
  background: linear-gradient(135deg, #002c8e 0%, #72afee 100%);
}

.sofripa-home-hero {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(114, 175, 238, 0.28) 0%, transparent 55%),
    radial-gradient(85% 110% at 100% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 62%),
    linear-gradient(142deg, #00133f 0%, #002a86 44%, #1f58b8 74%, #4e83c9 100%);
}

.sofripa-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
  align-items: stretch;
}

.sofripa-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sofripa-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.42rem 0.78rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sofripa-hero-kicker-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #72afee;
  box-shadow: 0 0 0 0 rgba(114, 175, 238, 0.65);
  animation: sofripaPulse 2.2s ease-out infinite;
}

.sofripa-hero-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.sofripa-hero-subtitle {
  margin-top: 1.35rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.62;
}

.sofripa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.sofripa-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--sofripa-btn-radius, 0.9rem);
  padding: 0.86rem 1.45rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.sofripa-hero-btn:hover {
  transform: translateY(-2px);
}

.sofripa-hero-btn--primary {
  background: #fff;
  color: #07215f;
  box-shadow: 0 16px 26px -20px rgba(0, 0, 0, 0.55);
}

.sofripa-hero-btn--primary:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.6);
}

.sofripa-hero-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.3);
}

.sofripa-hero-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sofripa-hero-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.3);
}

.sofripa-hero-btn--ghost:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px -2px rgba(0, 0, 0, 0.2);
}

.sofripa-hero-metrics {
  margin-top: 1.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  max-width: 52rem;
}

.sofripa-hero-metric {
  padding: 0.75rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(8px);
}

.sofripa-hero-metric-value {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.sofripa-hero-metric-label {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sofripa-hero-panel {
  border-radius: 1.15rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05)),
    linear-gradient(165deg, rgba(0, 18, 58, 0.35), rgba(9, 42, 105, 0.22));
  box-shadow: 0 35px 48px -42px rgba(0, 11, 38, 0.75);
  backdrop-filter: blur(9px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.sofripa-hero-panel-tag {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.32rem 0.68rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sofripa-hero-panel-title {
  margin: 0.95rem 0 0;
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.24;
}

.sofripa-hero-panel-date {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sofripa-hero-panel-excerpt {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
  line-height: 1.58;
}

.sofripa-hero-panel-link {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.sofripa-hero-panel-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sofripa-hero-panel-links {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  display: grid;
  gap: 0.5rem;
}

.sofripa-hero-panel-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 0.9rem;
}

.sofripa-hero-panel-links a:hover {
  color: #fff;
}

.sofripa-home-hero::before,
.sofripa-home-values::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
    repeating-linear-gradient(
      -22deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 28px
    );
  pointer-events: none;
}

.sofripa-home-values {
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(114, 175, 238, 0.25) 0%, transparent 60%),
    radial-gradient(110% 130% at 10% 100%, rgba(255, 255, 255, 0.12) 0%, transparent 65%),
    linear-gradient(135deg, #00184d 0%, #002f92 48%, #2b65bc 100%);
}

.sofripa-home-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(2px);
  pointer-events: none;
}

.sofripa-home-orb--one {
  top: -128px;
  left: -128px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(114, 175, 238, 0.45) 0%, transparent 72%);
}

.sofripa-home-orb--two {
  top: 38%;
  right: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(114, 175, 238, 0.4) 0%, transparent 70%);
}

.sofripa-home-orb--three {
  bottom: -92px;
  left: 34%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.sofripa-home-orb--four {
  top: -88px;
  right: -88px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(114, 175, 238, 0.42) 0%, transparent 72%);
}

.sofripa-home-orb--five {
  bottom: -72px;
  left: -72px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 72%);
}

@media (max-width: 767px) {
  .sofripa-hero-grid {
    grid-template-columns: 1fr;
  }

  .sofripa-hero-title,
  .sofripa-hero-subtitle {
    max-width: none;
  }

  .sofripa-hero-metrics {
    grid-template-columns: 1fr;
  }

  .sofripa-hero-panel {
    padding: 1.1rem;
  }

  .sofripa-home-orb--one {
    width: 280px;
    height: 280px;
    top: -96px;
    left: -96px;
  }

  .sofripa-home-orb--two {
    width: 220px;
    height: 220px;
    right: -84px;
  }

  .sofripa-home-orb--three {
    width: 180px;
    height: 180px;
    left: 44%;
  }

  .sofripa-home-orb--four {
    width: 190px;
    height: 190px;
    top: -72px;
    right: -72px;
  }

  .sofripa-home-orb--five {
    width: 150px;
    height: 150px;
    bottom: -54px;
    left: -54px;
  }
}

@media (max-width: 1099px) {
  .sofripa-hero-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes sofripaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(114, 175, 238, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(114, 175, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(114, 175, 238, 0);
  }
}

.shadow-xs {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Animations légères et professionnelles */
html.js .animate-fade,
html.js .is-style-sofripa-animate-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js .animate-up,
html.js .is-style-sofripa-animate-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js .animate-fade.is-visible,
html.js .animate-up.is-visible,
html.js .is-style-sofripa-animate-fade.is-visible,
html.js .is-style-sofripa-animate-up.is-visible,
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade,
  .animate-up,
  .is-style-sofripa-animate-fade,
  .is-style-sofripa-animate-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px -16px rgba(0, 44, 142, 0.25), 0 0 0 1px rgba(0, 44, 142, 0.1);
  border-color: rgba(0, 44, 142, 0.25);
}

.hover-lift:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -8px rgba(0, 44, 142, 0.2);
}


/* Panneaux avec halo doux pour les CTA */
.panel-glow,
.is-style-sofripa-panel-glow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 44, 142, 0.2);
  background: linear-gradient(135deg, rgba(0, 44, 142, 0.04), rgba(114, 175, 238, 0.04), #fff);
  box-shadow: 0 15px 40px -20px rgba(0, 44, 142, 0.35), 0 6px 16px -10px rgba(0, 44, 142, 0.2);
}

.panel-glow::before,
.panel-glow::after,
.is-style-sofripa-panel-glow::before,
.is-style-sofripa-panel-glow::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 9999px;
  filter: blur(48px);
  opacity: 0.7;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.panel-glow::before,
.is-style-sofripa-panel-glow::before {
  top: -80px;
  left: -80px;
  background: radial-gradient(circle at center, rgba(0, 44, 142, 0.22), transparent 60%);
}

.panel-glow::after,
.is-style-sofripa-panel-glow::after {
  bottom: -60px;
  right: -60px;
  background: radial-gradient(circle at center, rgba(114, 175, 238, 0.28), transparent 60%);
}

.panel-glow:hover::before,
.panel-glow:hover::after,
.is-style-sofripa-panel-glow:hover::before,
.is-style-sofripa-panel-glow:hover::after {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Images : pas de distorsion, recadrage cohérent */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll behavior smooth pour une meilleure UX */
html {
  scroll-behavior: smooth;
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
  outline: 2px solid #72afee;
  outline-offset: 2px;
}

/* Amélioration des liens */
a {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Amélioration des boutons */
button, .btn {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Amélioration des inputs */
input, textarea, select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover, textarea:hover, select:hover {
  border-color: #cbd5e1;
}

input:focus, textarea:focus, select:focus,
input:focus:hover, textarea:focus:hover, select:focus:hover {
  outline: none;
  border-color: #72afee;
  box-shadow: 0 0 0 3px rgba(114, 175, 238, 0.1);
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prose {
  color: #0f172a;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1rem;
}

.prose h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose li {
  margin-left: 1.25rem;
  list-style: disc;
  color: #475569;
}
