/* --- STYLE SECTION THEMES --- */



/* Style du carré de l'icône */
.theme-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px; /* Coins légèrement arrondis */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

/* Forcer l'utilisation de FontAwesome 6 pour nos icônes */
.theme-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Texte gris clair pour la description sur fond noir */
.text-muted-light {
    color: #b0b0b0 !important;
}

/* Couleurs spécifiques de l'image Themes */
.bg-orange { background-color: #f39c12; }
.text-orange { color: #f39c12; }

.bg-green { background-color: #8cc63f; }
.text-green { color: #8cc63f; }

.bg-blue { background-color: #3498db; }
.text-blue { color: #3498db; }

.bg-red { background-color: #e74c3c; }
.text-red { color: #e74c3c; }

/* Menu bandeau fin fixe */
.container-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #001b4c;
  min-height: 42px;
  padding: 0;
}

.container-banner .mod-menu,
.container-banner .mod-list,
.container-banner ul.nav {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 0 !important;
  padding: 0.35rem 1rem !important;
  list-style: none;
}

.container-banner .nav-item {
  margin: 0 !important;
}

.container-banner a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.container-banner a:hover,
.container-banner .active > a {
  background: #00a6c8;
  color: #ffffff !important;
}



/* Bandeau titre haut : remplace le logo Cassiopeia */

.navbar-brand {
  width: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: rgba(0, 27, 76, 0.92);
  padding: 0.35rem 1rem;
  margin: 0;
}

.navbar-brand img {
  display: none !important;
}

.navbar-brand::after {
  content: "e s p a c e  -  a p n é e  —  École d’apnée  —  Stages d’apnée  —  Hyères";
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.16rem;
  text-transform: none;
}

/* =========================
   PAGE TARIFS APNEE
   ========================= */

.tarifs-apnee {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.tarifs-apnee-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.tarifs-apnee .gradient-bg {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.tarifs-apnee .table-row-even {
    background-color: #f8fafc;
}

.tarifs-apnee .table-row-odd {
    background-color: #ffffff;
}

.tarifs-apnee .section-card {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.tarifs-apnee .price-highlight {
    font-weight: 700;
    color: #0284c7;
}

.tarifs-apnee .medical-note {
    background: linear-gradient(45deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
}

.tarifs-apnee .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.tarifs-apnee .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.tarifs-apnee .pb-12 {
    padding-bottom: 3rem;
}

.tarifs-apnee .mb-8 {
    margin-bottom: 2rem;
}

.tarifs-apnee .mb-12 {
    margin-bottom: 3rem;
}

.tarifs-apnee .text-center {
    text-align: center;
}

.tarifs-apnee .text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.tarifs-apnee .mb-4 {
    margin-bottom: 1rem;
}

.tarifs-apnee .text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.tarifs-apnee .font-bold {
    font-weight: 700;
}

.tarifs-apnee .mb-2 {
    margin-bottom: 0.5rem;
}

.tarifs-apnee .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.tarifs-apnee .opacity-90 {
    opacity: 0.9;
}

.tarifs-apnee .py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.tarifs-apnee .bg-gray-50 {
    background-color: #f9fafb;
}

.tarifs-apnee .text-white {
    color: #ffffff;
}

.tarifs-apnee .py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.tarifs-apnee .border-t {
    border-top: 1px solid #e5e7eb;
}

.tarifs-apnee .border-gray-200 {
    border-color: #e5e7eb;
}

.tarifs-apnee .justify-center {
    justify-content: center;
}

.tarifs-apnee .items-center {
    align-items: center;
}

.tarifs-apnee .text-gray-600 {
    color: #4b5563;
}

.tarifs-apnee .text-blue-500 {
    color: #3b82f6;
}

.tarifs-apnee .mr-2 {
    margin-right: 0.5rem;
}

.tarifs-apnee .flex {
    display: flex;
}

.tarifs-apnee .mr-4 {
    margin-right: 1rem;
}

.tarifs-apnee .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.tarifs-apnee .bg-white {
    background-color: #ffffff;
}

.tarifs-apnee .p-6 {
    padding: 1.5rem;
}

.tarifs-apnee .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.tarifs-apnee .overflow-x-auto {
    overflow-x: auto;
}

.tarifs-apnee .w-full {
    width: 100%;
}

.tarifs-apnee .bg-gray-100 {
    background-color: #f3f4f6;
}

.tarifs-apnee .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.tarifs-apnee .text-left {
    text-align: left;
}

.tarifs-apnee .font-semibold {
    font-weight: 600;
}

.tarifs-apnee .text-gray-700 {
    color: #374151;
}

.tarifs-apnee .border-b {
    border-bottom: 1px solid #e5e7eb;
}

.tarifs-apnee .text-yellow-500 {
    color: #f59e0b;
}

.tarifs-apnee .mr-3 {
    margin-right: 0.75rem;
}

.tarifs-apnee .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.tarifs-apnee .text-green-500 {
    color: #22c55e;
}

.tarifs-apnee .text-orange-500 {
    color: #f97316;
}

.tarifs-apnee .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.tarifs-apnee .text-gray-500 {
    color: #6b7280;
}

.tarifs-apnee .p-4 {
    padding: 1rem;
}

.tarifs-apnee .m-4 {
    margin: 1rem;
}

.tarifs-apnee .rounded-lg {
    border-radius: 0.5rem;
}

.tarifs-apnee .text-orange-600 {
    color: #ea580c;
}

.tarifs-apnee .text-orange-800 {
    color: #9a3412;
}

.tarifs-apnee .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.tarifs-apnee .bg-blue-50 {
    background-color: #eff6ff;
}

.tarifs-apnee .bg-orange-50 {
    background-color: #fff7ed;
}

/* =========================
   BANDEAUX
   ========================= */

.tarifs-apnee .bg-randonnee-palmee {
    background-image: linear-gradient(to right, #0af5a7, #06c485);
}

.tarifs-apnee .bg-formations-padi {
    background-image: linear-gradient(to right, #e6364c, #c92f42);
}

.tarifs-apnee .bg-formations-ffessm {
    background-image: linear-gradient(to right, #067de5, #0465c1);
}

.tarifs-apnee .bg-stages {
    background-image: linear-gradient(to right, #e59606, #c27f05);
}

.tarifs-apnee .bg-autonomie {
    background-image: linear-gradient(to right, #3ba102, #308002);
}

/* Texte blanc dans les bandeaux */

.tarifs-apnee .bg-randonnee-palmee h2,
.tarifs-apnee .bg-randonnee-palmee p,
.tarifs-apnee .bg-formations-padi h2,
.tarifs-apnee .bg-formations-padi p,
.tarifs-apnee .bg-formations-ffessm h2,
.tarifs-apnee .bg-formations-ffessm p,
.tarifs-apnee .bg-stages h2,
.tarifs-apnee .bg-stages p,
.tarifs-apnee .bg-autonomie h2,
.tarifs-apnee .bg-autonomie p {
    color: #ffffff !important;
    margin: 0;
}

/* =========================
   TABLEAUX
   ========================= */

.tarifs-apnee table {
    width: 100%;
    border-collapse: collapse;
}

.tarifs-apnee th,
.tarifs-apnee td {
    vertical-align: middle;
}

.tarifs-apnee th {
    font-weight: 600;
}

/* Espacements */

.tarifs-apnee .space-y-1 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.25rem;
}

.tarifs-apnee .space-y-2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem;
}

/* Impression */

@media print {
    .tarifs-apnee {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .tarifs-apnee .section-card {
        page-break-inside: avoid;
    }
}

/* ==========================================
   AGENDA DES STAGES APNÉE 2026
   ========================================== */

#calendar-focus-date {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7f6;
    padding: 20px;
    border-radius: 10px;
}

#calendar-focus-date .main-title {
    margin: 0 0 40px;
    text-align: center;
    color: #0082a1;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#calendar-focus-date .cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* Cartes */

#calendar-focus-date .event-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#calendar-focus-date .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#calendar-focus-date .event-card.sold-out {
    background: #f9f9f9;
    opacity: 0.9;
}

/* Bloc de date */

#calendar-focus-date .date-block {
    display: flex;
    flex: 0 0 110px;
    min-width: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: #fff;
    text-align: center;
}

#calendar-focus-date .date-blue {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

#calendar-focus-date .date-orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
}

#calendar-focus-date .date-grey {
    background: #95a5a6;
}

#calendar-focus-date .day-number {
    margin-bottom: 5px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

#calendar-focus-date .month-year {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contenu des cartes */

#calendar-focus-date .card-details {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

#calendar-focus-date .card-date-text {
    margin-bottom: 5px;
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
}

#calendar-focus-date .card-title {
    margin: 0 0 5px;
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

#calendar-focus-date .card-level {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.85rem;
}

/* Boutons */

#calendar-focus-date .btn-details {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.3s,
        background-color 0.3s;
}

#calendar-focus-date .btn-blue {
    color: #005bea;
    background: transparent;
    border-color: #005bea;
}

#calendar-focus-date .btn-blue:hover {
    color: #fff;
    background: #005bea;
}

#calendar-focus-date .btn-orange {
    color: #ff6b6b;
    background: transparent;
    border-color: #ff6b6b;
}

#calendar-focus-date .btn-orange:hover {
    color: #fff;
    background: #ff6b6b;
}

#calendar-focus-date .btn-disabled {
    color: #fff;
    background: #95a5a6;
    border-color: #95a5a6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Tablette */

@media (max-width: 1100px) {
    #calendar-focus-date .cards-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 700px) {
    #calendar-focus-date {
        padding: 15px;
    }

    #calendar-focus-date .main-title {
        margin-bottom: 25px;
        font-size: 1.65rem;
    }

    #calendar-focus-date .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #calendar-focus-date .date-block {
        flex-basis: 90px;
        min-width: 90px;
        padding: 10px;
    }

    #calendar-focus-date .day-number {
        font-size: 2rem;
    }

    #calendar-focus-date .month-year {
        font-size: 0.8rem;
    }

    #calendar-focus-date .card-details {
        padding: 15px;
    }

    #calendar-focus-date .card-title {
        font-size: 1.2rem;
    }
}


