* {
  box-sizing: border-box;
}

:root {
  --background: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f1f3f6;
  --text: #172235;
  --muted: #687588;
  --navy: #203b60;
  --navy-dark: #182d49;
  --border: #e2e6eb;
  --danger-bg: #f8eaea;
  --danger: #b23131;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text);
  background-image:
    url("/assets/psia-background.jpg?v=20261011-2");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

button,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 30px;
}


/* =========================================================
   ACCUEIL
========================================================= */

.hero {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 22px 28px;
  text-align: center;
  border-radius: 0 0 26px 26px;
  background:
    rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(3px);
}

.brand {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 700px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 36px;
  line-height: 1.17;
  font-weight: 500;
  color: #273b58;
}

.hero-text {
  max-width: 650px;
  margin: 8px auto;
  color: #5f6d80;
  font-size: 16px;
  line-height: 1.55;
}

.persona-guide {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 13px 17px;
  border: 1px solid rgba(32, 59, 96, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #67768a;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  backdrop-filter: blur(3px);
}

.persona-guide strong {
  color: #304963;
}


/* =========================================================
   PROFILS
========================================================= */

.profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.profile-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(30, 55, 85, .08);
  box-shadow:
    0 14px 45px
    rgba(26, 40, 58, .08);
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 50px
    rgba(26, 40, 58, .11);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-photo {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #e7ebef;
}

.profile-photo.large {
  width: 104px;
  height: 104px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-card h2 {
  margin: 0 0 6px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 28px;
}

.profile-role {
  margin: 0;
  color: #58749d;
  font-size: 16px;
}

.profile-description {
  min-height: 92px;
  margin: 0 0 16px;
  color: #536174;
  line-height: 1.6;
  font-size: 15px;
}

.profile-library-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #58749d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.profile-library-link:hover {
  text-decoration: underline;
}

.profile-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.profile-notice {
  display: block;
  margin-bottom: 15px;
  color: #8490a0;
  font-size: 12px;
}

.profile-card button {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      var(--navy-dark),
      var(--navy)
    );
  color: white;
  font-size: 15px;
  font-weight: 600;
}


/* =========================================================
   REPÈRES
========================================================= */

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.trust-point {
  padding: 17px 18px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
}

.trust-point strong {
  display: block;
  margin-bottom: 5px;
  color: #263b58;
  font-size: 13px;
}

.trust-point span {
  color: #768294;
  font-size: 12px;
  line-height: 1.45;
}

.home-disclaimer {
  max-width: 760px;
  margin: 26px auto 12px;
  padding: 14px 18px;
  border-radius: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  color: #6f7c8e;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
  box-shadow:
    0 8px 24px
    rgba(20, 35, 55, 0.05);
}

.site-footer {
  max-width: 760px;
  margin: 0 auto 8px;
  padding: 13px 18px;
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #7f8997;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(3px);
}

.site-footer a {
  color: #687b96;
  text-decoration: none;
  margin: 0 7px;
}

.site-footer a:hover {
  color: #203b60;
  text-decoration: underline;
}

.site-footer span {
  color: #a3abb5;
}


/* =========================================================
   CHAT
========================================================= */

.chat {
  min-height: 690px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 45px
    rgba(26, 40, 58, .08);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.back-button,
.secondary-button,
.delete-button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
}

.back-button,
.secondary-button {
  background: #f0f2f5;
  color: var(--text);
}

.delete-button {
  background: var(--danger-bg);
  color: var(--danger);
}

.chat-profile-link {
  flex: 0 0 auto;
  border-radius: 50%;
  cursor: default;
}

.chat-profile-link.clickable {
  cursor: pointer;
}

.chat-profile-photo {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8ebef;
  box-shadow:
    0 2px 8px
    rgba(0,0,0,.09);
  transition: transform .15s ease;
}

.chat-profile-link.clickable:hover
.chat-profile-photo {
  transform: scale(1.08);
}

.chat-profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-identity {
  flex: 1;
}

