/* ==========================================================================
   Page Accueil — QUAI 31
   ========================================================================== */

/* ---------- Recherche (en-tête accueil) ---------- */
/* Alignée sur la même colonne que la navigation (container-wide),
   sinon elle se colle au bord de l'écran sur les grands moniteurs. */
.recherche {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1340px;
  padding: 0 32px;
  display: flex;
  justify-content: flex-end;
  z-index: 110;
  pointer-events: none;
}
.recherche__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.recherche__loupe { color: var(--blanc); display: flex; }
.recherche__champ {
  width: 250px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--blanc);
  font-size: 14px;
}
.recherche__champ:focus { outline: none; border-color: var(--blanc); background: rgba(0, 0, 0, .18); }
.recherche__champ::placeholder { color: rgba(255, 255, 255, .75); }
.recherche__resultats {
  position: absolute;
  top: 38px; right: 0;
  width: 250px;
  background: var(--blanc);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.recherche__resultats li a {
  display: block;
  padding: 10px 14px;
  color: var(--brun);
  font-size: 14px;
}
.recherche__resultats li a:hover { background: var(--creme); }
.recherche__aucun { padding: 10px 14px; color: var(--gris-texte); font-size: 14px; }
.recherche__statut {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* La barre de recherche occupe le haut : la nav descend pour respirer (cf. Canva) */
.page-accueil .site-header { padding-top: 62px; }

/* ---------- Hero ---------- */
.hero--accueil { background-position: center; }
.hero--accueil::before { background: rgba(0, 0, 0, .27); }
.hero--accueil .hero__contenu { max-width: 980px; }
.hero__ondulations--accueil {
  background-image: url('../../img/accueil-ondulations-canva.png');
  background-position: center 58%;
  background-size: min(72vw, 920px);
  mix-blend-mode: screen;
  filter: invert(1) sepia(1) saturate(4) hue-rotate(345deg) brightness(3);
  opacity: .55;
}
.page-accueil .titre-hero {
  font-size: clamp(38px, 6.2vw, 80px);
  letter-spacing: .26em;
  text-indent: .26em;
}
.page-accueil .hero__texte { max-width: 760px; font-size: 17px; line-height: 1.28; margin-top: 24px; }
.hero--accueil .btn { min-width: 188px; padding: 8px 32px; }
/* plus spécifique que « .page-accueil .titre-hero », sinon il hérite de sa taille */
.page-accueil .titre-hero--sous {
  font-family: var(--font-titre);
  font-size: clamp(15px, 1.8vw, 24px);
  letter-spacing: .5em;
  text-indent: .5em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-top: 12px;
}

/* ---------- Pour qui ? ---------- */
.page-accueil > .section:first-of-type { padding: 72px 0 66px; }
.pourqui__texte { max-width: 1040px; color: var(--brun); font-size: 17px; line-height: 1.3; }
.monogram-centre { width: 60px; margin: 34px auto 0; }

/* ---------- Grilles de soins (libellé vertical + cadre de 3 cartes) ---------- */
.section--besoins { padding-top: 30px; }
.grille-soins {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: stretch;
}
.grille-soins__libelle {
  align-self: center;
  justify-self: center;
  color: var(--brun);
  font-size: 15px;
  letter-spacing: .3em;
  animation: entree-libelle .75s .15s ease-out both;
}
@keyframes entree-libelle {
  from { opacity: 0; transform: translateX(-18px) rotate(180deg); }
  to { opacity: 1; transform: translateX(0) rotate(180deg); }
}
.grille-soins__cadre {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border: 1px solid #b9b2aa;
  padding: 26px;
  background: var(--blanc);
}
.carte-soin {
  position: relative;
  aspect-ratio: 325 / 650;
  overflow: hidden;
  display: block;
}
.carte-soin__fond {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.carte-soin:hover .carte-soin__fond { transform: scale(1.04); }
.carte-soin::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .14);
}
.carte-soin__contenu {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc);
  padding: 20px;
}
.carte-soin__titre {
  font-family: var(--font-titre);
  font-size: clamp(14px, 1.45vw, 20px);
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.22;
  text-indent: .22em;
}
.carte-soin__monogram { width: 42px; margin: 20px auto 0; }

/* ---------- Soins supports oncologiques ---------- */
.section--onco { padding-top: 70px; }
.onco {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 60px;
  align-items: start;
}
.onco__paragraphe { margin-top: 26px; font-size: 16px; line-height: 1.32; color: var(--gris-texte); }
/* la maquette utilise une photo en portrait */
.onco__image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Citation fondatrices ---------- */
.citation-bloc { background: var(--gris-clair); padding: 0; }
.citation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1340px;
  padding: 0 0 0 40px;
}
.citation__corps {
  font-size: 17px;
  color: var(--gris-texte);
  text-align: justify;
  line-height: 1.35;
}
.citation__corps strong {
  font-weight: 400;
  background: linear-gradient(transparent 62%, rgba(200, 178, 108, .85) 62%);
}
.citation__guillemet {
  font-family: Georgia, serif;
  font-size: 34px;
  color: var(--brun);
  line-height: 0;
  vertical-align: -6px;
  margin-right: 6px;
}
.citation__guillemet--fin { margin-left: 6px; margin-right: 0; }
.citation__auteurs { margin-top: 34px; font-size: 16px; color: var(--brun-fonce); line-height: 1.3; }
.lien-souligne {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 1.5px solid currentColor;
  font-size: 16px;
  color: var(--brun-fonce);
}
.citation__photo img { width: 100%; height: 100%; object-fit: cover; max-height: 760px; }

