@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

body,
input,
textarea,
select,
main p,
main small,
.score,
.conversation,
.profilebody,
.demo {
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
button,
nav,
.brand,
.account,
.prayer,
.profilebody h3,
.hero-actions b,
.ring,
.matchscore {
  font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
}

h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

button,
nav a {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ring,
.hero-actions b,
.matchscore {
  font-weight: 700;
}

.dashboard-reveal {
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.dashboard-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.score.is-animating label {
  color: var(--pink);
  font-weight: 600;
}

.score.is-animating label::before {
  animation: dashboard-pulse .55s ease-in-out infinite alternate;
}

.ring.is-animating {
  box-shadow: 0 0 0 6px rgba(4,181,163,.08);
}

@keyframes dashboard-pulse {
  from { transform: scale(.82); opacity: .6; }
  to { transform: scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Iconographie vectorielle et hiérarchie typographique de l'accueil */
.vicon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  color: currentColor;
  line-height: 1;
  vertical-align: -0.18em;
}

.vicon svg,
.navicon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav .navicon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #ffd56a;
}

main h2 {
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

main h2 .title-vicon {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  color: #ff0b65;
  vertical-align: -4px;
}

.secondary h2,
.messages h2,
.calls h2,
.advice h2,
.community h2 {
  font-size: 17px;
}

.inspiration h2 {
  font-size: 22px;
}

.hero-actions b {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-actions b .vicon {
  width: 19px;
  height: 19px;
}

#global-search > span .vicon,
#global-search > .vicon {
  width: 20px;
  height: 20px;
}

.location > .vicon,
.prayer > span > .vicon,
.topbar > .vicon {
  width: 20px;
  height: 20px;
}

.profileactions button .vicon {
  width: 17px;
  height: 17px;
  margin-right: 4px;
}

.walilinks .vicon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: #092d75;
}

@media (max-width: 1180px) {
  main h2 { font-size: 17px; }
  .secondary h2,
  .messages h2,
  .calls h2,
  .advice h2,
  .community h2 { font-size: 16px; }
}

/* Rééquilibrage des cartes centrales */
@media (min-width: 1381px) {
  .midgrid {
    grid-template-columns: minmax(0, 2.25fr) minmax(245px, .82fr);
  }
}

@media (min-width: 761px) {
  .profilebody h3 {
    font-size: 16px;
    line-height: 1.18;
  }

  .profilebody p {
    font-size: 13px;
    line-height: 1.2;
  }
}

.article b {
  font-size: 15px;
  line-height: 1.14;
}

.messages .conversation b {
  font-size: 15px;
}

.messages .conversation small {
  font-size: 13px;
}

/* Cartes statistiques séparées du bandeau de bienvenue */
.hero-actions {
  gap: 7px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.hero-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 7px;
  background: rgba(255,248,247,.95);
  box-shadow: 0 3px 12px rgba(91,43,59,.12);
}

.hero-actions button + button {
  border-left: 1px solid rgba(255,255,255,.82);
}

.hero-stat-icon {
  width: 21px;
  height: 21px;
  color: #ff0b65;
}

.hero-stat-copy {
  display: block;
  min-width: 0;
}

.hero-actions .hero-stat-copy b {
  display: block;
  font-size: 19px;
  line-height: 1;
}

.hero-actions .hero-stat-copy small {
  display: block;
  margin-top: 4px;
  line-height: 1.08;
  white-space: normal;
}

/* Centrage optique des actions rondes des profils */
.profileactions button {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
}

.profileactions button > svg {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .hero-actions button {
    gap: 5px;
    padding: 7px 5px;
  }

  .hero-stat-icon {
    width: 18px;
    height: 18px;
  }

  .hero-actions .hero-stat-copy b {
    font-size: 17px;
  }
}

/* Rééquilibrage de la page d'accueil sur ordinateur */
@media (min-width: 1051px) {
  .topgrid {
    grid-template-columns: minmax(0,2.6fr) minmax(0,1fr) minmax(0,1fr);
  }

  .topgrid > .summary-card {
    width: 100%;
    height: 100%;
    min-height: 262px;
  }

  .compatibility.summary-card {
    grid-column: auto;
  }

  .compatibility.summary-card .summary-body {
    grid-template-columns: 94px minmax(0,1fr);
  }

  .compatibility.summary-card .metric-list {
    display: block;
  }

  .compatibility.summary-card .metric-row {
    grid-template-columns: 24px minmax(0,1fr) 31px;
    margin-bottom: 6px;
  }

  .compatibility.summary-card .metric-row > b {
    grid-column: auto;
    grid-row: auto;
    align-self: end;
  }

  .bodygrid {
    grid-template-columns: minmax(0,3.15fr) minmax(250px,.95fr);
  }

  .midgrid {
    grid-template-columns: minmax(0,2.27fr) minmax(0,1fr);
  }

  .messages #conversations {
    display: block;
  }

  .messages .conversation {
    border-bottom: 1px solid #eee9ed;
  }

  .secondary {
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
  }

  .secondary > .panel {
    width: 100%;
    height: 100%;
  }
}

/* Équilibre des cartes de synthèse du haut */
@media (min-width: 1381px) {
  .topgrid {
    grid-template-columns: minmax(0,2.6fr) minmax(0,1fr) minmax(0,1fr);
  }
}

.complete h2 {
  font-size: 19px;
}

.compatibility h2 {
  font-size: 17px;
}

.ring b {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.prayer {
  gap: 10px;
  padding-right: 15px;
  padding-left: 15px;
  font-size: 12px;
}

.prayer > span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
}

.prayer > span svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prayer strong {
  font-size: 17px;
}

/* Portraits plus éditoriaux et miniatures circulaires */
@media (min-width: 761px) {
  .profilephoto img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 18%;
  }
}

.conversation img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(8,28,88,.12);
}