#chat-name {
  display: block;
  font-size: 17px;
}

#chat-role {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chat-actions {
  display: flex;
  gap: 8px;
}


/* =========================================================
   MESSAGES
========================================================= */

.messages {
  height: 475px;
  overflow-y: auto;
  padding: 22px 2px 12px;
  overscroll-behavior: contain;
}

.message-row-ai {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  max-width: 78%;
}

.message-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8ebef;
  box-shadow:
    0 2px 8px
    rgba(0,0,0,.08);
}

.message-avatar.clickable {
  cursor: pointer;
}

.message-avatar.clickable:hover {
  transform: scale(1.07);
}

.message-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.message {
  padding: 14px 17px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.ai {
  flex: 1;
  background: #f0f2f5;
  color: #283548;
}

.message.user {
  max-width: 72%;
  margin: 0 0 14px auto;
  background:
    linear-gradient(
      135deg,
      #243b57,
      #19314f
    );
  color: white;
}

.message.loading {
  color: #7b8795;
  font-style: italic;
}

.safety-message {
  border-left: 4px solid var(--danger);
}


/* =========================================================
   SOURCES
========================================================= */

.sources-container {
  max-width: 72%;
  margin: -4px 0 20px 58px;
}

.sources-toggle {
  padding: 7px 13px;
  border: 1px solid #aec0d7;
  border-radius: 18px;
  background: white;
  color: #476a98;
  font-size: 13px;
}

.sources-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfcfd;
}

.sources-navigation {
  display: flex;
  justify-content: center;
  gap: 11px;
  padding: 16px 14px 6px;
}

.source-number {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  background: #e6e9ed;
}

.source-number.active {
  background: var(--navy);
  color: white;
}

.source-card {
  padding: 12px 20px 20px;
}

.source-text {
  color: #364254;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.source-footer {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  text-align: right;
}

.source-work {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
}

.source-section {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.source-passage {
  margin-top: 3px;
  color: #939ca8;
  font-size: 11px;
}


/* =========================================================
   RÉSUMÉ
========================================================= */

.summary-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f3f5f7;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-header button {
  border: 0;
  background: transparent;
  font-size: 20px;
}

#summary-content {
  white-space: pre-wrap;
  line-height: 1.55;
}


/* =========================================================
   SAISIE / INFOS
========================================================= */

#chat-form {
  display: flex;
  gap: 12px;
}

textarea {
  width: 100%;
  resize: none;
  padding: 15px 16px;
  border: 1px solid #cfd6df;
  border-radius: 15px;
  font-size: 14px;
}

textarea:focus {
  outline: none;
  border-color: #8da0b9;
  box-shadow:
    0 0 0 3px
    rgba(32, 59, 96, 0.07);
}

#send-button {
  min-width: 105px;
  border: 0;
  border-radius: 15px;
  padding: 0 20px;
  background: var(--navy);
  color: white;
  font-weight: 600;
}

#send-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.chat-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 9px;
  color: #8a95a3;
  font-size: 10.5px;
  line-height: 1.4;
}

.usage-status {
  color: #667b96;
  font-weight: 600;
}

.usage-status.admin {
  color: #41734b;
}

.chat-emergency-link {
  color: #9b4d4d;
  text-decoration: none;
  font-weight: 600;
}

.chat-emergency-link:hover {
  text-decoration: underline;
}

.chat-disclaimer {
  margin: 13px 0 0;
  color: #9099a5;
  font-size: 11px;
  text-align: center;
}


/* =========================================================
   CONSENTEMENT
========================================================= */

body.consent-open {
  overflow: hidden;
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 32, 48, 0.48);
  backdrop-filter: blur(5px);
}

.consent-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px 38px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 70px
    rgba(13, 28, 48, 0.22);
  color: #354155;
  line-height: 1.58;
}

.consent-close {
  position: absolute;
  top: 14px;
  right: 17px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f6;
  color: #687588;
  font-size: 22px;
  line-height: 1;
}

