/* ═══════════════════════════════════════════════════════════════
   AquaBobble — Prestations (shared)
   CSS mutualisé pour toutes les pages prestations + listings
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════ HERO COMPACT ═══════════ */
.presta-hero {
    position: relative;
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: calc(var(--space-4xl) + 40px);
    background: var(--color-primary-dark) var(--presta-hero-bg, url('/wp-content/uploads/2026/04/image-plongeurs.webp')) center/cover no-repeat;
    overflow: hidden;
}
.presta-hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--color-primary-dark) 90%, transparent) 0%,
        color-mix(in srgb, var(--color-primary) 72%, transparent) 55%,
        color-mix(in srgb, var(--color-primary-light) 58%, transparent) 100%
    );
}
.presta-hero__bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.25;
}
.presta-hero__content {
    position: relative; z-index: 2;
}
.presta-hero__badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs); font-weight: var(--weight-semibold);
    color: var(--color-accent-light);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}
.presta-hero__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    color: var(--color-white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
    max-width: 48ch;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.presta-hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.88);
    line-height: var(--leading-loose);
    max-width: 55ch;
    margin-bottom: var(--space-xl);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.presta-hero__meta {
    display: flex; flex-wrap: wrap; gap: var(--space-lg);
}
.presta-hero__meta-item {
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: var(--text-sm); color: var(--color-accent-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.presta-hero__meta-item svg {
    flex-shrink: 0;
}
.presta-hero__meta-item strong {
    color: var(--color-accent-light);
}

/* ── Logos certifications (hero) — inline à droite du badge ── */
.presta-hero__head {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.presta-hero__head .presta-hero__badge {
    margin-bottom: 0;
}
.presta-hero__logos {
    display: inline-flex;
    align-items: center;
    gap: 1.5em;
    margin: 0;
}
.presta-hero__logo {
    height: 2.8em;
    width: auto;
    max-width: 9em;
    background: var(--color-white);
    padding: 0.45em 0.75em;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* Le logo PADI E-Learning a du texte blanc → fond foncé pour lisibilité */
.presta-hero__logo--elearning {
    background: var(--color-primary-dark);
}

/* ═══════════ BREADCRUMB ═══════════ */
.presta-breadcrumb {
    padding-block: var(--space-md) 0;
    font-size: var(--text-sm);
    color: var(--color-text-light);
}
.presta-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}
.presta-breadcrumb a:hover {
    text-decoration: underline;
}
.presta-breadcrumb__sep {
    margin-inline: 0.4em;
    opacity: 0.5;
}

/* ═══════════ SECTIONS ═══════════ */
.presta-section {
    padding-block: var(--space-2xl);
}
.presta-section--light {
    background: var(--color-light);
}
.presta-section--dark {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}
.presta-section__header {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}
.presta-section__header:first-child,
.presta-quote + .presta-section__header {
    margin-top: 0;
}
.presta-section__title {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    margin-bottom: var(--space-xs);
}
.presta-section--dark .presta-section__title {
    color: var(--color-white);
}

/* ═══════════ CONTENT GRID ═══════════ */
.presta-grid {
    display: grid;
    grid-template-columns: 1fr 20rem;
    gap: var(--space-3xl);
    align-items: start;
}

/* ═══════════ SIDEBAR / KEY INFO ═══════════ */
.presta-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; gap: var(--space-md);
}
.presta-sidebar__item {
    display: flex; flex-direction: column; gap: var(--space-xs);
}
.presta-sidebar__label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    font-weight: var(--weight-semibold);
}
.presta-sidebar__value {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--color-text);
}
.presta-sidebar__price {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}
.presta-sidebar__cta {
    margin-top: var(--space-sm);
}
.presta-sidebar__divider {
    height: 1px;
    background: var(--color-border-light);
}

/* ═══════════ QUOTE / ACCROCHE ═══════════ */
.presta-quote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xl);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text);
    line-height: var(--leading-loose);
}

/* ═══════════ PRICING CARDS ═══════════ */
.presta-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}
.pricing-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}
/* Pas d'animation au survol et pas de highlight pour la moins chère :
   toutes les cards ont le même style neutre (demande Emmanuel mai 2026).
   La classe .pricing-card--highlight est conservée dans le HTML mais
   neutralisée ici pour ne rien péter. */