/* ---------- Innovations ---------- */
.section--innovations { padding: 68px 0 38px; }
.section--innovations > .container > .titre-section { white-space: nowrap; font-size: clamp(18px, 2.25vw, 27px); }
.innovation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 30px;
  align-items: center;
}
.innovation__image img { width: 100%; max-height: 520px; object-fit: cover; }
.innovation__texte { padding-left: 30px; position: relative; z-index: 2; }
.innovation__image { position: relative; z-index: 1; }
.innovation__grand-titre {
  font-family: var(--font-titre);
  color: var(--brun);
  font-size: clamp(28px, 3.8vw, 48px);
  letter-spacing: .16em;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 34px -150px;
}
.innovation__grand-titre span { display: block; white-space: nowrap; }
.innovation__grand-titre--bas { text-transform: lowercase; letter-spacing: .22em; }
.innovation__sous-titre {
  font-family: var(--font-titre);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brun);
  margin-bottom: 18px;
}
.innovation__paragraphe { font-size: 16px; color: var(--gris-texte); }

/* ---------- 4 cartes solutions ---------- */
.grille-solutions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 40px;
}
.carte-solution {
  position: relative;
  aspect-ratio: 1 / 2;
  overflow: hidden;
  display: block;
}
.carte-solution::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .24);
  transition: background .35s;
}
.carte-solution:hover::before { background: rgba(0, 0, 0, .17); }
.carte-solution__fond {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.carte-solution:hover .carte-solution__fond { transform: scale(1.04); }
.carte-solution__contenu {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc);
  padding: 20px;
}
.carte-solution__titre {
  font-family: var(--font-titre);
  font-size: clamp(14px, 1.35vw, 19px);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.22;
  text-indent: .2em;
}
.carte-solution__monogram { width: 40px; margin: 26px auto 0; }

/* ---------- Témoignages (carrousel) ---------- */
.temoignages-bloc { padding: 60px 0 46px; }
.temoignages-bloc .titre-section { margin-bottom: 40px; }
.carrousel--temoignages { padding: 0 90px; }
.carrousel--temoignages .carrousel__piste { gap: 34px; }
.carrousel--temoignages .carrousel__slide {
  width: calc((100% - 68px) / 3);
  display: flex;
  flex-direction: column;
  padding: 30px 34px 26px;
  min-height: 300px;
}
.temoignage--blanc { background: var(--blanc); color: var(--gris-texte); }
.temoignage--beige { background: #d3c58e; color: var(--brun-fonce); }
.temoignage__monogram { width: 40px; margin: 0 auto 20px; }
.temoignage__texte { font-size: 15px; line-height: 1.32; text-align: center; }
.temoignage__auteur { margin-top: auto; padding-top: 18px; text-align: right; font-size: 15px; }

/* ---------- Une adresse intimiste ---------- */
.hero--adresse {
  min-height: 520px;
  overflow: hidden;
}
.hero--adresse .hero__contenu {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
.titre-hero--adresse {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing: .16em;
  text-indent: 0;
  white-space: nowrap;
  text-align: center;
}
.adresse__texte {
  color: var(--blanc);
  font-family: var(--font-texte);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 30px auto 34px;
  max-width: 700px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grille-solutions { grid-template-columns: repeat(2, 1fr); }
  .carrousel--temoignages { padding: 0 60px; }
  .carrousel--temoignages .carrousel__slide { width: calc((100% - 34px) / 2); }
}
@media (max-width: 860px) {
  .recherche {
    position: absolute;
    top: 30px;
    left: auto; right: 18px;
    transform: none;
    width: auto;
    max-width: none;
    padding: 0;
  }
  /* le champ se déploie vers la gauche pour rester dans l'écran */
  .recherche__form { flex-direction: row-reverse; gap: 8px; }
  .recherche__champ {
    flex: none;              /* sans ça, le champ est écrasé par le conteneur */
    width: 0;
    padding: 0;
    border-width: 0;
    opacity: 0;
    transition: width .3s, opacity .25s, padding .3s;
  }
  .recherche.est-ouverte .recherche__champ {
    width: min(58vw, 230px);
    padding: 0 12px;
    border-width: 1px;
    opacity: 1;
  }
  .recherche__resultats { width: min(62vw, 240px); top: 42px; }
  .grille-soins { grid-template-columns: 1fr; }
  .grille-soins__libelle { margin-bottom: 16px; }
  .grille-soins__libelle { animation-name: entree-libelle-mobile; }
  @keyframes entree-libelle-mobile {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .onco { grid-template-columns: 1fr; gap: 28px; }
  .besoins__libelle { position: static; transform: none; writing-mode: horizontal-tb; display: block; text-align: center; margin-bottom: 22px; }
  .grille-soins__cadre { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
  .citation { grid-template-columns: 1fr; gap: 0; padding: 40px 24px 0; }
  .citation__photo { margin: 34px -24px 0; }
  .innovation { grid-template-columns: 1fr; }
  .innovation__texte { padding: 26px 0 0; }
  .carrousel--temoignages { padding: 0 24px; }
  .carrousel--temoignages .carrousel__slide { width: 100%; }
  .carrousel--temoignages .carrousel__fleche { display: none; }
}
@media (max-width: 640px) {
  /* Le nowrap des grands titres est desktop uniquement */
  .page-accueil .titre-hero { white-space: normal; letter-spacing: .16em; text-indent: .16em; }
  .titre-hero--adresse { letter-spacing: .12em; white-space: normal; }
  .grille-soins__cadre { grid-template-columns: 1fr; }
  .grille-solutions { grid-template-columns: 1fr; }
  .adresse__texte { letter-spacing: .12em; }
  .hero__ondulations--accueil { background-size: 150vw; background-position: 60% center; }
  .section--innovations > .container > .titre-section { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .grille-soins__libelle { animation: none; }
}