.consent-close:hover {
  background: #e8ebef;
  color: #203b60;
}

.consent-brand {
  margin-bottom: 8px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  color: #203b60;
  font-size: 23px;
  font-weight: 600;
}

.consent-modal h2 {
  margin: 0 0 20px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  color: #203b60;
  font-size: 29px;
  font-weight: 500;
}

.consent-modal p {
  margin: 0 0 15px;
  color: #5d6a7d;
  font-size: 14px;
}

.consent-intro {
  color: #34465f !important;
  font-weight: 600;
}

.consent-checks {
  margin: 24px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #e0e5eb;
  border-radius: 14px;
  background: #fafbfc;
  cursor: pointer;
}

.consent-check:hover {
  border-color: #c6d1df;
  background: #f7f9fb;
}

.consent-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #203b60;
}

.consent-check span {
  color: #4d5b6e;
  font-size: 13px;
  line-height: 1.5;
}

.consent-start-button {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      #182d49,
      #203b60
    );
  color: white;
  font-size: 15px;
  font-weight: 600;
}

.consent-start-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.consent-links {
  margin-top: 18px;
  text-align: center;
  color: #a0a9b5;
  font-size: 12px;
}

.consent-links a {
  margin: 0 5px;
  color: #607694;
  text-decoration: none;
}

.consent-links a:hover {
  color: #203b60;
  text-decoration: underline;
}


/* =========================================================
   RETOUR UTILISATEUR
========================================================= */

.feedback-box {
  margin: 16px auto 6px;
  padding: 14px 16px;
  border: 1px solid #e4e8ed;
  border-radius: 15px;
  background: #f7f8fa;
  text-align: center;
}

.feedback-question {
  display: block;
  margin-bottom: 10px;
  color: #667487;
  font-size: 12px;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-buttons button {
  padding: 7px 13px;
  border: 1px solid #d4dbe4;
  border-radius: 16px;
  background: white;
  color: #52657e;
  font-size: 12px;
}

.feedback-buttons button:hover {
  border-color: #98aac1;
  color: #203b60;
  background: #f7f9fb;
}

.feedback-buttons button.selected {
  border-color: #203b60;
  background: #203b60;
  color: white;
}

.feedback-comment-box {
  max-width: 560px;
  margin: 15px auto 0;
  padding-top: 15px;
  border-top: 1px solid #e1e5ea;
  text-align: left;
}

#feedback-comment {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid #cfd7e1;
  border-radius: 12px;
  background: white;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-privacy {
  margin: 6px 2px 10px;
  color: #929ba7;
  font-size: 10px;
  line-height: 1.45;
}

.feedback-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-comment-actions button {
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
}

.feedback-skip {
  background: #e9edf2;
  color: #58677a;
}

.feedback-send {
  background: #203b60;
  color: white;
}

.feedback-comment-actions button:disabled,
.feedback-buttons button:disabled {
  cursor: default;
  opacity: 0.55;
}

.feedback-thanks {
  margin: 16px 0 6px;
  padding: 11px;
  border-radius: 12px;
  text-align: center;
  background: #f7f8fa;
  color: #69798d;
  font-size: 12px;
}


/* =========================================================
   TABLETTE / MOBILE
========================================================= */

@media(max-width: 760px) {

  body {
    background-attachment: scroll;
  }

  .container {
    width: calc(100% - 20px);
  }

  .hero {
    padding: 20px 16px;
  }

  .brand {
    font-size: 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

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

  .profile-description {
    min-height: 0;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .chat {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .chat-header {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
  }

  .chat-identity {
    min-width: 150px;
  }

  .chat-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .messages {
    height: min(52vh, 475px);
    min-height: 300px;
    padding-top: 16px;
  }

  .message-row-ai {
    max-width: 94%;
    gap: 10px;
  }

  .message-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .message.user {
    max-width: 88%;
  }

  .sources-container {
    max-width: 90%;
    margin-left: 48px;
  }

  .home-disclaimer,
  .site-footer,
  .persona-guide {
    max-width: 100%;
  }

  .site-footer {
    line-height: 1.9;
  }

  .site-footer a {
    display: inline-block;
    margin: 4px 6px;
  }

  .site-footer span {
    display: none;
  }

  #chat-form {
    align-items: stretch;
  }

  #message-input {
    min-height: 72px;
  }

  .chat-meta-row {
    justify-content: flex-start;
    text-align: left;
  }

}


@media(max-width: 600px) {

  .consent-overlay {
    padding: 12px;
  }

  .consent-modal {
    max-height: calc(100vh - 24px);
    padding: 28px 20px 24px;
    border-radius: 19px;
  }

  .consent-modal h2 {
    padding-right: 28px;
    font-size: 25px;
  }

  .consent-check {
    padding: 12px;
  }

  .profile-card {
    padding: 22px;
  }

  .profile-photo.large {
    width: 88px;
    height: 88px;
  }

  .profile-card h2 {
    font-size: 25px;
  }

  .feedback-buttons {
    gap: 6px;
  }

  .feedback-comment-actions {
    flex-direction: column-reverse;
  }

  .feedback-comment-actions button {
    width: 100%;
  }

  #chat-form {
    gap: 8px;
  }

  #send-button {
    min-width: 86px;
    padding: 0 12px;
  }

  .chat-help {
    display: none;
  }

  .chat-meta-row {
    gap: 6px 12px;
  }

}