.favphotos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.favphotos button {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
}

.favphotos img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid #fff;
  box-shadow: 0 2px 9px rgba(8,28,88,.14);
}

.favphotos button:hover img,
.conversation:hover img {
  box-shadow: 0 0 0 2px rgba(255,11,101,.22), 0 3px 10px rgba(8,28,88,.16);
}

/* Variante comparative : contenu intégré dans la photo */
.profile-featured {
  position: relative;
  min-height: 100%;
  background: #172236;
}

.profile-featured .profilephoto,
.profile-featured .profilephoto > button {
  height: 100%;
}

.profile-featured .profilephoto > button {
  display: block;
}

.profile-featured .profilephoto img {
  height: 100%;
  min-height: 286px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 18%;
}

.profile-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: #fff;
  background: linear-gradient(180deg, rgba(3,12,27,.22) 0%, transparent 38%, rgba(3,12,27,.08) 54%, rgba(3,12,27,.92) 100%);
}

.profile-new {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #3eaf55;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
}

.profile-favorite,
.profile-like {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  line-height: 0;
}

.profile-favorite {
  top: 9px;
  right: 9px;
  width: 29px;
  height: 29px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

.profile-favorite svg {
  width: 22px;
  height: 22px;
  fill: rgba(10,18,30,.15);
  stroke: currentColor;
  stroke-width: 1.8;
  transform: translateY(1px);
}

.profile-like {
  right: 9px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#f6527d,#e60055);
  box-shadow: 0 5px 15px rgba(230,0,85,.3);
}

.profile-like svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  transform: translateY(1px);
}

.profile-favorite:hover,
.profile-like:hover {
  transform: scale(1.06);
}

.profile-favorite:hover svg,
.profile-like:hover svg {
  transform: translateY(0);
}

.profile-overlay-info {
  position: absolute;
  right: 58px;
  bottom: 11px;
  left: 10px;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

.profile-overlay-info h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
}

.profile-overlay-info p {
  margin-top: 4px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  line-height: 1.15;
}

.profile-overlay-info strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.overlay-online {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c56c;
  box-shadow: 0 0 0 2px rgba(255,255,255,.16);
}

/* Cartes de progression inspirées de la maquette de référence */
.summary-card {
  display: flex;
  flex-direction: column;
  min-height: 262px;
  padding: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 55%, rgba(255,173,186,.12), transparent 30%),
    rgba(255,253,251,.94);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  gap: 7px;
}