.pricing-card__label {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    font-weight: var(--weight-medium);
}
.pricing-card__price {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}
.pricing-card__price small {
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
}
.pricing-card__unit {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}
.pricing-card__note {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

/* ═══════════ INCLUDES LIST ═══════════ */
.presta-list {
    list-style: none;
    display: flex; flex-direction: column; gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.presta-list__item {
    display: flex; align-items: flex-start; gap: var(--space-sm);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
}
.presta-list__icon {
    flex-shrink: 0;
    width: 1.25em; height: 1.25em;
    margin-top: 0.15em;
}
.presta-list__icon--check { color: var(--color-accent); }
.presta-list__icon--cross { color: #C0392B; }

/* ═══════════ CONTENT PROSE ═══════════ */
.presta-prose {
    margin-bottom: var(--space-md);
}
.presta-prose p {
    color: var(--color-text);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-md);
}
.presta-prose strong {
    color: var(--color-text);
    font-weight: var(--weight-semibold);
}
.presta-prose h2,
.presta-prose h3 {
    font-size: var(--text-xl);
    color: var(--color-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}
.presta-prose ul {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}
.presta-prose li {
    color: var(--color-text);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-xs);
}
.presta-prose a {
    color: var(--color-primary);
}

/* ═══════════ CTA BOTTOM ═══════════ */
.presta-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-4xl) var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
}
.presta-cta__bubbles {
    position: absolute; inset: 0; pointer-events: none;
}
.presta-cta__bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
}
.presta-cta__bubble--1 { width: 6rem; height: 6rem; top: -1.5rem; left: 8%; }
.presta-cta__bubble--2 { width: 3.5rem; height: 3.5rem; top: 20%; right: 12%; }
.presta-cta__bubble--3 { width: 4.5rem; height: 4.5rem; bottom: -1rem; left: 25%; }
.presta-cta__bubble--4 { width: 2.5rem; height: 2.5rem; bottom: 15%; right: 5%; }
.presta-cta__title {
    position: relative;
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}
.presta-cta__text {
    position: relative;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-xl);
    max-width: 40ch;
    margin-inline: auto;
}
.presta-cta__actions {
    position: relative;
    display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap;
}

/* ═══════════ PROGRAMME / STEPS ═══════════ */
.presta-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--space-lg);
    counter-reset: step;
    margin-bottom: var(--space-xl);
}
.presta-step {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    counter-increment: step;
    position: relative;
}
.presta-step::before {
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-sm); font-weight: var(--weight-bold);
    margin-bottom: var(--space-sm);
}
.presta-step__title {
    font-size: var(--text-base); font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}
.presta-step__text {
    font-size: var(--text-sm); color: var(--color-text-light);
    line-height: var(--leading-normal);
}

/* ═══════════ PARTNER SECTION ═══════════ */
.presta-partner {
    display: flex; gap: var(--space-xl); align-items: flex-start;
    padding: var(--space-xl);
    background: var(--color-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}
.presta-partner__content h3 {
    font-size: var(--text-lg); font-weight: var(--weight-semibold);
    margin-bottom: var(--space-sm);
}
.presta-partner__content p {
    font-size: var(--text-sm); color: var(--color-text-light);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-sm);
}
.presta-partner__content p:last-child {
    margin-bottom: 0;
}

/* ═══════════ LISTING PAGES ═══════════ */
.presta-listing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: var(--space-lg);
}
.listing-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
}