@media(max-width: 420px) {

  .profile-top {
    align-items: flex-start;
    gap: 14px;
  }

  .profile-photo.large {
    width: 76px;
    height: 76px;
  }

  .back-button,
  .secondary-button,
  .delete-button {
    padding: 9px 12px;
    font-size: 12px;
  }

  .chat-profile-photo {
    width: 46px;
    height: 46px;
  }

  #chat-form {
    flex-direction: column;
  }

  #send-button {
    min-height: 44px;
  }

  .sources-container {
    max-width: 100%;
    margin-left: 0;
  }

}






/* =========================================================
   MENU ACTIONS DU CHAT
========================================================= */

.chat-actions {
  position: relative;
  display: flex;
  align-items: center;
}

.actions-menu {
  position: relative;
}

.actions-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 9px 13px;
  border: 1px solid rgba(32, 59, 96, .18);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: #203b60;
  font-size: 13px;
  font-weight: 600;
}

.actions-menu > summary::-webkit-details-marker {
  display: none;
}

.actions-menu > summary::after {
  content: " ▾";
  font-size: 11px;
}

.actions-menu[open] > summary::after {
  content: " ▴";
}

.actions-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 270px;
  padding: 7px;
  border: 1px solid rgba(32, 59, 96, .14);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 35px rgba(20,40,60,.16);
}

.actions-menu-panel button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #263b58;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.actions-menu-panel button:hover {
  background: #f2f5f8;
}

.actions-menu-panel .danger {
  color: #9b3d3d;
}

.actions-menu-separator {
  height: 1px;
  margin: 5px 7px;
  background: #e5e9ee;
}

@media (max-width: 700px) {
  .actions-menu-panel {
    width: min(270px, calc(100vw - 32px));
  }
}


/* =========================================================
   NAVIGATION / ACCUEIL ÉTENDU
========================================================= */

html {
  scroll-behavior: smooth;
}

.top-nav {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 28px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.top-nav-brand {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  color: #172235;
  text-decoration: none;
}

.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.top-nav-links a {
  color: #304159;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.top-nav-links a:hover,
.top-nav-links a.active {
  color: #172f54;
  border-bottom-color: #172f54;
}

.top-nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: #173b66;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23,59,102,.15);
}

.top-nav-cta:hover {
  background: #102f55;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.profile-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f5f8;
  color: #42546b;
  font-size: 12px;
  line-height: 1.2;
}

.persona-guide {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  text-align: left;
}

.persona-guide-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf2fb;
  color: #173b66;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.persona-guide strong,
.persona-guide span {
  display: block;
}

.persona-guide strong {
  margin-bottom: 4px;
}

.home-resources {
  margin: 34px auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 45px rgba(26,40,58,.07);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #5376a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-heading h2,
.info-card h2,
.principle-card h2,
.page-cta h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #263b58;
}

.section-heading h2 {
  font-size: 28px;
}

.section-heading p {
  margin: 0;
  color: #687588;
  line-height: 1.6;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.resource-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid #e2e6eb;
  border-radius: 16px;
  background: rgba(250,251,252,.85);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20,40,60,.08);
}

