@import url("/css/site-footer.css");

/*
 * Tchat-in-Love — système visuel principal
 * Référence : pages Notre expertise / Confiance / Engagements.
 */

:root {
  --wine: #7f0000;
  --wine-deep: #4f0008;
  --wine-bright: #aa1827;
  --ink: #242429;
  --ink-soft: #3f3b3e;
  --muted: #6f6b6d;
  --paper: #fbf8f6;
  --rose: #f6e9e7;
  --line: #eadfdb;
  --white: #ffffff;
  --gold: #d7ab69;
  --shadow: 0 24px 70px rgba(55, 24, 26, .13);
  --shadow-soft: 0 12px 38px rgba(55, 24, 26, .08);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--wine-bright); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(170, 24, 39, .28);
  outline-offset: 3px;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
}

/* Header partagé : même langage visuel que Notre expertise et le blog. */
.global-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(127, 0, 0, .08);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 28px rgba(45, 20, 22, .05);
  backdrop-filter: blur(10px);
}
.global-header__inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.global-brand { flex: 0 0 auto; }
.global-brand img { display: block; width: 230px; height: auto; }
.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-left: auto;
}
.global-nav a {
  position: relative;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--wine);
  transition: right .2s ease;
}
.global-nav a:hover::after,
.global-nav a.is-current::after { right: 0; }
.global-header__cta {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wine);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wine), var(--wine-bright));
  box-shadow: 0 13px 28px rgba(127, 0, 0, .22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.global-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(127, 0, 0, .3);
  color: #fff;
}

/* En-tête historique, aligné visuellement sur le header des pages de confiance. */
body:not(.legal-page):not(.login-page) > div[align="center"] {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 94px;
  padding: 10px max(24px, calc((100vw - 1200px) / 2)) 9px;
  border-bottom: 1px solid rgba(127, 0, 0, .08);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 28px rgba(45, 20, 22, .05);
  text-align: left;
  backdrop-filter: blur(10px);
}
body:not(.legal-page):not(.login-page) > div[align="center"] > img {
  display: inline-block;
  width: auto;
  max-width: min(300px, 82vw);
  height: 75px;
  object-fit: contain;
}

section { padding: 88px 0; }
section h2 {
  margin: 0 auto 34px;
  color: var(--ink) !important;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  text-align: center;
  text-transform: none;
}

/* Hero : image dating, message immédiat et formulaire prioritaire. */
#head-form { position: relative; padding: 0; }
#head-form .head-img,
#head-form .head-img-black {
  position: relative;
  min-height: 650px;
  padding: 72px 0 76px;
  overflow: hidden;
  background-color: #1d1b1e;
  background-image:
    linear-gradient(90deg, rgba(18, 15, 17, .82) 0%, rgba(18, 15, 17, .59) 42%, rgba(18, 15, 17, .38) 62%, rgba(79, 0, 8, .54) 100%),
    url("../img/head-bg.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
#head-form .head-img::before,
#head-form .head-img-black::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  right: -150px;
  top: -245px;
  border: 105px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
  pointer-events: none;
}
#head-form .head-img::after,
#head-form .head-img-black::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 330px;
  height: 330px;
  left: -190px;
  bottom: -230px;
  border-radius: 50%;
  background: rgba(127, 0, 0, .64);
  pointer-events: none;
}
#head-form .container { position: relative; z-index: 2; }
#head-form .row {
  display: flex;
  align-items: center;
  min-height: 500px;
}
#head-form .head-title {
  max-width: 610px;
  padding: 18px 36px 18px 0;
  text-align: left;
}
#head-form h1 {
  margin: 0 0 34px;
  padding: 0;
  color: #fff;
  font-size: clamp(48px, 5.3vw, 72px);
  font-weight: 830;
  line-height: .99;
  letter-spacing: -.052em;
  text-align: left;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .28);
  text-transform: none;
}
#head-form .pourcentages {
  display: flex;
  width: min(100%, 420px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(20, 17, 19, .46);
  backdrop-filter: blur(8px);
}
#head-form .pourcentages > div {
  width: 50%;
  padding: 19px 22px 17px;
  border-right: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
}
#head-form .pourcentages > div:last-child { border-right: 0; }
#head-form .pourcentages p { display: inline; margin: 0; color: #fff; }
#head-form .pourcentages p:first-child { margin-right: 8px; }
#head-form .pourcentages i { color: #fff; font-size: 22px; }
#head-form .pourcentages p:nth-child(2) {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
}
#head-form .pourcentages .little {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#head-form .form-head {
  position: relative;
  width: min(100%, 570px);
  min-width: 0;
  margin-left: auto;
  padding: 34px 38px 30px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 30px 90px rgba(17, 5, 8, .32);
  opacity: 1;
  backdrop-filter: blur(12px);
}
#head-form .form-head::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: -12px auto 22px;
  border-radius: 999px;
  background: var(--wine);
}
#head-form .form-head dt,
#head-form .form-head dd,
#head-form .form-head label,
#head-form .form-head .form-group { color: var(--ink); }
#head-form .form-head input[type="text"],
#head-form .form-head input[type="email"],
#head-form .form-head input[type="password"],
#head-form .form-head input[type="number"],
#head-form .form-head select,
#head-form .form-head .form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ded6d3;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
}
#head-form .form-head .input-group-addon {
  border-color: #ded6d3;
  border-radius: 9px 0 0 9px;
  background: var(--rose);
  color: var(--wine);
}
#head-form .form-head input:focus,
#head-form .form-head select:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(127, 0, 0, .08);
}
#head-form .form-head input[type="checkbox"] { accent-color: var(--wine); }
#head-form .form-head input[type="submit"],
#head-form .form-head button[type="submit"],
button#ez-register-form-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wine), var(--wine-bright));
  box-shadow: 0 13px 28px rgba(127, 0, 0, .25);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}
