/* =========================================================
   Page d'accueil (blocs Elementor + classes CSS : accueil-bandeau, accueil-chiffres,
   accueil-une, accueil-profils, accueil-patho, accueil-annuaire, accueil-urgence)
   ========================================================= */

.home .elementor-section .elementor-container { max-width: var(--largeur); }
.home .elementor-section { padding-left: var(--gouttiere); padding-right: var(--gouttiere); }

/* Bandeau framboise : vagues des plaquettes + personnage du logo en filigrane */
.accueil-bandeau {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding-top: clamp(44px, 6vw, 84px) !important; padding-bottom: clamp(100px, 11vw, 150px) !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fbfbfd' d='M0 60C300 0 520 90 800 50S1250 0 1440 30V100H0Z'/%3E%3C/svg%3E") bottom / 100% clamp(50px, 8vw, 110px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 560' preserveAspectRatio='xMidYMid slice'%3E%3Cpath fill='%23fff' fill-opacity='.07' d='M0 120C240 40 420 200 720 150s420-170 720-90v480H0Z'/%3E%3Cpath fill='%23fff' fill-opacity='.08' d='M0 300c260-90 470 60 760 10s430-170 680-110v360H0Z'/%3E%3Cpath fill='%237a0f28' fill-opacity='.18' d='M900 0c120 120 330 150 540 90V0Z'/%3E%3C/svg%3E") center / cover no-repeat,
    linear-gradient(160deg, #e2425f 0%, var(--framboise) 45%, #b01f3e 100%) top / 100% calc(100% - 6px) no-repeat,
    var(--fond);
}
.accueil-bandeau::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: max(2vw, calc((100vw - var(--largeur)) / 2 - 20px)); top: -4%;
  width: clamp(130px, 15vw, 220px); aspect-ratio: 400 / 1000;
  background: url("../images/symbole.svg") center / contain no-repeat;
  filter: brightness(0) invert(1); opacity: .13;
}
.accueil-bandeau .elementor-widget-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; }
.accueil-bandeau .elementor-widget { width: 100%; margin: 0 !important; }
.accueil-bandeau .elementor-widget-button { width: auto; }
.accueil-surtitre p { display: inline-block; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .875rem; font-weight: 500; color: #fff; }
.accueil-bandeau h1.elementor-heading-title { font-family: var(--police-titre); font-weight: 500; color: #fff !important; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.1; letter-spacing: -0.022em; max-width: 22ch; margin: 4px 0 2px; }
.accueil-chapo p { font-size: clamp(1rem, .95rem + .25vw, 1.12rem); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 58ch; margin: 0 0 10px; }

/* Boutons : réponse immédiate à l'appui */
.bouton-plein .elementor-button, .bouton-verre .elementor-button {
  border-radius: 999px !important; padding: 12px 20px !important; font: 600 .92rem var(--police) !important;
  transition: transform .1s ease-out, background .2s !important;
}
.bouton-plein .elementor-button { background: #fff !important; color: var(--framboise-fonce) !important; }
.bouton-plein .elementor-button:hover { background: var(--framboise-pale) !important; }
.bouton-verre .elementor-button { background: rgba(255,255,255,.14) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.45) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bouton-verre .elementor-button:hover { background: rgba(255,255,255,.24) !important; }
.bouton-plein .elementor-button:active, .bouton-verre .elementor-button:active { transform: scale(.97); }
.accueil-annuaire .bouton-plein .elementor-button { background: var(--framboise) !important; color: #fff !important; }

/* Chiffres clés : une carte blanche qui chevauche la vague */
.accueil-chiffres { margin-top: calc(-1 * clamp(70px, 9vw, 120px)); position: relative; z-index: 2; }
.accueil-chiffres > .elementor-container { background: var(--blanc); border-radius: var(--rayon); border: var(--bord); padding: clamp(18px, 3vw, 34px) clamp(10px, 2vw, 20px); }
.accueil-chiffres .elementor-column + .elementor-column { border-left: 1px solid var(--ligne); }
.accueil-chiffres .elementor-widget-wrap { align-content: flex-start; }
/* Pictogramme au-dessus de chaque chiffre (bloc « Icône ») */
.chiffre-ico { margin-bottom: 12px !important; }
.chiffre-ico .elementor-icon-wrapper { text-align: center; line-height: 0; }
.chiffre-ico .elementor-icon { width: 52px; height: 52px; display: inline-grid !important; place-items: center; border-radius: 16px; background: var(--framboise-pale); color: var(--framboise) !important; fill: var(--framboise) !important; font-size: 22px !important; padding: 0 !important; }
.chiffre-ico .elementor-icon svg { width: 22px; height: 22px; }
.accueil-chiffres .elementor-column:nth-child(even) .chiffre-ico .elementor-icon { background: var(--vert-pale); color: var(--vert-fonce) !important; fill: var(--vert-fonce) !important; }
.accueil-chiffres .elementor-counter { text-align: center; align-items: center; padding: 0 clamp(8px, 1.6vw, 20px); }
.accueil-chiffres .elementor-counter-number-wrapper { justify-content: center !important; font-family: var(--police-titre) !important; font-weight: 500 !important; font-size: clamp(1.5rem, 1.15rem + 1vw, 2.1rem) !important; line-height: 1.1 !important; letter-spacing: -0.02em; color: var(--framboise) !important; }
.accueil-chiffres .elementor-counter-number-wrapper { flex-wrap: wrap; }
/* « + de » sur sa propre ligne, au-dessus : tous les nombres restent sur la même ligne */
.accueil-chiffres .elementor-counter-number-prefix { flex: 0 0 100% !important; text-align: center !important; font: 500 .8rem/1.4 var(--police); letter-spacing: .02em; min-height: 1.4em; margin-bottom: 2px; color: var(--gris); }
.accueil-chiffres .elementor-counter-title { text-align: center !important; font-family: var(--police) !important; font-size: .84rem !important; font-weight: 400 !important; line-height: 1.45 !important; color: var(--gris) !important; margin-top: 6px; }
.accueil-chiffres .elementor-counter-number-suffix { display: none; }

/* En-têtes de section : petit surtitre + titre, centrés */
.accueil-entete, .accueil-annuaire, .accueil-urgence { padding-top: clamp(56px, 7vw, 96px); }
.accueil-entete .elementor-widget-wrap, .accueil-patho .elementor-widget-wrap { text-align: center; }
.surtitre .elementor-heading-title { font: 600 .78rem/1.3 var(--police) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--framboise) !important; margin: 0 0 10px; }
.home h2.elementor-heading-title { font-family: var(--police-titre); font-weight: 500; color: var(--encre); font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.35rem); line-height: 1.1; letter-spacing: -0.024em; margin: 0 auto 30px; max-width: 24ch; }
.home .elementor-inner-section { padding-left: 0; padding-right: 0; }

/* À la une : slider des 3 actualités (code court [cerefcoeur_une]) */
.une-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: calc(var(--rayon) + 6px); text-align: center; }
.une-piste::-webkit-scrollbar { display: none; }
/* Les images à la une sont souvent des affiches avec du texte : l'image reste entière à gauche, le texte sur un panneau framboise à droite */
.une-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.45fr 1fr; overflow: hidden; color: #fff !important; text-decoration: none !important;
  background: linear-gradient(160deg, #e2425f 0%, var(--framboise) 45%, #a51f3b 100%); }
.une-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--framboise-pale); }
.une-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ressort); }
.une-slide:hover .une-img img { transform: scale(1.03); }
.une-texte { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(24px, 3.4vw, 48px); }
.une-texte h3 { font-family: var(--police-titre); font-weight: 500; font-size: clamp(1.35rem, 1rem + 1.1vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin: 0 0 12px; }
.une-texte p { color: rgba(255,255,255,.92); line-height: 1.6; margin: 0 auto 24px; max-width: 40ch; font-size: .95rem; }
.une-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--framboise-fonce); font-weight: 600; transition: background .3s, transform .1s; }
.une-slide:hover .une-bouton { background: var(--framboise-pale); }
.une-slide:active .une-bouton { transform: scale(.97); }
.une-points { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: start; /* les barres restent alignées même si un titre tient sur 2 lignes */ gap: clamp(10px, 2vw, 28px); margin-top: 22px; }
.une-points button { all: unset; cursor: pointer; display: block; min-width: 0; text-align: center; }
.une-points .barre { display: block; height: 4px; border-radius: 4px; background: rgba(0,0,0,.12); overflow: hidden; margin-bottom: 10px; }
.une-points .barre::after { content: ""; display: block; height: 100%; width: 0; background: var(--framboise); }
.une-points button[aria-current="true"] .barre::after { width: 100%; animation: une-plein 6s linear; }
@keyframes une-plein { from { width: 0; } to { width: 100%; } }
.une-points .titre { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--texte); transition: color .3s; } /* une seule ligne, coupée par « … » si le titre est long */
.une-points button[aria-current="true"] .titre { color: var(--framboise-fonce); font-weight: 600; }
.une-toutes { margin: clamp(24px, 3vw, 36px) 0 0; text-align: center; }
.une-toutes a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--framboise); color: var(--framboise-fonce); font-weight: 600; text-decoration: none; }
.une-toutes a:hover { background: var(--framboise-pale); }
@media (max-width: 860px) { .une-slide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .une-points .titre { display: none; } .une-points { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .une-piste { scroll-behavior: auto; } .une-points button[aria-current="true"] .barre::after { animation: none; } .une-img { transition: none; } }

/* Profils : trois grandes cartes cliquables en entier */
.accueil-profils > .elementor-container { gap: clamp(12px, 1.6vw, 20px); }
@media (min-width: 768px) { .accueil-profils > .elementor-container { flex-wrap: nowrap; } .accueil-profils > .elementor-container > .elementor-column { flex: 1 1 0; min-width: 0; } } /* les 3 cartes restent sur une ligne malgré l'espace entre elles */
.accueil-profils .elementor-column > .elementor-widget-wrap { position: relative; height: 100%; background: var(--blanc); border: var(--bord); border-radius: var(--rayon); padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px) !important; transition: transform .45s var(--ressort), border-color .45s var(--ressort); }
.accueil-profils .elementor-column > .elementor-widget-wrap:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--framboise) 35%, transparent); }
.accueil-profils .elementor-column > .elementor-widget-wrap:active { transform: scale(.985); transition-duration: .1s; }
.profil .elementor-icon-box-wrapper { text-align: center; }
.profil .elementor-icon-box-icon { margin-bottom: 18px !important; }
.profil .elementor-icon { width: 64px; height: 64px; display: inline-grid !important; place-items: center; border-radius: 20px; background: var(--framboise-pale); color: var(--framboise) !important; fill: var(--framboise) !important; font-size: 26px !important; padding: 0 !important; }
.profil .elementor-icon svg { width: 26px; height: 26px; }
.accueil-profils .elementor-column:nth-child(2) .profil .elementor-icon { background: var(--vert-pale); color: var(--vert-fonce) !important; fill: var(--vert-fonce) !important; }
.profil .elementor-icon-box-title { font-family: var(--police-titre); font-weight: 500; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px !important; }
.profil .elementor-icon-box-title a { color: var(--encre); }
.profil .elementor-icon-box-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); } /* toute la carte est cliquable */
.profil .elementor-icon-box-description { font-size: .95rem; line-height: 1.6; color: var(--gris); margin: 0; }