.resource-card strong,
.resource-card span,
.resource-card em {
  display: block;
}

.resource-card strong {
  margin-bottom: 8px;
  color: #203b60;
  font-size: 15px;
}

.resource-card span {
  color: #69778a;
  font-size: 13px;
  line-height: 1.5;
}

.resource-card em {
  margin-top: 15px;
  color: #356da8;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

/* =========================================================
   PAGES À PROPOS / NOTRE APPROCHE
========================================================= */

.info-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.info-top-nav {
  width: 100%;
}

.info-hero {
  max-width: 860px;
  margin: 56px auto 30px;
  padding: 34px 38px;
  text-align: center;
  border-radius: 26px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 16px 50px rgba(26,40,58,.07);
}

.info-hero h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  color: #1b3151;
}

.info-lead {
  max-width: 740px;
  margin: 0 auto;
  color: #667489;
  font-size: 17px;
  line-height: 1.7;
}

.info-card,
.principle-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 12px 38px rgba(26,40,58,.065);
}

.info-card {
  margin: 18px 0;
}

.info-card h2 {
  font-size: 27px;
}

.info-card p,
.principle-card p {
  color: #647287;
  font-size: 15px;
  line-height: 1.72;
}

.info-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-two-columns .info-card {
  margin: 0;
}

.info-highlight {
  border: 1px solid rgba(32,59,96,.12);
  background: rgba(248,250,252,.96);
}

.inline-link {
  color: #356da8;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

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

.principle-card > span {
  display: inline-block;
  margin-bottom: 12px;
  color: #8aa0ba;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.principle-card h2 {
  font-size: 23px;
}

.page-cta {
  margin: 28px 0 8px;
  padding: 30px;
  text-align: center;
  border-radius: 22px;
  background: rgba(30,60,94,.94);
}

.page-cta h2 {
  color: #fff;
  font-size: 27px;
}

.page-cta a {
  display: inline-block;
  margin-top: 9px;
  padding: 10px 16px;
  border-radius: 11px;
  background: #fff;
  color: #173b66;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.info-footer {
  margin-top: 34px;
}

@media (max-width: 850px) {
  .top-nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .top-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .resource-grid,
  .principles-grid,
  .info-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .top-nav {
    width: calc(100% - 24px);
    margin-bottom: 18px;
  }

  .top-nav-brand {
    font-size: 24px;
  }

  .top-nav-cta {
    padding: 9px 12px;
  }

  .top-nav-links {
    gap: 14px;
  }

  .top-nav-links a {
    white-space: nowrap;
    font-size: 13px;
  }

  .home-resources,
  .info-card,
  .principle-card,
  .info-hero {
    padding: 22px;
  }

  .info-page {
    width: min(100% - 20px, 1120px);
  }

  .info-hero {
    margin-top: 28px;
  }
}


/* =========================================================
   PICTOGRAMMES ACCUEIL
========================================================= */

.profile-tags span {
  gap: 7px;
}

.tag-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-grid;
  place-items: center;
  color: #28527f;
  font-style: normal;
}

.tag-icon svg,
.trust-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-point {
  position: relative;
  padding-left: 72px;
  min-height: 86px;
}

.trust-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: #eaf2fb;
  color: #1d5487;
}

/* =========================================================
   MENU IDENTIQUE SUR TOUTES LES PAGES
========================================================= */