#head-form .form-head input[type="submit"]:hover,
#head-form .form-head button[type="submit"]:hover,
button#ez-register-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(127, 0, 0, .32);
}
#head-form .form-head #loguser {
  display: block;
  margin-top: 14px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

/* Bloc éditorial partagé entre la promesse et les profils. */
.community-proof {
  position: relative;
  z-index: 4;
  padding: 84px 0 92px;
  background: var(--paper);
}
.community-proof__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.community-proof__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}
.community-proof__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -52px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.community-proof__heading h2 {
  margin: 0;
  color: var(--ink) !important;
  font-size: clamp(36px, 4.7vw, 56px);
  line-height: 1.06;
  text-align: left;
}
.community-proof__heading > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
}
.community-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.community-proof__item {
  min-height: 235px;
  padding: 30px 27px;
  border-right: 1px solid var(--line);
}
.community-proof__item:last-child { border-right: 0; }
.community-proof__item > span {
  display: block;
  margin-bottom: 30px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.community-proof__item h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.community-proof__item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Communauté et cartes profils. */
#profils {
  position: relative;
  border: 0;
  background: var(--paper);
}
#profils > .container {
  width: min(1760px, calc(100% - 24px));
  max-width: none;
}
#profils > .container > .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-left: 0;
  margin-right: 0;
}
#profils > .container > .row > h2,
#profils > .container > .row > br,
#profils > .container > .row > #caruser,
#profils > .container > .row > div[style] { grid-column: 1 / -1; }
#profils > .container > .row > br { display: none; }
#profils > .container > .row > .col-md-3 {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}
#profils h2 { max-width: 850px; }
#profils #caruser {
  width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
#profils #caruser:empty { min-height: 88px; }
#profils #caruser .ptprelinker-containers-selector-default,
#profils #caruser .ptprelinker-content,
#profils #caruser .ptprelinker-content-inner,
#profils #caruser .tns-outer,
#profils #caruser .tns-inner {
  width: 100% !important;
  max-width: none !important;
}
#profils #caruser .ptprelinker-content-inner {
  padding: 0 !important;
  background: transparent !important;
}
#profils #caruser .tns-outer {
  overflow: hidden !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#profils #caruser .tns-inner {
  overflow: hidden !important;
}
#profils #caruser .ptprelinker-item {
  width: 340px !important;
}
#profils #caruser .ptprelinker-item > a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(53, 27, 29, .11);
  transition: transform .22s ease, box-shadow .22s ease;
}
#profils #caruser .ptprelinker-item > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(53, 27, 29, .16);
}
#profils #caruser .ptprelinker-item-picture {
  border-radius: 16px !important;
}
#profils #caruser .ptprelinker-item-img {
  display: block;
  width: 100% !important;
  height: 245px !important;
  border-radius: 0 !important;
  object-fit: cover;
}
#profils #caruser .ptprelinker-item-bottom {
  min-height: 55px;
  padding: 6px 12px !important;
  justify-content: center;
  border-top: 1px solid var(--line);
  font-size: 15px !important;
  line-height: 1.35;
}
#profils #caruser .ptprelinker-item-bottom--login {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}
#profils #caruser .ptprelinker-item-bottom--location {
  margin-top: 3px;
  color: var(--wine) !important;
  font-size: 13px !important;
}
#profils #caruser img,
#profils .tns-item img {
  border-radius: 13px;
  transition: transform .25s ease, opacity .25s ease;
}
#profils #caruser img:hover,
#profils .tns-item img:hover { transform: translateY(-3px); opacity: .94; }