/* ── Logos certifications (card) — overlay absolu, n'ajoute pas d'espace au flux ── */
.listing-card__logos {
    position: absolute;
    top: 0.9rem;
    right: 1.25em;
    display: flex;
    align-items: center;
    gap: 0.35em;
    z-index: 2;
    pointer-events: none;
}
.listing-card__logo {
    height: 2.1em;
    width: auto;
    max-width: 5em;
    background: #fff;
    padding: 0.3em 0.5em;
    border-radius: 0.45em;
    border: 1px solid var(--color-border-light);
    object-fit: contain;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
/* le tag reste à sa place, on le raccourcit si besoin pour ne pas passer sous le logo */
.listing-card--has-logo .listing-card__tag {
    padding-right: 3.5em;
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
}
.listing-card__img {
    aspect-ratio: 16 / 10; overflow: hidden;
}
.listing-card__img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.listing-card:hover .listing-card__img img {
    transform: scale(1.05);
}
.listing-card__body {
    padding: var(--space-lg);
    flex: 1; display: flex; flex-direction: column;
}
.listing-card__tag {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-sm);
}
.listing-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}
.listing-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: var(--leading-normal);
    flex: 1;
    margin-bottom: var(--space-md);
}
.listing-card__footer {
    display: flex; justify-content: space-between; align-items: center;
}
.listing-card__price {
    font-size: var(--text-lg); font-weight: var(--weight-bold);
    color: var(--color-primary);
}
.listing-card__link {
    font-size: var(--text-sm); font-weight: var(--weight-semibold);
    color: var(--color-primary);
}

/* ═══════════ FAQ ═══════════ */
.presta-faq__title {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}
.presta-faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.presta-faq__item {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-out);
}
.presta-faq__item:hover {
    box-shadow: var(--shadow-sm);
}
.presta-faq__item[open] {
    box-shadow: var(--shadow-md);
}
.presta-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    list-style: none;
}
.presta-faq__question::-webkit-details-marker { display: none; }
.presta-faq__question::marker { display: none; content: ""; }
.presta-faq__chevron {
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
    color: var(--color-primary);
}
.presta-faq__item[open] .presta-faq__chevron {
    transform: rotate(180deg);
}
.presta-faq__answer {
    padding: 0 var(--space-xl) var(--space-lg);
}
.presta-faq__answer p {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: var(--color-text);
    margin: 0;
}

/* ═══════════ RELATED PRESTATIONS ═══════════ */
.presta-related {
    padding-bottom: var(--space-4xl);
}
.presta-related__title {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

/* ═══════════ BUTTON VARIANTS ═══════════ */
.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
}
.btn--white:hover {
    background: var(--color-light);
    box-shadow: var(--shadow-md);
}
.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.5);
    text-decoration: none;
}
.btn--outline-white:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}
.btn--full {
    width: 100%;
    justify-content: center;
    text-decoration: none;
    white-space: normal;
    text-align: center;
    text-align: center;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .presta-grid {
        grid-template-columns: 1fr;
    }
    .presta-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    .presta-sidebar__divider { display: none; }
}
@media (max-width: 768px) {
    .presta-hero {
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }
    .presta-steps { grid-template-columns: 1fr; }
    .presta-partner { flex-direction: column; }
    .presta-listing__grid { grid-template-columns: 1fr; }
    .presta-cta { padding: var(--space-2xl) var(--space-lg); }
}

/* ═══════════ ENGAGEMENTS QUALITÉ ═══════════ */
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.engagement-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--duration-normal) var(--ease-out);
}
.engagement-card:hover {
    box-shadow: var(--shadow-md);
}
.engagement-card__icon {
    width: 3em;
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}
.engagement-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}
.engagement-card p {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text-light);
}
@media (max-width: 1024px) {
    .engagements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .engagements-grid { grid-template-columns: 1fr; }
}

/* ═══════════ INFO — FOSSES ═══════════ */
.info-intro {
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-xl);
    max-width: 50rem;
}

.info-fosses-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}
.info-fosses-map {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}
.info-fosses-map .idf-map {
    max-width: 100%;
    margin: 0;
}
.info-fosses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
.info-fosse-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
    scroll-margin-top: calc(var(--header-height) + var(--space-xl));
}
.info-fosse-card__title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}
.info-fosse-card__name {
    font-weight: var(--weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}
.info-fosse-card__address {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}
.info-fosse-card__details p {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}
.info-fosse-card__details p:last-child {
    margin-bottom: 0;
}
.info-fosse-card__details strong {
    color: var(--color-text);
}
@media (max-width: 1024px) {
    .info-fosses-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
    /* Map seule sur sa rangée → on profite de toute la largeur dispo */
    .info-fosses-map { position: static; max-width: 100%; margin-inline: auto; width: 100%; }
    .info-fosses-map .idf-map { max-width: 56rem; margin-inline: auto; }
}