/*
 * La navigation a exactement la même boîte sur l'accueil,
 * À propos et Notre approche.
 */
.top-nav,
.info-top-nav {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 36px));
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto 28px;
  padding: 0;
}

.info-page .top-nav {
  width: min(1120px, calc(100vw - 36px));
  max-width: 1120px;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Évite qu'un conteneur parent réduise visuellement la navigation. */
.info-page {
  overflow: visible;
}

@media (max-width: 850px) {
  .top-nav,
  .info-top-nav,
  .info-page .top-nav {
    width: calc(100vw - 24px);
  }
}

@media (max-width: 560px) {
  .trust-point {
    padding-left: 62px;
  }

  .trust-icon {
    left: 14px;
    width: 38px;
    height: 38px;
    padding: 9px;
  }
}


/* =========================================================
   CORRECTION FINALE ALIGNEMENT VERTICAL DU MENU
========================================================= */

/*
 * L'accueil commence à 8px du haut via .container.
 * Les pages À propos / Notre approche commençaient à 22px,
 * ce qui décalait toute la navigation vers le bas.
 */
.info-page {
  padding-top: 8px !important;
}

/* Même géométrie stricte du menu sur les trois pages. */
.top-nav,
.info-top-nav,
.info-page .top-nav {
  height: 64px;
  min-height: 64px;
  margin-top: 0 !important;
  margin-bottom: 28px;
  align-items: center;
}

/* Neutralise tout décalage vertical hérité sur les pages info. */
.info-top-nav {
  transform: translateX(-50%);
  top: auto;
}

/* Garde le contenu des pages secondaires respirant malgré la correction du menu. */
.info-hero {
  margin-top: 42px;
}


/* =========================================================
   ALIGNEMENT DES TAGS ANNA / FREUD SUR UNE SEULE LIGNE
========================================================= */

@media (min-width: 900px) {
  .profile-tags {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .profile-tags span {
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 11px;
  }

  .tag-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}


/* =========================================================
   CORRECTION FINALE LARGEUR / CENTRAGE DU MENU
========================================================= */

/*
 * Sur l'accueil, .top-nav était limité par le conteneur principal de 1080px.
 * Sur les pages À propos / Notre approche, il était calculé par rapport au viewport.
 * On force désormais exactement la même largeur et le même centre partout.
 */
.top-nav,
.info-top-nav,
.info-page .top-nav {
  position: relative;
  left: 50%;
  transform: translateX(-50%) !important;

  width: min(1120px, calc(100vw - 36px)) !important;
  max-width: 1120px !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  height: 64px;
  min-height: 64px;
  box-sizing: border-box;
}

/* Les trois colonnes du menu utilisent aussi exactement la même répartition. */
.top-nav,
.info-top-nav {
  grid-template-columns: 1fr auto 1fr !important;
}

@media (max-width: 850px) {
  .top-nav,
  .info-top-nav,
  .info-page .top-nav {
    width: calc(100vw - 24px) !important;
  }
}


/* =========================================================
   NEROPSIA - V2 VISUELLE ACCUEIL
========================================================= */

.hero-v2 {
  max-width: 820px;
  margin: 4px auto 14px;
  padding: 18px 28px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(20,35,55,.035);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #68809e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-v2 h1 {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1.12;
}

.hero-text-main {
  max-width: 690px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.5;
}

.persona-guide-v2 {
  max-width: 820px;
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 1px solid rgba(32,59,96,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
  box-shadow: none;
  backdrop-filter: blur(3px);
}

.persona-guide-v2 .persona-guide-icon {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  font-size: 13px;
}

.persona-guide-v2 strong {
  font-size: 12px;
}

.persona-guide-v2 span {
  font-size: 12px;
  line-height: 1.45;
}

.profiles {
  gap: 20px;
}

.profile-card {
  position: relative;
  padding: 26px;
  background: rgba(255,255,255,.975);
  border: 1px solid rgba(35,61,94,.08);
  box-shadow:
    0 15px 42px rgba(26,40,58,.075),
    0 2px 8px rgba(26,40,58,.035);
}

.profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45,91,137,.14);
  box-shadow:
    0 21px 52px rgba(26,40,58,.115),
    0 4px 12px rgba(26,40,58,.05);
}

.profile-card button {
  min-height: 46px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(25,54,88,.13);
}

.profile-library-link {
  margin-bottom: 13px;
  color: #68809f;
  font-size: 12px;
  font-weight: 550;
}

.trust-points {
  margin-top: 16px;
  margin-bottom: 14px;
  gap: 10px;
}

.trust-point {
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(35,61,94,.055);
  box-shadow: 0 7px 22px rgba(20,35,55,.035);
}

.trust-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
}

