/* ==========================================================================
   Page vitrine /pro (StudyCare PRO) — reproduction fidèle du live.
   Sections construites : header PRO · hero · carrousel « solutions ».
   (Sections suivantes ajoutées au fur et à mesure.)
   ========================================================================== */
body { background: #f6f7fb; }
/* Mot en dégradé (bleu → magenta), réutilisé dans les titres. */
.text-gradient {
  background: linear-gradient(90deg, var(--c-blue), var(--c-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Header : badge PRO + bouton "particulier" en magenta ---- */
.brand__pro-badge {
  align-self: center; padding: 3px 8px; border-radius: 6px;
  background: var(--c-blue-deep); color: #fff;
  font-size: .62rem; font-weight: var(--fw-bold); letter-spacing: .06em;
}
.btn--outline-pink { background: #fff; border: 1.5px solid var(--c-primary); color: var(--c-primary); }
.btn--outline-pink:hover { background: var(--c-primary-soft); }

/* =====================================================================
   HERO
   ===================================================================== */
.pro-hero {
  position: relative; overflow: hidden; text-align: center;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(46% 42% at 100% 58%, rgba(74, 92, 240, .30), transparent 70%),
    radial-gradient(40% 40% at 0% 62%, rgba(170, 120, 228, .28), transparent 72%),
    #f6f7fb;
}
.pro-hero__title { font-size: var(--fs-hero); font-weight: var(--fw-bold); color: var(--c-heading); line-height: 1.1; }
.pro-hero__sub { margin: var(--sp-5) auto 0; max-width: 720px; font-size: var(--fs-lg); color: var(--c-body); line-height: 1.5; }
.pro-hero .btn { margin-top: var(--sp-6); }
.pro-hero__mockup { margin-top: clamp(2rem, 5vw, 3.5rem); }
.pro-hero__mockup img { display: block; width: min(1000px, 94%); margin: 0 auto; border-radius: 12px; filter: drop-shadow(0 24px 50px rgba(20, 30, 70, .22)); }

/* =====================================================================
   SOLUTIONS (intro + carrousel horizontal)
   ===================================================================== */
.pro-solutions { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pro-solutions__grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.pro-solutions__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--c-heading); line-height: 1.15; }
.pro-solutions__sub { margin-top: var(--sp-4); color: var(--c-body); line-height: 1.5; }

.pro-solutions__viewport { position: relative; min-width: 0; }
.pro-solutions__track {
  display: flex; gap: var(--sp-4); overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 4px var(--sp-3);
  scrollbar-width: none;
}
.pro-solutions__track::-webkit-scrollbar { display: none; }

.sol-card {
  flex: 0 0 clamp(210px, 23vw, 285px); scroll-snap-align: start;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.sol-card__media { height: clamp(300px, 34vw, 420px); }
.sol-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sol-card__title { text-align: center; font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--c-heading); padding: var(--sp-4) var(--sp-3); }

.pro-solutions__next {
  position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--c-heading); box-shadow: var(--shadow-md);
  display: grid; place-items: center; z-index: 2;
}
.pro-solutions__next:hover { color: var(--c-primary); }

/* =====================================================================
   MOINS D'ADMINISTRATIF (comparatif Avant / Avec)
   ===================================================================== */
.pro-compare__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--c-heading); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
/* Le fond du panneau bascule : navy en « Avant », blanc en « Avec » (piloté par JS). */
.pro-compare__panel { padding-block: clamp(2rem, 5vw, 3.5rem); transition: background .3s ease; }
.pro-compare__panel[data-view="avant"] { background: #2f3a4c; }
.pro-compare__panel[data-view="avec"] { background: #f4f6fb; }

.pro-compare__toggle { display: inline-flex; gap: 4px; background: #fff; border-radius: var(--r-pill); padding: 6px; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 6px 20px rgba(15, 20, 40, .18); }
.pro-compare__toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 12px 26px; border-radius: var(--r-pill);
  font-family: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-heading);
  transition: background .15s ease, color .15s ease;
}
.pro-compare__toggle button.is-active { color: #fff; }
.pro-compare__toggle button[data-view="avant"].is-active { background: var(--c-blue); }
.pro-compare__toggle button[data-view="avec"].is-active { background: var(--c-primary); }

.bento[hidden] { display: none; }
/* Damier 3 colonnes (bleu/image/bleu · image/bleu/image), comme le live.
   L'animation rejoue à chaque bascule Avant/Avec (le bloc passe de hidden à visible). */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; animation: bentoIn .38s ease both; }
@keyframes bentoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bento__item { border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.bento__item--blue, .bento__item--cream { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 2.4vw, 2.2rem); }
.bento__item--blue { background: var(--c-blue); color: #fff; }
.bento__item--cream { background: #fdf3e3; color: var(--c-heading); }
.bento__item--blue h3, .bento__item--cream h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: var(--fw-bold); line-height: 1.15; }
.bento__item--blue h3 { color: #fff; }              /* titres blancs sur les cartes bleues */
.bento__item--cream h3 { color: var(--c-heading); }
.bento__item--blue p { margin-top: var(--sp-4); font-size: var(--fs-xs); line-height: 1.5; color: rgba(255,255,255,.92); }
.bento__item--cream p { margin-top: var(--sp-4); font-size: var(--fs-xs); line-height: 1.5; color: var(--c-body); }
.bento__item--img { position: relative; min-height: clamp(300px, 30vw, 460px); }
.bento__item--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bento__cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: var(--sp-5) var(--sp-4);
  color: #fff; font-size: var(--fs-xs); line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);   /* lisibilité sans boîte noire (comme le live) */
}
.bento__cap--top { top: 0; bottom: auto; }
.bento__cap-stat { display: block; font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: var(--fw-bold); margin-bottom: 4px; }

/* =====================================================================
   POURQUOI NOUS CHOISIR
   ===================================================================== */
.pro-why { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pro-why__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--c-heading); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.pro-why__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.pro-why__row:last-child { margin-bottom: 0; }
.pro-why__row--reverse .pro-why__text { order: 2; }
.pro-why__row--reverse .pro-why__media { order: 1; }
.pro-why__text h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: var(--fw-bold); color: var(--c-heading); }
.pro-why__list { list-style: none; margin: var(--sp-5) 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.pro-why__list li { position: relative; padding-left: 2.3rem; color: var(--c-body); line-height: 1.45; }
.pro-why__list li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--c-primary-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD1F8B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / .85rem no-repeat;
}
.pro-why__list strong { color: var(--c-heading); font-weight: var(--fw-semibold); }
.pro-why__media img { width: 100%; height: auto; display: block; border-radius: 14px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .pro-solutions__grid { grid-template-columns: 1fr; }
  .pro-solutions__next { display: none; }
  .bento { grid-template-columns: 1fr; }
  .pro-why__row, .pro-why__row--reverse .pro-why__text, .pro-why__row--reverse .pro-why__media { grid-template-columns: 1fr; order: 0; }
}

/* =====================================================================
   SÉCURITÉ (RGPD / HDS)
   ===================================================================== */
.pro-secu { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pro-secu__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--c-heading); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.pro-secu__panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(140, 130, 220, .18);
  background:
    radial-gradient(38% 60% at 12% 18%, rgba(170, 120, 228, .28), transparent 70%),
    radial-gradient(42% 70% at 96% 92%, rgba(120, 140, 240, .24), transparent 72%),
    #f7f6fc;
}
.pro-secu__cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.secu-card {
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 12px 30px rgba(60, 50, 120, .08);
}
.secu-card__ico { margin-bottom: var(--sp-4); }
.secu-card__ico img { width: 64px; height: 64px; display: block; }
.secu-card__title { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: var(--fw-semibold); color: var(--c-heading); }
.secu-card__sub { color: var(--c-primary); font-weight: var(--fw-medium); margin-top: 4px; }
.secu-card p:not(.secu-card__sub) { margin-top: var(--sp-4); color: var(--c-body); line-height: 1.5; }

/* =====================================================================
   TÉMOIGNAGE
   ===================================================================== */
.pro-testi { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pro-testi__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pro-testi__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: var(--fw-bold); color: var(--c-heading); line-height: 1.15; }
.pro-testi__author { margin-top: var(--sp-5); color: var(--c-body); }
.pro-testi .btn { margin-top: var(--sp-6); }
.pro-testi__video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.pro-testi__video #youtube-player, .pro-testi__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pro-testi__video iframe { pointer-events: none; }         /* clics captés par l'overlay */
.pro-testi__video-overlay { position: absolute; inset: 0; z-index: 10; cursor: pointer; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.pro-contact { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pro-contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pro-contact__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--c-heading); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.pro-contact__form { display: flex; flex-direction: column; gap: var(--sp-4); }
.pro-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.pro-contact__form .input { border-radius: 14px; padding: 15px 18px; }
.pro-contact__textarea { resize: vertical; min-height: 150px; border-radius: 18px; }
.pro-contact__consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--c-body); line-height: 1.4; }
.pro-contact__consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--c-primary); }
.pro-contact__submit {
  margin-top: var(--sp-2); padding: 15px 20px; border: 0; border-radius: 14px;
  font-family: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: #fff; background: var(--c-blue-deep); cursor: pointer; transition: background .15s ease;
}
.pro-contact__submit:hover:not(:disabled) { background: #021f6b; }
.pro-contact__submit:disabled { background: #e9ebf0; color: #9aa0a6; cursor: not-allowed; }
.pro-contact__msg { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: var(--fs-xs); }
.pro-contact__msg.is-ok { background: #e7f7ef; color: #127a4e; }
.pro-contact__msg.is-error { background: var(--c-danger-bg); color: #b42318; }
.pro-contact__photo img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; border-radius: 20px; display: block; }

/* =====================================================================
   FAQ
   ===================================================================== */
.pro-faq { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pro-faq__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--c-heading); margin-bottom: clamp(2rem, 5vw, 3rem); }
.pro-faq__grid { columns: 2; column-gap: var(--sp-4); }
.faq-item { background: #F7F7F7; border-radius: 14px; padding: var(--sp-4) var(--sp-5); break-inside: avoid; margin-bottom: var(--sp-4); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); font-weight: var(--fw-semibold); color: var(--c-heading); font-size: var(--fs-body); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "›"; font-size: 1.5rem; line-height: 1; color: var(--c-muted); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-item p { margin: var(--sp-4) 0 0; color: var(--c-body); line-height: 1.5; font-size: var(--fs-xs); }
.faq-item ul { margin: var(--sp-3) 0 0; padding-left: 1.2rem; color: var(--c-body); font-size: var(--fs-xs); line-height: 1.5; }
.faq-item li { margin-bottom: 4px; }

@media (max-width: 860px) {
  .pro-testi__grid, .pro-contact__grid { grid-template-columns: 1fr; }
  .pro-contact__row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pro-secu__cards { grid-template-columns: 1fr; }
  .pro-faq__grid { columns: 1; }
}