/* Import des icônes (si pas déjà présentes sur le site) */
    /* Conteneur global */
    .stage-freediver-page .apnee-article-container {
        max-width: 1200px;
        margin: 0 auto;
        font-family: 'Arial', sans-serif;
        line-height: 1.5;
        color: #444;
    }

    /* TITRES DE L'ARTICLE */
    .stage-freediver-page .apnee-article-container h2 {
        color: #0082A1;
        border-bottom: 2px solid #0082A1;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }

    .stage-freediver-page .apnee-article-container h3 {
        color: #0082A1;
        margin-top: 30px;
        text-transform: uppercase;
        font-size: 1.1em;
    }

    /* --- STYLE DU TABLEAU DE PRIX (DESIGN CAPTURE ECRAN) --- */
    
    /* Conteneur scrollable pour mobile */
    .stage-freediver-page .pricing-scroll-container {
        overflow-x: auto;
        margin-bottom: 40px;
        border: 1px solid #ddd;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

    .stage-freediver-page .pricing-table {
        width: 100%;
        min-width: 800px; /* Force la largeur sur mobile pour garder la mise en page */
        border-collapse: collapse;
        background-color: #fff;
    }

    /* En-têtes (Bleu) */
    .stage-freediver-page .pricing-table th {
        background-color: #3366cc; /* Bleu roi de l'image */
        color: white;
        padding: 20px 10px;
        text-align: center;
        vertical-align: top;
        width: 20%;
        border-right: 1px solid rgba(255,255,255,0.2);
    }
    
    /* Première cellule en haut à gauche (Titre) */
    .stage-freediver-page .pricing-table th.first-header {
        background-color: #f4f4f4;
        color: #666;
        text-align: left;
        vertical-align: bottom;
        font-size: 1.2em;
        padding: 20px;
        border-right: none;
    }
    .stage-freediver-page .pricing-table th.first-header span {
        display: block;
        font-weight: normal;
        font-size: 0.8em;
    }

    .stage-freediver-page .pricing-table th h4 {
        margin: 0 0 10px 0;
        font-size: 14px;
        text-transform: uppercase;
        color: #fff;
    }

    .stage-freediver-page .price-display {
        display: block;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .stage-freediver-page .price-sub {
        display: block;
        font-size: 11px;
        font-weight: normal;
        opacity: 0.9;
        line-height: 1.2;
    }

    /* Corps du tableau */
    .stage-freediver-page .pricing-table td {
        padding: 12px 10px;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
        color: #555;
    }

    /* Colonne de gauche (Liste des services) */
    .stage-freediver-page .pricing-table td:first-child {
        text-align: left;
        background-color: #eee;
        font-weight: 500;
        padding-left: 20px;
        width: 25%;
    }

    /* Lignes alternées (Zebra striping) */
    .stage-freediver-page .pricing-table tbody tr:nth-child(odd) td:not(:first-child) {
        background-color: #f9f9f9;
    }

    /* Icones */
    .fa-check { color: #80b516; font-size: 1.2em; } /* Vert */
    .fa-times { color: #d9534f; font-size: 1.2em; } /* Rouge */

    /* Boutons de réservation */
    .stage-freediver-page .btn-resa-blue {
        display: inline-block;
        background-color: #3366cc;
        color: white;
        padding: 8px 20px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.3s;
    }
    .stage-freediver-page .btn-resa-blue:hover {
        background-color: #254e9e;
        color: white;
        text-decoration: none;
    }

    /* --- RESTE DU CONTENU (PROGRAMME, VIDEO) --- */
    .stage-freediver-page .program-section {
        background-color: #333;
        color: #c0c0c0;
        padding: 20px;
        border-radius: 5px;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        margin-bottom: 30px;
    }

    .stage-freediver-page .program-icons {
        flex: 1 1 300px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        align-content: start;
    }

    .stage-freediver-page .program-icons img {
        width: 100%;
        height: auto;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
        padding: 5px;
    }

    .stage-freediver-page .program-details {
        flex: 2 1 400px;
    }
    
    .pano-image { width: 100%; height: auto; border-radius: 3px; margin-bottom: 20px; }

    .program-columns { display: flex; flex-wrap: wrap; gap: 20px; }
    .day-column { flex: 1 1 250px; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 5px; }
    
    .stage-freediver-page .video-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        max-width: 100%;
        margin-bottom: 30px;
    }
    .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

    ul.check-list { list-style: none; padding-left: 0; }
    ul.check-list li::before { content: "✔"; color: #0082A1; margin-right: 10px; }

/* Ajustements Joomla 5 / Cassiopeia */
.stage-freediver-page {
    width: 100%;
}

.stage-freediver-page .apnee-article-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stage-freediver-page img {
    max-width: 100%;
}

@media (max-width: 700px) {
    .stage-freediver-page .program-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stage-freediver-page .program-section {
        padding: 15px;
        gap: 20px;
    }

    .stage-freediver-page .pricing-scroll-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Icônes du tableau de tarifs */

.fa-check::before,
.fas.fa-check::before {
    content: "\f00c";
}

.fa-times::before,
.fa-close::before,
.fa-remove::before,
.fas.fa-times::before,
.fas.fa-xmark::before {
    content: "\f00d";
}

.fa-check,
.fas.fa-check {
    color: #65b20e !important;
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-times,
.fa-close,
.fa-remove,
.fas.fa-times,
.fas.fa-xmark {
    color: #e5534b !important;
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* ==================================================
   COCHES ET CROIX DU TABLEAU FREEDIVER
   ================================================== */

/* Mise en forme générale des symboles */
.stage-freediver-page .pricing-table tbody tr:not(:last-child) td:not(:first-child)::before {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

/* Par défaut : croix rouge */
.stage-freediver-page .pricing-table tbody tr:not(:last-child) td:not(:first-child)::before {
    content: "✖";
    color: #e5534b;
}

/* Toutes les formules avec encadrement :
   colonnes 3, 4 et 5 pour les cinq premières lignes */
.stage-freediver-page .pricing-table tbody tr:nth-child(-n+5) td:nth-child(n+3)::before {
    content: "✔";
    color: #65b20e;
}

/* Sortie mer : coche dans les quatre formules */
.stage-freediver-page .pricing-table tbody tr:nth-child(6) td:nth-child(n+2)::before {
    content: "✔";
    color: #65b20e;
}

/* Touch : coche uniquement dans Stage + certification */
.stage-freediver-page .pricing-table tbody tr:nth-child(7) td:nth-child(5)::before {
    content: "✔";
    color: #65b20e;
}

/* Certification PADI : coche uniquement dans Stage + certification */
.stage-freediver-page .pricing-table tbody tr:nth-child(8) td:nth-child(5)::before {
    content: "✔";
    color: #65b20e;
}

/* ==========================================
   BASE DES PAGES ÉDITORIALES ESPACE APNÉE
   ========================================== */

.ea-page {
    --ea-blue-dark: #075a88;
    --ea-blue: #087fb5;
    --ea-blue-light: #e8f6fb;
    --ea-turquoise: #20a7bb;
    --ea-orange: #ef8b2c;
    --ea-text: #26343d;
    --ea-light: #f4f7f8;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--ea-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ea-page *,
.ea-page *::before,
.ea-page *::after {
    box-sizing: border-box;
}

.ea-page h1,
.ea-page h2,
.ea-page h3 {
    line-height: 1.25;
}

.ea-page h2 {
    margin-top: 0;
    color: var(--ea-blue-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.ea-section {
    padding: clamp(2.8rem, 7vw, 5rem) 0;
}

.ea-section-box {
    padding: clamp(2rem, 6vw, 4.5rem);
    border-radius: 1.4rem;
    background: var(--ea-light);
}

.ea-section-intro {
    max-width: 860px;
    margin-bottom: 2rem;
    font-size: 1.08rem;
}

.ea-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 7vw, 5rem);
    border-radius: 1.4rem;
    background: linear-gradient(120deg, #033e60, #058bb2);
    color: #fff;
}

.ea-hero h1 {
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.ea-hero-content {
    max-width: 820px;
}

.ea-hero-lead {
    max-width: 760px;
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
}

.ea-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ea-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.ea-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ea-card {
    padding: 1.7rem;
    border: 1px solid #d9e8ee;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 25px rgba(5, 72, 105, 0.07);
}

.ea-card h3 {
    margin-top: 0;
    color: var(--ea-blue-dark);
}

.ea-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 0.8rem;
    border-radius: 50%;
    background: var(--ea-blue);
    color: #fff;
    font-weight: 800;
}

.ea-highlight {
    margin: 1.6rem 0;
    padding: 1.4rem 1.7rem;
    border-left: 5px solid var(--ea-turquoise);
    border-radius: 0 0.8rem 0.8rem 0;
    background: var(--ea-blue-light);
}

.ea-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ea-button {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    border: 1px solid var(--ea-orange);
    border-radius: 0.5rem;
    background: var(--ea-orange);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ea-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.ea-button-outline {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
}

.ea-profile {
    display: grid;
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.5fr);
    gap: 2.4rem;
    align-items: center;
}

.ea-profile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.ea-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.ea-badge {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--ea-blue-light);
    color: var(--ea-blue-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.ea-quote {
    padding: 1.5rem;
    border-radius: 0.9rem;
    background: var(--ea-blue-dark);
    color: #fff;
    font-size: 1.08rem;
}

.ea-cta {
    padding: clamp(2.5rem, 7vw, 4.5rem);
    border-radius: 1.4rem;
    background: linear-gradient(120deg, var(--ea-blue-dark), var(--ea-blue));
    color: #fff;
    text-align: center;
}

.ea-cta h2 {
    color: #fff;
}

.ea-cta p {
    max-width: 780px;
    margin: 0 auto 1.6rem;
}

@media (max-width: 800px) {
    .ea-grid,
    .ea-grid-3,
    .ea-profile {
        grid-template-columns: 1fr;
    }

    .ea-section {
        padding: 2.5rem 0;
    }

    .ea-hero,
    .ea-section-box,
    .ea-cta {
        border-radius: 0.9rem;
    }
}

/* =========================================================
   PIED DE PAGE ESPACE APNÉE
   ========================================================= */

.ea-footer {
  width: 100%;
  padding: 2.5rem 2rem 1.25rem;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(5, 43, 66, 0.98),
      rgba(7, 91, 115, 0.96)
    );
  border-top: 4px solid #43d4d7;
}

.ea-footer-column {
  position: relative;
  text-align: center;
}

.ea-footer-column:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.ea-footer-title {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ea-footer-title::after {
  display: block;
  width: 45px;
  height: 3px;
  margin: 0.65rem auto 0;
  background: #43d4d7;
  border-radius: 2px;
  content: "";
}

.ea-footer-text {
  max-width: 330px;
  margin: 1rem auto;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.ea-footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.ea-footer-contact:hover,
.ea-footer-contact:focus {
  color: #8ff3f4;
  text-decoration: none;
}

.ea-footer-main-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ea-footer-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  line-height: 1.7;
}

.ea-footer-phone {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.ea-footer-phone a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.ea-footer-phone a:hover,
.ea-footer-phone a:focus {
  color: #8ff3f4;
}

.ea-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.ea-footer-socials a {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.ea-footer-socials a:hover,
.ea-footer-socials a:focus {
  background: rgba(67, 212, 215, 0.28);
  border-color: #43d4d7;
  transform: translateY(-3px);
}

.ea-footer-socials img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.ea-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  text-align: center;
}

/* Affichage mobile */

@media (max-width: 767.98px) {
  .ea-footer {
    padding: 2rem 1.25rem 1rem;
  }

  .ea-footer-column {
    padding: 0 0 1.75rem;
  }

  .ea-footer-column:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .ea-footer-column:last-child {
    padding-bottom: 0;
  }
}

/* Footer sur toute la largeur disponible */
.container-footer .grid-child {
  width: 100% !important;
  max-width: none !important;
  padding-right: 24px !important;
  padding-left: 24px !important;
  box-sizing: border-box;
}

/* Le module personnalisé remplit le footer */
.container-footer .mod-custom {
  width: 100%;
  max-width: none;
}

/* Carte placée au-dessus du footer */
.ea-footer-map {
  width: 100%;
  margin: 0;
}

.ea-footer-map img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

/* Test survol thème Pranayama */
.ea-theme-item {
  border-radius: 8px;
  padding: 6px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.ea-theme-item .theme-icon,
.ea-theme-item .theme-icon i,
.ea-theme-item h4 a,
.ea-theme-item p {
  transition: all 0.25s ease;
}

.ea-theme-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.06);
}

.ea-theme-item:hover h4 a {
  color: #fff !important;
}

.ea-theme-item:hover p {
  color: #e5e5e5 !important;
}

.ea-theme-item:hover .theme-icon {
  filter: brightness(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.ea-theme-item:hover .theme-icon i {
  transform: scale(1.18);
  animation: ea-icon-shake 0.35s ease;
}

@keyframes ea-icon-shake {
  0%   { transform: scale(1.18) rotate(0deg); }
  25%  { transform: scale(1.18) rotate(-5deg); }
  50%  { transform: scale(1.18) rotate(5deg); }
  75%  { transform: scale(1.18) rotate(-3deg); }
  100% { transform: scale(1.18) rotate(0deg); }
}

/* ==================================================
   ICÔNES CLIQUABLES – PAGE STAGE FREEDIVER
   ================================================== */

.stage-freediver-page .program-icon-link {
    position: relative;
    display: block;
    min-width: 0;
    border-radius: 8px;
    text-decoration: none;
    outline: none;
    transform: scale(1);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* Images conservées dans leur format actuel */

.stage-freediver-page .program-icon-link img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    transition:
        filter 0.25s ease,
        background-color 0.25s ease;
}

/* Animation au survol */

.stage-freediver-page .program-icon-link:hover {
    z-index: 2;
    transform: scale(1.07);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Éclaircissement léger de l’image */

.stage-freediver-page .program-icon-link:hover img {
    filter: brightness(1.12);
    background-color: rgba(255, 255, 255, 0.16);
}

/* Navigation au clavier */

.stage-freediver-page .program-icon-link:focus-visible {
    z-index: 2;
    transform: scale(1.07);
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 6px #0082a1;
}

/* Petit effet lors du clic */

.stage-freediver-page .program-icon-link:active {
    transform: scale(1.02);
}

/* Désactivation de l’animation si demandée par le navigateur */

@media (prefers-reduced-motion: reduce) {
    .stage-freediver-page .program-icon-link,
    .stage-freediver-page .program-icon-link img {
        transition: none;
    }

    .stage-freediver-page .program-icon-link:hover,
    .stage-freediver-page .program-icon-link:focus-visible,
    .stage-freediver-page .program-icon-link:active {
        transform: none;
    }
}

/* ==================================================
   BOUTON DE RÉSERVATION EN LIGNE
   ================================================== */

.ea-reservation-online {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.ea-reservation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 1.8rem;
    border: 2px solid #087fb5;
    border-radius: 999px;
    background: linear-gradient(135deg, #087fb5, #20a7bb);
    box-shadow:
        0 8px 20px rgba(8, 127, 181, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.ea-reservation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    line-height: 1;
}

.ea-reservation-button:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.07);
    box-shadow:
        0 13px 28px rgba(8, 127, 181, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ea-reservation-button:active {
    transform: translateY(-1px) scale(0.99);
}

.ea-reservation-button:focus-visible {
    outline: 3px solid #ef8b2c;
    outline-offset: 4px;
}

@media (max-width: 500px) {
    .ea-reservation-button {
        width: 100%;
        padding: 0.95rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ea-reservation-button {
        transition: none;
    }

    .ea-reservation-button:hover,
    .ea-reservation-button:active {
        transform: none;
    }
}

/* ==================================================
   MISE EN PAGE RESPONSIVE DES STAGES FREEDIVER
   ET ADVANCED FREEDIVER
   ================================================== */

/* Deux zones sur ordinateur : icônes à gauche, contenu à droite */
.stage-freediver-page .program-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* Grille commune aux deux stages : 4 grandes icônes par ligne */
.stage-freediver-page .program-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
    align-items: center;
    justify-items: stretch;
    width: 100%;
    min-width: 0;
}

.stage-freediver-page .program-details {
    min-width: 0;
    width: 100%;
}

/* Programme placé sous les deux premières zones */
.stage-freediver-page .program-full-width {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Mention météo plus discrète */
.stage-freediver-page .program-weather-note {
    color: #8d8d8d;
    font-size: 0.65em;
    font-weight: 400;
    text-transform: none;
}

/* Liens et icônes statiques : toute la largeur de leur cellule */
.stage-freediver-page .program-icon-link,
.stage-freediver-page .program-icon-static {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    border-radius: 8px;
    text-decoration: none;
    outline: none;
    transform: scale(1);
    box-sizing: border-box;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.stage-freediver-page .program-icons .program-icon-link img,
.stage-freediver-page .program-icons .program-icon-static img {
    display: block;
    width: 100%;
    max-width: none !important;
    height: auto;
    margin: 0;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    transition:
        filter 0.25s ease,
        background-color 0.25s ease;
}

/* Survol uniquement pour les icônes cliquables */
.stage-freediver-page a.program-icon-link:hover {
    z-index: 2;
    transform: scale(1.07);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        0 0 0 2px rgba(255, 255, 255, 0.25);
}

.stage-freediver-page a.program-icon-link:hover img {
    filter: brightness(1.12);
    background-color: rgba(255, 255, 255, 0.16);
}

.stage-freediver-page a.program-icon-link:focus-visible {
    z-index: 2;
    transform: scale(1.07);
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 6px #0082a1;
}

.stage-freediver-page a.program-icon-link:active {
    transform: scale(1.02);
}

/* Le module vidéo reste libre de générer son propre HTML */
.stage-freediver-page .stage-video-module {
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px;
    overflow: hidden;
}

.stage-freediver-page .stage-video-module iframe,
.stage-freediver-page .stage-video-module video {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Tablette : les zones passent l'une sous l'autre */
@media (max-width: 900px) {
    .stage-freediver-page .program-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stage-freediver-page .program-full-width {
        grid-column: auto;
    }

    .stage-freediver-page .program-icons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Téléphone : 2 icônes par ligne */
@media (max-width: 600px) {
    .stage-freediver-page .program-section {
        padding: 15px;
        gap: 20px;
    }

    .stage-freediver-page .program-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .stage-freediver-page .program-columns {
        display: block;
    }

    .stage-freediver-page .day-column + .day-column {
        margin-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stage-freediver-page .program-icon-link,
    .stage-freediver-page .program-icon-link img {
        transition: none;
    }

    .stage-freediver-page .program-icon-link:hover,
    .stage-freediver-page .program-icon-link:focus-visible,
    .stage-freediver-page .program-icon-link:active {
        transform: none;
    }
}


/* ==================================================
   LARGEUR DES ARTICLES FREEDIVER / ADVANCED
   ET VIDEO YOUTUBE RESPONSIVE
   ================================================== */

/* Un peu plus large sur les grands écrans */
@media (min-width: 1200px) {
    .stage-freediver-page .apnee-article-container {
        width: 100%;
        max-width: 1400px;
    }
}

/* Vidéo YouTube responsive en 16/9 */
.stage-freediver-page .stage-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 30px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.stage-freediver-page .stage-video-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

document.addEventListener('DOMContentLoaded', function () {
    const parts = ['06', '09', '56', '79', '16'];
    const target = document.getElementById('ea-phone');

    if (target) {
        const link = document.createElement('a');
        link.href = 'tel:' + parts.join('');
        link.textContent = parts.join(' ');
        target.appendChild(link);
    }
});