.summary-head h2 {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
}

.summary-title-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border-radius: 50%;
  color: #16be73;
  background: #e7fbf1;
}

.compatibility .summary-title-icon {
  color: #ff1670;
  background: #fff0f5;
}

.summary-title-icon svg,
.metric-icon svg {
  display: block;
  width: 68%;
  height: 68%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-head > button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0 0 2px;
  border: 1px solid #d8e2f2;
  border-radius: 7px;
  color: #123a97;
  background: rgba(255,255,255,.85);
  font: 500 25px/1 Arial,sans-serif;
}

.summary-body {
  display: grid;
  grid-template-columns: 94px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  flex: 1;
  margin: 8px 0 9px;
}

.summary-ring {
  position: relative;
  width: 92px;
  height: 92px;
  padding: 10px;
  border-radius: 50%;
  background: conic-gradient(#eee9ed 0 100%);
  transform: rotate(-90deg);
}

.summary-ring-group {
  align-self: center;
  width: 94px;
  text-align: center;
  transform: translateY(-4px);
}

.summary-ring > div {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  text-align: center;
  background: #fffdfb;
  transform: rotate(90deg);
}

.summary-ring b {
  display: block;
  color: #07339b;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
}

.summary-ring small {
  display: block;
  margin-top: 3px;
  color: #163b91;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.02;
}

.ring-caption {
  display: block;
  width: 92px;
  margin-top: 6px;
  color: #163b91;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.metric-list,
.summary-card #scores,
.compatibility.summary-card #scores {
  display: block;
  min-width: 0;
  margin: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 31px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 6px;
}

.metric-row:last-child {
  margin-bottom: 0;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--metric-color);
  background: color-mix(in srgb, var(--metric-color) 14%, white);
}

.metric-data {
  min-width: 0;
}

.metric-data label {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: #315097;
  font-size: 11px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-row progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ebe9ed;
}

.metric-row progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #ebe9ed;
}

.metric-row progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--metric-color);
}

.metric-row progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--metric-color);
}

.metric-row > b {
  align-self: end;
  padding-bottom: 1px;
  color: #123897;
  font-size: 11px;
  line-height: 1;
  text-align: right;
}

.summary-card > .primary,
.summary-card > .outline {
  width: 100%;
  min-height: 35px;
  margin-top: auto;
  font-size: 14px;
}

.summary-ring.is-animating {
  filter: drop-shadow(0 3px 8px rgba(18,56,151,.12));
}

