/**
 * CSS IMPROVEMENTS - Aston Music
 * Améliorations ciblées pour le responsive et l'optimisation
 * Chargé après style.css pour surcharger les styles problématiques
 */

/* ==========================================
   VARIABLES CSS POUR LES COULEURS
   ========================================== */
:root {
    --primary-yellow: #d8d110;
    --primary-purple: #2b2278;
    --primary-black: #313231;
    --text-gray: #666666;
    --text-dark: #111111;
    --white: #ffffff;
    --border-radius: 30px;
}

/* ==========================================
   CORRECTIONS GÉNÉRALES
   ========================================== */

/* Supprimer la transition globale problématique */
* {
    transition: none !important;
}

/* Ajouter les transitions uniquement où nécessaire */
a,
button,
.btn,
.gallery-item img {
    transition: all 0.3s ease-in-out !important;
}

/* Corriger le margin excessif sur tous les paragraphes */
p {
    margin: 0 0 15px 0;
}

/* ==========================================
   AMÉLIORATION DU HEADER RESPONSIVE
   ========================================== */

.header_main {
    padding: 15px 0;
}

.logo img {
    max-width: 100%;
    height: auto;
    width: 300px;
}

.logo_mobile img {
    width: 80px !important;
    height: auto;
}

/* Menu mobile amélioré */
@media (max-width: 991px) {
    .mobile_menu {
        display: block !important;
    }

    .menu_main,
    .logo {
        display: none !important;
    }

    .logo_mobile {
        width: auto !important;
        padding: 10px 15px;
    }
}

/* ==========================================
   FORMULAIRE DE CONTACT RESPONSIVE
   ========================================== */

.contact_section {
    padding: 35px 0;
}

.contact_taital {
    font-size: clamp(24px, 5vw, 40px);
    margin-bottom: 15px;
}

.contact_text {
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 30px;
}

/* Conteneur formulaire adaptatif */
.email_text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Champs de formulaire améliorés */
.email-bt,
.massage-bt {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-gray);
    transition: border-color 0.3s ease;
}

.email-bt:focus,
.massage-bt:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(216, 209, 16, 0.1);
}

.massage-bt {
    min-height: 150px;
    resize: vertical;
}