.profils-widgets {
  min-height: 100%;
  height: 100%;
  margin-bottom: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(53, 27, 29, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.profils-widgets:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(53, 27, 29, .12);
}
.profils-widgets .thumbs > div {
  display: flex;
  min-height: 410px;
  height: auto !important;
  margin: 0 !important;
  padding: 8px !important;
  flex-direction: column;
}
.profils-widgets .thumbs img.blrimg {
  width: 142px;
  height: 142px;
  border: 5px solid var(--rose);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(55, 24, 26, .12);
}
.profils-widgets .pseudombr { margin: 16px 0 13px; color: var(--ink); font-size: 18px; font-weight: 800; }
.profils-widgets ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  list-style: none;
  text-align: left;
}
.profils-widgets li { margin-bottom: 6px; }
.profils-widgets li i { width: 24px; color: var(--wine); text-align: center; }
.profils-widgets hr { border-color: var(--line); }

#profils > .container > .row > div[style]:not(.profiles-group) {
  max-width: 860px !important;
  margin: 0 auto 42px !important;
  padding: 34px 38px !important;
  border: 1px solid var(--line);
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--shadow-soft);
}
#profils > .container > .row > div[style]:not(.profiles-group) p { color: var(--ink-soft) !important; }
#profils > .container > .row > div[style]:not(.profiles-group) > div[style] {
  padding: 18px 20px !important;
  border-left: 4px solid var(--wine) !important;
  border-radius: 0 10px 10px 0 !important;
  background: var(--rose) !important;
}

/* Groupes de profils des pages d'affinités : pleine largeur, sans encart contraint. */
#profils > .container > .row > .profiles-group,
#profils > .container > .row > div[style]:has(> .col-md-3) {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: none !important;
  margin: 0 0 48px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
}
#profils > .container > .row > .profiles-group > h2,
#profils > .container > .row > .profiles-group > p,
#profils > .container > .row > div[style]:has(> .col-md-3) > h2,
#profils > .container > .row > div[style]:has(> .col-md-3) > p {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
#profils > .container > .row > .profiles-group > p,
#profils > .container > .row > div[style]:has(> .col-md-3) > p {
  margin-bottom: 4px !important;
  color: var(--ink-soft) !important;
  text-align: center;
}
#profils > .container > .row > .profiles-group > .col-md-3,
#profils > .container > .row > div[style]:has(> .col-md-3) > .col-md-3 {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

/* Sections éditoriales. */
#featured {
  padding: 92px 0 !important;
  border: 0 !important;
  background: #fff !important;
}
#featured:nth-of-type(even) { background: var(--rose) !important; }
#featured .content-wrapper { max-width: 1080px; margin: 0 auto; }
#featured .content-wrapper > h2 { max-width: 900px; }
#featured .content-wrapper > p {
  max-width: 890px;
  margin: 0 auto 28px;
  color: var(--muted) !important;
  font-size: 18px !important;
  text-align: center;
}
#featured .content-wrapper > .row { display: flex; flex-wrap: wrap; }
#featured .content-wrapper > .row > [class*="col-"] { margin-bottom: 22px; }
#featured .content-wrapper > .row > [class*="col-"] > div[style] {
  min-height: 100%;
  padding: 30px !important;
  border: 1px solid var(--line);
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 35px rgba(53, 27, 29, .065) !important;
}
#featured .content-wrapper h3 {
  color: var(--ink) !important;
  font-size: 23px !important;
  line-height: 1.22;
  text-transform: none;
}
#featured .content-wrapper h3 i { color: var(--wine) !important; }
#featured .content-wrapper h4 { color: var(--ink) !important; }
#featured .content-wrapper p,
#featured .content-wrapper li { color: var(--muted); }
#featured .content-wrapper > h3 {
  margin-top: 55px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--line) !important;
  text-align: left;
}
#featured .content-wrapper ol {
  max-width: 820px;
  margin: 25px auto;
  padding: 0;
  list-style: none;
  counter-reset: feature-step;
}
#featured .content-wrapper ol li {
  position: relative;
  margin-bottom: 12px;
  padding: 17px 20px 17px 62px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