.trust-point strong {
  font-size: 12px;
}

.trust-point span {
  font-size: 11px;
  line-height: 1.4;
}

.resume-home-box.resume-home-box-v2 {
  max-width: 840px;
  margin: 14px auto 18px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(35,61,94,.07);
  box-shadow: 0 7px 22px rgba(20,35,55,.035);
  text-align: left;
}

.resume-home-box-v2 .resume-home-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3fa;
  color: #28527f;
}

.resume-home-box-v2 .resume-home-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-home-box-v2 .resume-home-copy strong,
.resume-home-box-v2 .resume-home-copy span {
  display: block;
}

.resume-home-box-v2 .resume-home-copy strong {
  margin-bottom: 2px;
  color: #2a405e;
  font-size: 13px;
}

.resume-home-box-v2 .resume-home-copy span {
  color: #758195;
  font-size: 11px;
  line-height: 1.35;
}

.resume-home-box.resume-home-box-v2 button {
  width: auto;
  margin: 0;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.home-resources-v2 {
  margin: 16px auto 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(35,61,94,.055);
  box-shadow: 0 8px 26px rgba(20,35,55,.035);
}

.section-heading-v2 {
  margin-bottom: 12px;
}

.section-heading-v2 h2 {
  font-size: 22px;
}

.resource-grid-v2 {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.resource-card-v2 {
  min-height: 0;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(250,251,252,.82);
}

.resource-card-v2 .resource-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3fa;
  color: #28527f;
}

.resource-card-v2 .resource-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-card-v2 strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.resource-card-v2 span {
  font-size: 10.5px;
  line-height: 1.35;
}

.resource-card-v2 em {
  margin: 0;
  font-size: 16px;
}

.home-disclaimer-v2 {
  max-width: 900px;
  margin: 15px auto 6px;
  padding: 9px 14px;
  border-radius: 11px;
  background: rgba(255,255,255,.58);
  box-shadow: none;
  font-size: 10.5px;
  line-height: 1.45;
}

.site-footer {
  max-width: 900px;
  margin-bottom: 2px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.48);
  font-size: 10.5px;
}

@media (min-width: 901px) {
  .profile-description {
    min-height: 84px;
  }
}

@media (max-width: 900px) {
  .hero-v2 h1 {
    font-size: 32px;
  }

  .resume-home-box.resume-home-box-v2 {
    grid-template-columns: 36px 1fr;
  }

  .resume-home-box.resume-home-box-v2 button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .resource-grid-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-v2 {
    padding: 16px 18px;
  }

  .hero-v2 h1 {
    font-size: 28px;
  }

  .hero-kicker {
    font-size: 10px;
  }

  .persona-guide-v2 {
    padding: 9px 11px;
  }
}


/* =========================================================
   V221 — ALIGNEMENT DU BANDEAU "VOUS HÉSITEZ ?"
========================================================= */

.persona-guide-v2 {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 16px !important;
}

.persona-guide-v2 .persona-guide-icon {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.persona-guide-v2 > div:last-child {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.persona-guide-v2 strong {
  display: block !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.persona-guide-v2 span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
}

@media (max-width: 560px) {
  .persona-guide-v2 {
    gap: 11px !important;
    padding: 11px 13px !important;
  }
}