@media (max-width: 1380px) and (min-width: 761px) {
  .compatibility.summary-card {
    min-height: 230px;
  }

  .compatibility.summary-card .summary-body {
    grid-template-columns: 100px minmax(0,1fr);
  }

  .compatibility.summary-card .metric-list {
    display: grid;
    grid-template-columns: repeat(5,minmax(130px,1fr));
    gap: 9px;
  }

  .compatibility.summary-card .metric-row {
    grid-template-columns: 24px minmax(0,1fr);
    margin: 0;
  }

  .compatibility.summary-card .metric-row > b {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}

@media (max-width: 760px) {
  .summary-card {
    min-height: 260px;
  }

  .summary-body {
    grid-template-columns: 92px minmax(0,1fr);
  }
}


/* Flèche d’action vectorielle commune aux boutons de l’accueil. */
.button-arrow-icon{display:inline-grid!important;place-items:center;flex:0 0 auto;width:23px!important;height:23px!important;margin:0!important;border:0!important;border-radius:50%;background:transparent!important;color:currentColor!important;line-height:1!important}
.button-arrow-icon svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.summary-head>button{display:grid;place-items:center}
.summary-head>button .button-arrow-icon{width:25px!important;height:25px!important}
.summary-head>button .button-arrow-icon svg{width:25px;height:25px}
.primary .button-arrow-icon,.wine .button-arrow-icon{color:#fff!important}
.outline .button-arrow-icon{color:#0a3d9b!important}


/* Battement du cœur du module Votre compatibilité IA. */
.compatibility.summary-card .summary-title-icon svg{transform-origin:center;stroke-width:2.35;filter:drop-shadow(0 2px 3px rgba(255,23,109,.18));animation:home-compat-heartbeat 1.65s ease-in-out infinite}
@keyframes home-compat-heartbeat{0%,42%,100%{transform:scale(1)}10%{transform:scale(1.2)}18%{transform:scale(.96)}27%{transform:scale(1.14)}36%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.compatibility.summary-card .summary-title-icon svg{animation:none}}


/* Actions de rencontre au survol des profils tests. */
.profile-featured .profile-shade{background:linear-gradient(180deg,rgba(3,12,27,.28),rgba(3,12,27,.18) 42%,rgba(3,12,27,.92));transition:background .28s ease}
.profile-hover-actions{position:absolute;z-index:4;left:50%;top:48%;display:flex;align-items:center;gap:10px;opacity:0;pointer-events:none;transform:translate(-50%,-42%) scale(.92);transition:opacity .25s ease,transform .25s ease}
.profile-featured .profilephoto:hover .profile-shade{background:linear-gradient(180deg,rgba(2,9,22,.67),rgba(2,9,22,.58) 48%,rgba(2,9,22,.94))}
.profile-featured .profilephoto:hover .profile-hover-actions{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.profile-choice{display:grid;place-items:center;pointer-events:auto;width:43px;height:43px;padding:0;border:1.5px solid rgba(255,255,255,.82);border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 7px 18px rgba(0,0,0,.3);transition:transform .18s ease,background .18s ease}
.profile-choice svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.profile-choice:hover{transform:translateY(-2px) scale(1.07)}
.profile-reject{color:#ee376c}.profile-message{color:#1472dc}.profile-accept{color:#fff;background:linear-gradient(145deg,#ff4e82,#e50058);border-color:#ff91b5}
.profile-accept svg{fill:currentColor}.profile-accept{animation:profile-choice-heartbeat 1.65s ease-in-out infinite}
@keyframes profile-choice-heartbeat{0%,42%,100%{transform:scale(1)}10%{transform:scale(1.14)}18%{transform:scale(.97)}27%{transform:scale(1.1)}36%{transform:scale(1)}}
.first-word-person{display:flex;align-items:center;gap:13px;padding:12px;margin-bottom:14px;border-radius:12px;background:#fff2f6}.first-word-person img{width:62px;height:62px;border-radius:50%;object-fit:cover}.first-word-person h3{color:#092d79}.first-word-person p{margin-top:4px;font-size:14px}.first-word-person b{color:#0b9f67}.first-word-suggestions{margin:13px 0}.first-word-suggestions>strong{display:block;margin-bottom:8px}.first-word-suggestions>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.first-word-suggestions button{padding:10px;border:1px solid #f1b9cd;border-radius:9px;background:#fff8fb;color:#263d70;text-align:left}.first-word-highlight{display:flex;align-items:center;gap:10px;margin:10px 0;padding:11px;border-radius:9px;background:#ffe9f1;color:#df155d}.first-word-highlight span,.first-word-highlight small{display:block}.first-word-highlight small{color:#687893;margin-top:2px}
@media(max-width:540px){.first-word-suggestions>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.profile-accept{animation:none}}

.profile-overlay-info{right:10px}
.profile-overlay-info h3{white-space:nowrap;font-size:15px}
.featured-online{position:absolute;z-index:5;top:10px;right:10px;width:10px;height:10px;border:2px solid rgba(255,255,255,.9);border-radius:50%;background:#11c697;box-shadow:0 2px 7px rgba(0,0,0,.28)}
.profile-featured .profilephoto:not(:hover) .profile-hover-actions{opacity:0!important;pointer-events:none!important;transform:translate(-50%,-42%) scale(.92)!important}


/* Portraits Pour vous légèrement plus hauts et plus arrondis. */
.profiles .profile-featured{border-radius:15px;overflow:hidden}
.profiles .profile-featured .profilephoto,.profiles .profile-featured .profilephoto>button,.profiles .profile-featured .profilephoto img{border-radius:15px}
.profiles .profile-featured .profilephoto img{min-height:310px}


/* Carrousel quotidien de dix profils compatibles. */
#profiles.profiles{display:block;overflow:hidden;min-width:0}
.profiles-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 30px)/4);gap:10px;width:max-content;will-change:transform}
.profiles-track>.profile{width:auto;min-width:0}
@media(max-width:1050px) and (min-width:761px){.profiles-track{grid-auto-columns:calc((100% - 20px)/3)}}
@media(max-width:760px){.profiles-track{grid-auto-columns:calc((100% - 10px)/2)}}
@media(max-width:480px){.profiles-track{grid-auto-columns:100%}}


/* Correction du rail horizontal : quatre cartes au format d’origine, contenues dans le bloc. */
#profiles.profiles{display:block;width:100%;height:310px;overflow:hidden;border-radius:11px}
.profiles-track{display:flex;align-items:stretch;gap:10px;width:100%;height:310px}
.profiles-track>.profile{flex:0 0 calc((100% - 30px)/4);width:calc((100% - 30px)/4);height:310px;min-height:310px;max-height:310px}
.profiles-track>.profile .profilephoto,.profiles-track>.profile .profilephoto>button,.profiles-track>.profile .profilephoto img{height:310px;min-height:310px;max-height:310px}
@media(max-width:1050px) and (min-width:761px){.profiles-track>.profile{flex-basis:calc((100% - 20px)/3);width:calc((100% - 20px)/3)}}
@media(max-width:760px){#profiles.profiles,.profiles-track{height:310px}.profiles-track>.profile{flex-basis:calc((100% - 10px)/2);width:calc((100% - 10px)/2)}}
@media(max-width:480px){.profiles-track>.profile{flex-basis:100%;width:100%}}


/* Rythme et proportions affinés du carrousel Pour vous. */
#profiles.profiles,.profiles-track{height:326px}
.profiles-track>.profile{height:326px;min-height:326px;max-height:326px;border-radius:16px}
.profiles-track>.profile .profilephoto,.profiles-track>.profile .profilephoto>button,.profiles-track>.profile .profilephoto img{height:326px;min-height:326px;max-height:326px;border-radius:16px}
@media(max-width:760px){#profiles.profiles,.profiles-track,.profiles-track>.profile,.profiles-track>.profile .profilephoto,.profiles-track>.profile .profilephoto>button,.profiles-track>.profile .profilephoto img{height:326px;min-height:326px;max-height:326px}}


/* Ajustements accueil : statut, indicateurs du bandeau et messages. */
.featured-online{top:auto;right:10px;bottom:10px;width:11px;height:11px}
.profile-overlay-info{right:26px}
.hero-actions button{display:grid;grid-template-columns:31px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:7px;color:#101010}
.hero-stat-icon{grid-row:1/3;display:grid;place-items:center;width:31px;height:31px;color:#f50058}
.hero-stat-icon svg{display:block;width:29px;height:29px;fill:currentColor;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hero-stat-icon svg circle{fill:#fff4f7;stroke:#fff4f7}
.hero-actions b{color:#101010;font-size:22px;line-height:1;text-align:left}
.hero-actions b:first-letter{color:#101010}
.hero-actions small{color:#101010;margin-top:2px;text-align:left}
.conversation{gap:12px;padding:10px 0;min-height:57px}
.conversation img{width:45px;height:45px;border-radius:8px}
.conversation b{font-size:17px}.conversation small{font-size:14.5px}.conversation .time{font-size:13.5px}

/* Compteurs du bandeau : une seule icône, composition conforme à la maquette. */
.hero-actions button{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto;align-items:center;column-gap:8px;padding:9px 10px;color:#0b1630;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.92);border-radius:9px}
.hero-stat-icon{grid-row:auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#f50058;background:#fff0f5}
.hero-stat-icon svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hero-stat-icon svg circle{fill:none;stroke:currentColor}
.hero-stat-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;text-align:left}
.hero-actions .hero-stat-copy b{display:block;color:#0b1630;font-size:20px;line-height:1;font-weight:800;text-align:left}
.hero-actions .hero-stat-copy small{display:block;margin-top:3px;color:#0b1630;font-size:12px;line-height:1.08;font-weight:700;text-align:left;white-space:normal}

/* Portraits de la messagerie : légèrement agrandis et parfaitement ronds. */
.conversation img{width:47px;height:47px;flex:0 0 47px;border-radius:50%;object-fit:cover;object-position:center}
@media(max-width:760px){.hero-actions button{grid-template-columns:31px minmax(0,1fr);padding:7px 6px;column-gap:5px}.hero-stat-icon{width:30px;height:30px}.hero-stat-icon svg{width:19px;height:19px}.hero-actions .hero-stat-copy b{font-size:17px}.hero-actions .hero-stat-copy small{font-size:10px}}

/* Harmonisation des portraits des messages avec ceux des favoris. */
.conversation img{width:52px;height:52px;flex-basis:52px;border-radius:50%;object-fit:cover;object-position:center 18%;border:2px solid #fff;box-shadow:0 2px 9px rgba(8,28,88,.14)}

/* Respiration discrète des quatre compteurs au survol. */
.hero-actions button:hover{filter:none;animation:hero-stat-breathe 1.05s ease-in-out infinite;transform-origin:center}
@keyframes hero-stat-breathe{0%,100%{transform:scale(1)}50%{transform:scale(.94)}}
@media(prefers-reduced-motion:reduce){.hero-actions button:hover{animation:none}}

/* Fenêtre Premier Mot contextuelle */
#modal.first-word-home-modal{width:min(760px,calc(100vw - 28px));max-height:94vh;padding:0;overflow:auto;border-radius:17px;background:#fffdfc;font-family:Inter,Arial,Helvetica,sans-serif}
#modal.first-word-home-modal>.modalhead{display:none}
#modal.first-word-home-modal #modal-body{padding:0}
.first-word-home-form{padding:20px 28px 22px;color:#071d57;font-family:Inter,Arial,Helvetica,sans-serif}
.fwh-head{display:grid;grid-template-columns:58px 1fr 30px;gap:14px;align-items:center;padding-bottom:12px;border-bottom:1px solid #f1dce2}
.fwh-head>img{width:58px;height:58px;object-fit:contain}
.fwh-head h2{margin:0;font:700 27px/1.1 Inter,Arial,Helvetica,sans-serif;letter-spacing:-.35px}.fwh-head h2 em{display:inline-block;margin-left:7px;position:relative;top:-1px;font-size:inherit;color:#e0095f}.fwh-head p{margin:5px 0 0;color:#65759a;font-size:14px}.fwh-head>button{align-self:start;color:#63718e;font:32px/1 Arial;background:none}
.fwh-person{display:flex;align-items:center;gap:15px;margin:11px 0;padding:10px 13px;border-radius:11px;background:linear-gradient(90deg,#fff8f5,#fff0f4)}.fwh-person>img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 3px 10px #1d22431f}.fwh-person h3{margin:0 0 6px;font-size:22px}.fwh-person h3 span{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#1585ed;color:#fff;font-size:11px}.fwh-person p{display:flex;align-items:center;gap:7px;margin:0;color:#607094;font-size:14px}.fwh-person p svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.fwh-person p b{margin-left:7px;color:#09a568}
.fwh-pack{display:grid;grid-template-columns:46px 1fr 184px;align-items:center;gap:12px;padding:10px 13px;border:1px solid #ffc4d7;border-radius:11px;background:linear-gradient(105deg,#fff3f7,#ffdce8)}.fwh-pack>img{width:44px;height:44px;object-fit:contain}.fwh-pack h3{margin:0 0 2px;color:#a31555;font-size:19px}.fwh-pack p{margin:0;color:#596d94;font-size:13px}.fwh-after{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding-left:10px;border-left:1px solid #eaa2b9}.fwh-after img{width:42px;height:42px;object-fit:contain}.fwh-after span,.fwh-after small,.fwh-after b{display:block}.fwh-after small{color:#ad4d72}.fwh-after b{color:#d80d59;font-size:15px}
.fwh-pack-meter{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin-top:7px;max-width:290px}.fwh-pack-meter i{display:block;min-width:0;height:8px;border:1px solid #cfe5dc;border-radius:4px;background:#eaf3ef;box-shadow:none}.fwh-pack-meter i.active{border-color:#0da86e;background:linear-gradient(180deg,#39d99b,#0fb477);box-shadow:0 1px 3px rgba(15,180,119,.2)}.fwh-pack.is-empty .fwh-pack-meter i{border-color:#ead9df;background:#f1e7ea}
.fwh-suggest-title{display:flex;align-items:center;gap:8px;margin:15px 0 9px}.fwh-suggest-title>img{width:34px;height:34px;object-fit:contain}.fwh-suggest-title h3{margin:0;font-size:18px}.fwh-suggest-controls{display:flex;align-items:center;gap:7px;margin-left:auto}.fwh-suggest-controls button{display:flex;align-items:center;justify-content:center;height:36px;min-width:36px;padding:0 9px;border:1px solid #d7e0f0;border-radius:8px;background:#fff;color:#0876d9;font-size:13px;font-weight:700}.fwh-suggest-controls button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.fwh-suggest-controls button:last-child{gap:5px;border-color:transparent}.fwh-suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.fwh-suggestions button{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:9px;min-height:68px;padding:9px;border:1px solid #dce3ee;border-radius:9px;background:#fff;color:#14285c;text-align:left;font-size:13px;line-height:1.35}.fwh-suggestions button b{font:600 12.5px/1.35 Inter,Arial,sans-serif}.fwh-idea-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff0f5;color:#ff176d}.fwh-idea-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.fwh-suggestions button:hover,.fwh-suggestions button.selected{border-color:#ff65a0;background:#fff7fa}.fwh-hint{margin:7px 0 13px!important;color:#72809d;font-size:12px}
.fwh-label{display:grid;grid-template-columns:1fr auto;gap:7px;text-align:left;font-size:16px;font-weight:700}.fwh-label>span{color:#7a86a0;font-size:12px;font-weight:400}.fwh-label textarea{grid-column:1/-1;min-height:135px;max-height:220px;padding:13px 15px;border:1px solid #aebed9;border-radius:9px;color:#13265c;font:14px/1.5 Inter,Arial,Helvetica,sans-serif;resize:vertical}
.fwh-highlight{display:flex;align-items:center;gap:13px;margin:12px 0 0;padding:10px 15px;border-radius:9px;background:linear-gradient(90deg,#ffe7ef,#fff3f6)}.fwh-highlight img{width:52px;height:52px;object-fit:contain}.fwh-highlight span,.fwh-highlight b,.fwh-highlight small{display:block}.fwh-highlight b{color:#d60d59;font-size:13px}.fwh-highlight small{margin-top:3px;color:#6c7995;font-size:11px}
.fwh-actions{display:flex;justify-content:center;gap:11px;margin-top:18px}.fwh-actions button{height:47px;border-radius:8px;font-weight:700}.fwh-actions .outline{width:160px}.fwh-actions .primary{width:325px}.fwh-actions .primary img{width:25px;height:25px;object-fit:contain}
@media(max-width:620px){.first-word-home-form{padding:15px}.fwh-head{grid-template-columns:46px 1fr 24px}.fwh-head>img{width:46px;height:46px}.fwh-head h2{font-size:21px}.fwh-pack{grid-template-columns:40px 1fr}.fwh-after{grid-column:1/-1;border-left:0;border-top:1px solid #eaa2b9;padding:8px 0 0 48px}.fwh-suggestions{grid-template-columns:1fr}.fwh-label{grid-template-columns:1fr}.fwh-label>span{display:none}.fwh-actions .outline{width:35%}.fwh-actions .primary{width:65%}.fwh-person p{flex-wrap:wrap}}

/* En-tête de tableau de bord */
.dashboard-header{gap:0;padding:10px 20px;background:#fffaf8;border-top:3px solid #075a4a;box-shadow:0 5px 18px rgba(92,30,51,.12);font-family:"Manrope","Inter",Arial,Helvetica,sans-serif}
.dashboard-header .menu{margin-right:16px}
#global-search{height:48px;max-width:none;flex:1;border:1px solid #d9dce6;border-radius:999px;background:#fff;padding:0 22px;gap:14px}
#global-search svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:#8591aa;stroke-width:2;stroke-linecap:round}
#global-search input{font:400 15px/1 "Inter",Arial,Helvetica,sans-serif}
.header-separator{width:1px;height:46px;flex:0 0 1px;margin:0 18px;background:#d9dce6}
.header-prayer{display:flex;align-items:center;gap:11px;min-width:230px;padding:0;text-align:left;font-family:"Manrope","Inter",Arial,Helvetica,sans-serif}
.header-prayer img{width:64px;height:60px;object-fit:contain}
.header-prayer>span{display:flex;flex-direction:column;line-height:1.12}
.header-prayer b{font-size:12px;color:#112657}
.header-prayer strong{font-size:14px;color:#ff416c;margin-top:2px}
.header-prayer strong time{color:#112657;margin-left:5px}
.header-prayer small{font-size:12px;color:#6f7d9f;margin-top:2px}
.header-clock{min-width:156px;text-align:left;font-family:"Inter",Arial,Helvetica,sans-serif;color:#6f7d9f}
.header-clock span{display:block;font-size:13px;white-space:nowrap}
.header-clock time{display:block;margin-top:2px;color:#0b2450;font-family:"Manrope","Inter",Arial,Helvetica,sans-serif;font-size:25px;font-weight:700;font-variant-numeric:tabular-nums}
.header-bell{position:relative;width:54px;height:54px;padding:8px;display:grid;place-items:center;overflow:visible}
.header-bell-icon{width:34px;height:38px;overflow:visible;fill:none;stroke:#092657;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.header-bell i{top:0;right:-3px;min-width:25px;height:25px;padding:0 5px;background:#ff4a62;border:2px solid #fff;font:700 12px/21px Arial,Helvetica,sans-serif}
.header-bell i:empty,.header-bell i[hidden]{display:none}
.dashboard-header .account>button{gap:12px;padding:2px 0}
.dashboard-header .account img{width:48px;height:48px}
.account-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.account-copy b{font:700 16px/1.15 "Manrope","Inter",Arial,Helvetica,sans-serif;color:#112657}
.account-copy small{font:400 13px/1.15 "Inter",Arial,Helvetica,sans-serif;color:#6f7d9f}
.account-chevron{width:21px;height:21px;margin-left:8px;fill:none;stroke:#112657;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.dashboard-header .account>button:hover .account-chevron{transform:translateY(2px)}

main .primary,main .outline,main .wine{border-radius:999px}
@media(max-width:1500px){.header-separator{margin:0 12px}.header-prayer{min-width:200px}.header-prayer img{width:54px}.header-clock{min-width:135px}.account-copy b{font-size:14px}}
@media(max-width:1230px){.header-prayer{min-width:auto}.header-prayer img{width:47px;height:50px}.header-prayer b{font-size:12px}.header-prayer strong{font-size:15px}.header-prayer small{font-size:11px}.header-clock{min-width:110px}.header-clock span{font-size:11px}.header-clock time{font-size:21px}.header-separator{margin:0 9px}.account-copy{display:none}}
@media(max-width:900px){.header-prayer{display:none}.header-prayer+.header-separator{display:none}.header-clock{min-width:104px}}
@media(max-width:760px){.dashboard-header{padding:9px 10px;border-top-width:2px}.dashboard-header .menu{margin-right:7px}.dashboard-header #global-search{height:42px;padding:0 13px}.dashboard-header #global-search svg{width:21px;height:21px}.dashboard-header .header-clock,.dashboard-header .header-clock+.header-separator,.dashboard-header #global-search+.header-separator{display:none}.dashboard-header .header-separator{height:34px;margin:0 6px}.dashboard-header .header-bell{display:grid;width:42px;height:42px}.dashboard-header .header-bell-icon{width:27px;height:30px}.dashboard-header .header-bell i{min-width:22px;height:22px;font-size:11px;line-height:18px}.dashboard-header .account img{width:38px;height:38px}.dashboard-header .account-chevron{display:none}}
@media(max-width:470px){.dashboard-header #global-search input::placeholder{color:transparent}.dashboard-header #global-search{flex:1 1 auto}.dashboard-header .header-bell+.header-separator{display:none}}