#featured .content-wrapper ol li::before {
  counter-increment: feature-step;
  content: "0" counter(feature-step);
  position: absolute;
  left: 20px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
#featured .content-wrapper > div[style*="border-left"] {
  padding: 27px 30px !important;
  border-left: 5px solid var(--wine) !important;
  border-radius: 0 14px 14px 0 !important;
  background: var(--rose) !important;
}
#featured .content-wrapper > div[style*="text-align:center"] {
  margin-top: 48px !important;
  padding: 39px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #242126, var(--wine-deep)) !important;
  color: #fff;
}
#featured .content-wrapper > div[style*="text-align:center"] h3,
#featured .content-wrapper > div[style*="text-align:center"] p { color: #fff !important; }
#featured .content-wrapper a[href="#top"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 27px !important;
  border: 1px solid #fff;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 13px 30px rgba(40, 0, 5, .2);
  color: var(--wine) !important;
  font-size: 14px;
  font-weight: 800;
}
#featured div[align="center"] { color: var(--muted); }
#featured div[align="center"] img { width: min(250px, 70vw); }

/* Affinités. */
.cats {
  display: inline-flex;
  float: none;
  min-height: 45px;
  margin: 5px;
  padding: 9px 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(53, 27, 29, .05);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.cats:hover { transform: translateY(-2px); border-color: rgba(127, 0, 0, .35); }
.cats a { color: var(--ink); text-decoration: none; }

/* Pied de page commun des pages historiques. */
footer {
  padding: 62px 0 24px !important;
  border-top: 4px solid var(--wine);
  background: #1e1d20 !important;
  color: #aaa2a5 !important;
}
footer .container { width: min(1120px, calc(100% - 40px)); }
footer .container::before {
  content: "";
  display: block;
  width: 235px;
  height: 80px;
  margin: 0 auto 34px;
  border-radius: 11px;
  background: #fff url("../img/logo.png") center / 215px auto no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}
footer .container > .row:first-child .col-md-12 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px !important;
}
footer .container > .row:first-child h4 { width: 100%; margin: 0 0 14px !important; }
footer .container > .row:first-child a {
  display: inline-flex;
  min-height: 40px;
  margin: 0 !important;
  padding: 0 15px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  transition: background .18s ease, border-color .18s ease;
}
footer .container > .row:first-child a:hover {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}
footer .container > .row:last-child .col-md-12 {
  padding: 28px 34px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}
footer h4 { color: #fff !important; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
footer a { color: #bdb6b8 !important; font-size: 14px; text-decoration: none; }
footer a:hover { color: #fff !important; text-decoration: underline; }
footer hr { border-color: rgba(255, 255, 255, .09) !important; }
footer p { color: #938c8f !important; }

/* Pages légales : contenu inchangé, lecture modernisée. */
body.legal-page {
  padding: 48px 20px;
  background:
    radial-gradient(circle at 90% 0, rgba(127, 0, 0, .24), transparent 28%),
    linear-gradient(135deg, #211f22 0, #171518 310px, var(--paper) 310px);
}
body.legal-page .global-header {
  margin: -48px -20px 48px;
}
body.legal-page > div[align="center"] {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 58px clamp(24px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  text-align: left !important;
}
body.legal-page h1 {
  max-width: 820px;
  margin: 0 0 48px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
}
body.legal-page h2 {
  margin: 43px 0 15px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 27px;
}
body.legal-page h3 { margin: 28px 0 10px; color: var(--wine); font-size: 19px; }
body.legal-page table {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
}
body.legal-page th, body.legal-page td { padding: 13px 15px; border-color: var(--line); }
body.legal-page th { background: var(--rose); color: var(--ink); }

/* Connexion : le script partenaire reste inchangé. */
body.login-page {
  min-height: 100vh;
  padding: 55px 20px;
  background:
    linear-gradient(90deg, rgba(19, 16, 18, .84), rgba(79, 0, 8, .7)),
    url("../img/head-bg.jpg") center / cover fixed;
}
body.login-page .global-header {
  margin: -55px -20px 55px;
}
body.login-page > div[align="center"] {
  width: min(650px, 100%);
  margin: 0 auto;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 30px 90px rgba(17, 5, 8, .34);
}
body.login-page h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 51px); line-height: 1.08; }
body.login-page p { color: var(--muted); }
body.login-page input, body.login-page select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
body.login-page button, body.login-page input[type="submit"] {
  min-height: 52px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wine), var(--wine-bright));
  color: #fff;
  font-weight: 800;
}

.clear { clear: both; }
.imgtt { width: 100%; height: 100%; }
.remote-tooltip { display: none !important; }

@media (max-width: 1359px) {
  #profils > .container > .row > .profiles-group,
  #profils > .container > .row > div[style]:has(> .col-md-3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .global-header__inner { flex-wrap: wrap; padding: 14px 0; gap: 15px 25px; }
  .global-nav { order: 3; width: 100%; }
  .global-header__cta { margin-left: auto; }
  section { padding: 72px 0; }
  #head-form .head-img,
  #head-form .head-img-black { min-height: 0; padding: 62px 0 66px; }
  #head-form .row { display: block; min-height: 0; }
  #head-form .head-title { max-width: 760px; margin: 0 auto 34px; padding: 0; text-align: center; }
  #head-form h1 { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
  #head-form .pourcentages { margin: 0 auto; }
  #head-form .form-head { margin: 0 auto; }
  #featured .content-wrapper > .row { display: block; }
  .community-proof__heading { grid-template-columns: 1fr; gap: 20px; }
  .community-proof__eyebrow { margin: 0 0 -8px; }
  .community-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-proof__item:nth-child(2) { border-right: 0; }
  .community-proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  #profils > .container > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #profils > .container > .row > .profiles-group,
  #profils > .container > .row > div[style]:has(> .col-md-3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  section { padding: 60px 0; }
  section h2 { margin-bottom: 27px; font-size: 34px; }
  .global-header__inner { justify-content: center; }
  .global-brand img { width: 210px; }
  .global-header__cta { margin-left: 0; }
  .global-nav { gap: 11px 20px; flex-wrap: wrap; }
  .global-nav a { font-size: 11px; }
  body:not(.legal-page):not(.login-page) > div[align="center"] { text-align: center; }
  #head-form .head-img,
  #head-form .head-img-black {
    padding: 52px 0 55px;
    background-position: 36% center;
  }
  #head-form h1 { font-size: clamp(39px, 11vw, 54px); }
  #head-form .form-head { padding: 28px 22px 24px; border-radius: 16px; }
  #head-form .pourcentages > div { padding: 15px; text-align: center; }
  #profils > .container > .row > div[style] { padding: 25px !important; }
  #featured { padding: 65px 0 !important; }
  #featured .content-wrapper > div[style*="text-align:center"] { padding: 29px 23px !important; }
  .community-proof { padding: 65px 0 70px; }
  .community-proof__heading h2 { font-size: 38px; }
  .community-proof__grid { grid-template-columns: 1fr; }
  .community-proof__item { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .community-proof__item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .community-proof__item:last-child { border-bottom: 0; }
  #profils > .container { width: calc(100% - 16px); }
  #profils > .container > .row { grid-template-columns: 1fr; }
  #profils #caruser { padding: 14px 10px; }
  #profils #caruser .ptprelinker-item {
    width: 280px !important;
  }
  #profils > .container > .row > .profiles-group,
  #profils > .container > .row > div[style]:has(> .col-md-3) { grid-template-columns: 1fr; gap: 22px; }
  footer a { display: inline-block; margin: 7px 9px !important; }
  body.legal-page { padding: 20px 12px; }
  body.legal-page .global-header { margin: -20px -12px 28px; }
  body.legal-page > div[align="center"] { padding: 38px 22px; border-radius: 14px; }
  body.login-page { padding: 24px 12px; }
  body.login-page .global-header { margin: -24px -12px 28px; }
  body.login-page > div[align="center"] { padding: 35px 22px; }
}

@media (max-width: 420px) {
  .global-header__inner { width: min(100% - 28px, 1200px); flex-direction: column; }
  .global-header__cta { width: 100%; }
  .global-nav { justify-content: center; }
  #head-form .pourcentages { border-radius: 12px; }
  #head-form .pourcentages p:nth-child(2) { font-size: 20px; }
  #head-form .pourcentages i { font-size: 18px; }
  #head-form .form-head { padding-left: 16px; padding-right: 16px; }
  #featured .content-wrapper ol li { padding-left: 54px; }
  .community-proof__inner { width: min(100% - 28px, 1120px); }
  .community-proof__heading h2 { font-size: 34px; }
  #profils > .container > .row { grid-template-columns: 1fr; }
  .profils-widgets ul { grid-template-columns: 1fr; }
  footer .container { width: min(100% - 28px, 1120px); }
  footer .container > .row:last-child .col-md-12 { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