/* Pathologies : bande framboise, deux familles côte à côte (grand nombre, titre, exemples) */
.accueil-patho { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(44px, 5vw, 64px) !important; padding-bottom: clamp(44px, 5vw, 64px) !important; color: #fff; position: relative; isolation: isolate; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 560' preserveAspectRatio='xMidYMid slice'%3E%3Cpath fill='%23fff' fill-opacity='.06' d='M0 140C240 60 420 220 720 170s420-170 720-90v480H0Z'/%3E%3Cpath fill='%237a0f28' fill-opacity='.16' d='M0 380c260-90 470 60 760 10s430-170 680-110v280H0Z'/%3E%3C/svg%3E") center / cover no-repeat,
    linear-gradient(160deg, #e2425f 0%, var(--framboise) 50%, #b01f3e 100%); }
.accueil-patho .surtitre .elementor-heading-title { color: rgba(255,255,255,.8) !important; }
.accueil-patho h2.elementor-heading-title { color: #fff !important; }
.accueil-patho .elementor-inner-section > .elementor-container { max-width: 880px; gap: 16px; }
/* Deux cartes en verre : nombre et titre sur une ligne, exemples dessous */
.accueil-patho .famille > .elementor-widget-wrap { height: 100%; display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 10px; text-align: left; padding: 22px 24px !important; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--rayon); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.accueil-patho .famille > .elementor-widget-wrap > .elementor-widget { margin: 0 !important; width: auto; }
.accueil-patho .famille .elementor-widget-text-editor { grid-column: 1 / -1; }
.patho-nb .elementor-heading-title { font-family: var(--police-titre) !important; font-weight: 500 !important; font-size: 2.1rem !important; line-height: 1 !important; letter-spacing: -0.03em; color: #fff !important; margin: 0; }
.accueil-patho h3.elementor-heading-title { font-family: var(--police-titre); font-weight: 500; color: #fff !important; font-size: 1.1rem; line-height: 1.25; margin: 0; }
.accueil-patho .famille p { color: rgba(255,255,255,.82); line-height: 1.55; margin: 0; font-size: .9rem; text-align: left !important; }
.accueil-patho .elementor-widget-button { margin-top: 28px; }
.accueil-patho .bouton-plein .elementor-button:hover { background: var(--framboise-pale) !important; }

/* Boutons : texte centré, sans flèche */
.home .elementor-button .elementor-button-content-wrapper { justify-content: center; }
.home .elementor-button-icon { display: none; }

/* Annuaire : texte et carte de France côte à côte */
.accueil-annuaire > .elementor-container { background: linear-gradient(135deg, var(--vert-pale), #fff 70%); border: var(--bord); border-radius: var(--rayon); padding: clamp(28px, 4vw, 56px); align-items: center; }
.accueil-annuaire .annuaire-texte > .elementor-widget-wrap { text-align: center; align-content: center; padding-right: clamp(0px, 3vw, 40px) !important; }
.accueil-annuaire .surtitre .elementor-heading-title { color: var(--vert-titre) !important; }
.accueil-annuaire h2.elementor-heading-title { margin-bottom: 16px; }
.accueil-annuaire p { font-size: 1.05rem; line-height: 1.6; color: var(--texte); max-width: 46ch; margin: 0 auto 24px; }
.accueil-annuaire .bouton-plein .elementor-button { background: var(--framboise) !important; color: #fff !important; }
.accueil-annuaire .bouton-plein .elementor-button:hover { background: var(--framboise-fonce) !important; }
.carte-seule { display: block; max-width: 440px; margin: 0 auto; border-radius: var(--rayon-s); transition: transform .45s var(--ressort); }
.carte-seule:hover { transform: scale(1.02); }
.carte-seule .carte-france { width: 100%; height: auto; display: block; }
.carte-seule .pt { cursor: inherit; }

/* Actualités : message tant qu'il n'y en a pas */
.actus-vide { background: var(--blanc); border: 1px dashed rgba(0,0,0,.15); border-radius: var(--rayon); padding: 32px; text-align: center; color: var(--gris); }
.actus-vide p { margin: 0; }

/* Rappel discret : ce site ne remplace pas le médecin */
.accueil-urgence { padding-bottom: clamp(40px, 5vw, 64px); }
.accueil-urgence p { margin: 0; text-align: center !important; color: var(--gris); font-size: .92rem; line-height: 1.55; }

@media (max-width: 767px) {
  .accueil-chiffres .elementor-column + .elementor-column { border-left: 0; border-top: 1px solid var(--ligne); }
  .accueil-chiffres .elementor-column { padding: 14px 0; }
  .accueil-annuaire .annuaire-texte > .elementor-widget-wrap { padding-right: 0 !important; margin-bottom: 28px; }
  .accueil-bandeau::after { width: 100px; right: -10px; top: 8px; }
}