/* Checkboxes améliorées */
.div_check {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.check-bt {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.check-label {
    padding-left: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* RGPD checkbox */
.form-group {
    margin-bottom: 20px;
}

.form-group small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.lien_rgpd {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.lien_rgpd:hover {
    color: var(--primary-purple);
}

/* Bouton d'envoi responsive */
.send_btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.send_btn button {
    width: auto;
    padding: 10px 35px;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send_btn button:hover:not(:disabled) {
    background-color: var(--primary-black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.send_btn button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Messages d'alerte améliorés */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ==========================================
   SECTIONS PRINCIPALES RESPONSIVE
   ========================================== */

/* Normaliser l'espacement de toutes les sections */
.layout_padding {
    padding-top: 35px !important;
    padding-bottom: 25px !important;
}

.about_section,
.services_section,
.contact_section {
    padding: 35px 0;
}

.client_section {
    padding: 35px 0 25px;
}

.about_taital,
.services_taital,
.client_taital {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 20px;
}

.about_text,
.services_text {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.8;
}

.about_taital_main {
    padding-left: clamp(0px, 5vw, 100px);
    padding-top: clamp(0px, 3vw, 40px);
}

/* ==========================================
   GALERIE PHOTOS RESPONSIVE
   ========================================== */

.gallery .gallery-item {
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================
   IMAGES ADAPTATIVES
   ========================================== */

img {
    max-width: 100%;
    height: auto;
}

.about_img {
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   CAROUSEL AVIS AMÉLIORÉ
   ========================================== */

.client_section_2 {
    padding: 30px 30px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Flexbox pour réordonner indicateurs sous le contenu */
.client_section_2 .carousel {
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0;
}

.client_section_2 .carousel .carousel-inner {
    order: 1 !important;
    width: 100%;
}

.client_section_2 .carousel .carousel-indicators {
    position: static !important;
    order: 2 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    display: flex !important;
    justify-content: center !important;
    margin: 15px auto 0 !important;
    padding: 0;
    list-style: none;
    width: 100%;
}

.client_section_2 .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-purple);
    opacity: 0.4;
    border: none;
    margin: 0 5px;
    bottom: auto !important;
    position: relative !important;
}

.client_section_2 .carousel-indicators li.active {
    background-color: var(--primary-yellow);
    opacity: 1;
}

.lorem_text {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.8;
    padding: 20px;
}

.lorem_text blockquote p {
    margin-bottom: 10px;
}

.customer_text {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: bold;
    color: var(--primary-purple);
    margin-top: 10px;
}

/* ==========================================
   FOOTER RESPONSIVE
   ========================================== */

.footer_section {
    padding: 35px 0 25px;
    background-size: cover;
}

.social_icon {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social_icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    transition: all 0.3s ease;
}

.social_icon a:hover {
    background-color: var(--primary-black);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================
   BOUTON RETOUR EN HAUT AMÉLIORÉ
   ========================================== */

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: 20px;
    z-index: 996;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s;
    background-color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 28px;
    color: var(--primary-black);
    line-height: 0;
}

.back-to-top:hover {
    background-color: var(--primary-purple);
    transform: translateY(-5px);
}

.back-to-top:hover i {
    color: var(--white);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* ==========================================
   MEDIA QUERIES SPÉCIFIQUES
   ========================================== */

/* Tablettes (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .email_text {
        padding: 20px;
    }

    .about_taital_main {
        padding-left: 25px;
        padding-top: 20px;
    }

    .client_section_2 {
        padding: 30px 20px 15px;
    }
}

/* Smartphones (max 767px) */
@media (max-width: 767px) {
    .email_text {
        width: 100%;
        padding: 15px;
    }

    .email-bt,
    .massage-bt {
        font-size: 14px;
        padding: 12px 15px;
    }

    .send_btn button {
        width: auto;
        padding: 10px 30px;
        font-size: 15px;
    }

    .div_check {
        flex-direction: column;
        gap: 15px;
    }

    .about_taital_main {
        padding: 5px 0;
    }

    .padding_right_0 {
        padding-right: 15px;
    }

    .client_section_2 {
        padding: 20px 15px 10px;
        margin-top: 15px !important;
    }

    .lorem_text {
        padding: 10px 5px;
    }

    .about_img {
        padding: 5px;
        margin-bottom: 20px;
    }

    /* Normaliser l'espacement sur mobile */
    .layout_padding {
        padding-top: 20px !important;
        padding-bottom: 10px !important;
    }

    .tarifs_section,
    .location_section,
    .about_section,
    .services_section,
    .client_section,
    .contact_section {
        padding: 20px 0 10px !important;
    }

    .tarifs_section_2 {
        padding-bottom: 10px;
    }

    .tarifsSwiper {
        padding-bottom: 40px;
    }

    .photosSwiper {
        padding-bottom: 50px;
    }

    .footer_section {
        padding: 25px 0 15px !important;
    }
}

/* Très petits écrans (max 480px) */
@media (max-width: 480px) {
    .contact_taital {
        font-size: 24px;
    }

    .email-bt,
    .massage-bt {
        font-size: 13px;
    }

    .send_btn button {
        font-size: 15px;
    }

    .logo_mobile img {
        width: 60px !important;
    }
}

/* ==========================================
   UTILITAIRES RESPONSIVE
   ========================================== */

.text-responsive {
    font-size: clamp(14px, 2vw, 16px);
}

.title-responsive {
    font-size: clamp(24px, 4vw, 40px);
}

/* Espacements adaptatifs */
.mb-responsive {
    margin-bottom: clamp(15px, 3vw, 30px);
}

.mt-responsive {
    margin-top: clamp(15px, 3vw, 30px);
}

/* Container fluide amélioré */
.container-fluid {
    padding-left: clamp(15px, 3vw, 30px);
    padding-right: clamp(15px, 3vw, 30px);
}

/* ==========================================
   PERFORMANCE & ACCESSIBILITÉ
   ========================================== */

/* Skip link - visible uniquement au focus clavier */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-yellow) !important;
    outline-offset: 0 !important;
    color: var(--white);
}

/* Classe sr-only pour le contenu réservé aux lecteurs d'écran */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Corriger le focus - !important pour overrider style.css */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-yellow) !important;
    outline-offset: 2px !important;
}

/* Focus spécifique pour les champs de formulaire (border au lieu de outline) */
.email-bt:focus,
.massage-bt:focus {
    outline: none !important;
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 3px rgba(216, 209, 16, 0.3) !important;
}

/* Fieldset accessible - retirer le style par défaut du navigateur */
fieldset.div_check,
fieldset.formules-checkboxes {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

fieldset.formules-checkboxes {
    background: #f8f9fa;
    border: 2px solid #2b2278;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

fieldset.div_check {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

/* Blockquote accessible pour les avis */
.lorem_text blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-style: normal;
}

.lorem_text blockquote cite {
    display: block;
    font-style: normal;
}

/* Réduire les animations pour les utilisateurs qui préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimisation des polices */
@font-face {
    font-display: swap; /* Améliore les performances de chargement */
}

/* ==========================================
   SECTION TARIFS - SWIPER
   ========================================== */

.tarifs_section {
    width: 100%;
    float: left;
}

.tarifs_taital {
    width: 100%;
    font-size: 40px;
    color: #d8d110;
    font-weight: bold;
    text-align: center;
}

.tarifs_text {
    width: 100%;
    float: left;
    font-size: 16px;
    color: #1f1f1f;
    text-align: center;
    margin-bottom: 20px;
}

.tarifs_section_2 {
    width: 100%;
    float: left;
    padding-bottom: 20px;
}

.tarifsSwiper {
    padding: 15px 5px 50px 5px;
    overflow: hidden;
}

.tarifsSwiper .swiper-wrapper {
    padding-bottom: 10px;
}

.tarifsSwiper .swiper-slide {
    height: auto !important;
    overflow: visible;
}

.tarif_card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 20px 30px;
    height: 100%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 3px solid #2b2278;
    display: flex;
    flex-direction: column;
}

.tarif_nom {
    font-size: 20px;
    font-weight: bold;
    color: #2b2278;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d8d110;
}

.tarif_description {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 15px;
    text-align: left;
    flex-grow: 1;
}

.tarif_description p {
    margin-bottom: 8px;
}

.tarif_description ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.tarif_description li {
    margin: 4px 0;
    padding-left: 18px;
    position: relative;
    font-size: 13px;
}

.tarif_description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d8d110;
    font-weight: bold;
}

.tarif_prix {
    font-size: 18px;
    font-weight: bold;
    color: #2b2278;
    padding: 8px 20px;
    background: #d8d110;
    border-radius: 20px;
    display: inline-block;
    margin-top: auto;
}

/* Swiper navigation */
.tarifsSwiper .swiper-button-prev,
.tarifsSwiper .swiper-button-next {
    width: 30px;
    height: 30px;
    background-color: #2b2278;
    border-radius: 50%;
    color: #ffffff;
}

.tarifsSwiper .swiper-button-prev::after,
.tarifsSwiper .swiper-button-next::after {
    font-size: 12px;
    font-weight: bold;
}

.tarifsSwiper .swiper-button-prev:hover,
.tarifsSwiper .swiper-button-next:hover {
    background-color: #d8d110;
    color: #2b2278;
}

/* Swiper masque auto les boutons si pas besoin */
.tarifsSwiper .swiper-button-disabled {
    opacity: 0 !important;
}

.tarifsSwiper.swiper-lock .swiper-button-prev,
.tarifsSwiper.swiper-lock .swiper-button-next,
.tarifsSwiper.swiper-lock .swiper-pagination {
    display: none;
}

/* Swiper pagination */
.tarifs-pagination {
    bottom: 5px !important;
}

.tarifs-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #2b2278;
    opacity: 0.4;
}

.tarifs-pagination .swiper-pagination-bullet-active {
    background-color: #d8d110;
    opacity: 1;
}

/* ==========================================
   SECTION LOCATION - GRILLE AVEC OMBRAGE
   ========================================== */

.location_section {
    width: 100%;
    float: left;
}

.location_taital {
    width: 100%;
    font-size: 40px;
    color: #d8d110;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.location_section_2 {
    width: 100%;
}

.location_section_2 .row {
    row-gap: 30px;
}

.location_card {
    background: #ffffff;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 3px solid #2b2278;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.location_card_img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.location_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.location_card_body {
    padding: 20px 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.location_nom {
    font-size: 20px;
    font-weight: bold;
    color: #2b2278;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d8d110;
}

.location_description {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 15px;
    text-align: left;
    flex-grow: 1;
}

.location_description p {
    margin-bottom: 8px;
}

.location_prix {
    font-size: 18px;
    font-weight: bold;
    color: #2b2278;
    padding: 8px 20px;
    background: #d8d110;
    border-radius: 20px;
    display: inline-block;
    margin-top: auto;
}

/* ==========================================
   SECTION PHOTOS - SWIPER
   ========================================== */

.photosSwiper {
    padding: 10px 5px 65px 5px;
    overflow: hidden;
}

.photosSwiper .swiper-slide {
    height: auto;
}

.photosSwiper .swiper-button-prev,
.photosSwiper .swiper-button-next {
    width: 30px;
    height: 30px;
    background-color: #2b2278;
    border-radius: 50%;
    color: #ffffff;
}

.photosSwiper .swiper-button-prev::after,
.photosSwiper .swiper-button-next::after {
    font-size: 12px;
    font-weight: bold;
}

.photosSwiper .swiper-button-prev:hover,
.photosSwiper .swiper-button-next:hover {
    background-color: #d8d110;
    color: #2b2278;
}

.photosSwiper .swiper-button-disabled {
    opacity: 0 !important;
}

.photosSwiper.swiper-lock .swiper-button-prev,
.photosSwiper.swiper-lock .swiper-button-next,
.photosSwiper.swiper-lock .swiper-pagination {
    display: none;
}

#photosPagination {
    bottom: -5px !important;
}

.photos-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #2b2278;
    opacity: 0.4;
}

.photos-pagination .swiper-pagination-bullet-active {
    background-color: #d8d110;
    opacity: 1;
}

/* Checkboxes formules dans le formulaire de contact */
.formules-checkboxes {
    background: #f8f9fa;
    border: 2px solid #2b2278;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.formules-label {
    font-size: 16px;
    font-weight: bold;
    color: #2b2278;
    margin-bottom: 10px;
    display: block;
}

.formule-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 5px 0;
}

.formule-check .check-label {
    font-size: 15px;
    color: #333;
}

/* Responsive tarifs */
@media (max-width: 767px) {
    .tarif_card {
        padding: 18px 15px;
    }

    .tarif_nom {
        font-size: 18px;
    }

    .tarif_description {
        font-size: 13px;
    }

    .tarif_prix {
        font-size: 16px;
        padding: 5px 15px;
    }

    .tarifsSwiper .swiper-button-prev,
    .tarifsSwiper .swiper-button-next {
        width: 25px;
        height: 25px;
    }

    .tarifsSwiper .swiper-button-prev::after,
    .tarifsSwiper .swiper-button-next::after {
        font-size: 10px;
    }

    .formules-checkboxes {
        padding: 12px 15px;
    }

    .formule-check .check-label {
        font-size: 14px;
    }

    .location_card {
        height: auto;
    }

    .location_card_body {
        padding: 18px 15px 22px;
    }

    .location_nom {
        font-size: 18px;
    }

    .location_description {
        font-size: 13px;
    }

    .location_prix {
        font-size: 16px;
        padding: 5px 15px;
    }

    .photosSwiper .swiper-button-prev,
    .photosSwiper .swiper-button-next {
        width: 25px;
        height: 25px;
    }

    .photosSwiper .swiper-button-prev::after,
    .photosSwiper .swiper-button-next::after {
        font-size: 10px;
    }
}
