/*
 Theme Name: Astra Child
 Theme URI: https://tictocprod.com/
 Description: Thème enfant pour Astra
 Author: Ton Nom
 Author URI: https://tictocprod.com/
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

/* Police Outfit pour tous les paragraphes, li et h3 */
p,
li,
h3 {
    font-family: 'Outfit', sans-serif;
}
/* Spécifique à la page panier uniquement */
@media (min-width: 922px) {
    body.woocommerce-cart .ast-container,
    body.woocommerce-checkout .ast-container {
        max-width: 1050px !important;
    }
}

.wc-block-cart-items__row{
    margin: auto;
    width: 90%;
}

.wc-block-components-sidebar.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block {
    margin: auto;
    width: 90%;
}

.wc-block-components-sidebar-layout.wc-block-checkout.is-mobile {
    margin: auto;
    width: 90%;
}

@media (min-width: 922px) {
    .site-content .ast-container {
        display: block;
    }
}
.ast-primary-header-bar {
    background-color: transparent;
}
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill {
    background: #111111;
}

@media only screen and (max-width: 976px) {
    .wp-block-uagb-container.wp-block-uagb-container.uagb-block-80f8b66e {
        padding: 112px 0 0;
    }
}

/* Section principale de réservation */
.reservation-highlight {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #111 100%);
    padding: 40px 20px;
    overflow: hidden;
    border-radius: 24px;
    margin: 40px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.reservation-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Contenu principal */
.reservation-content {
    position: relative;
}

.reservation-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reservation-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.title-highlight {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-secondary {
    color: #888;
    font-weight: 400;
}

.reservation-description {
    font-size: 1.15rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 40px;
    font-family: 'Outfit', sans-serif;
}

.reservation-description strong {
    color: #fff;
    font-weight: 600;
}

/* Features */
.reservation-features {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.2rem;
    filter: grayscale(100%) brightness(1.5);
}

.feature-item span {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    flex: 1;
}

/* CTA Section */
.reservation-cta {
    text-align: center;
}

.reserve-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #111;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.reserve-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.reserve-btn:hover::before {
    left: 100%;
}

.reserve-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.reserve-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.cta-subtitle {
    color: #888;
    font-size: 0.85rem;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Éléments décoratifs */
.decoration-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.dot-3 {
    bottom: 30%;
    left: 70%;
    animation-delay: 2s;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reservation-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .reservation-highlight {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .reservation-title {
        font-size: 2.2rem;
    }
    
    .reservation-features {
        justify-content: center;
    }
    
    .feature-item {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .reservation-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .reservation-title {
        font-size: 1.8rem;
    }
    
    .reserve-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}

.reservation-highlight{
    width: 89% !important;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-uagb-container.uagb-block-3343bbc9{
	  padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.wp-block-uagb-container.uagb-block-b32f0a0b{
	  margin-top: 0px !important;
	  padding-bottom: 0px !important;
}

.wp-block-uagb-separator__inner{
	  margin-top: 20px !important;
		margin-bottom: 20px !important;
}
@media (max-width: 544px) {
    .ast-header-break-point .ast-header-button-1[data-section="section-hb-button-1"] {
        display: block;
    }
}
.wp-block-uagb-container.uagb-block-80f8b66e::after {
  content: '';
  position: absolute;
  left: 76%;
  bottom: 197px;
  width: 90px;
  height: 90px;
  background: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511 511"><g transform="rotate(10 255 255)"><path d="M503.5,160H439v-0.5c0-12.958-10.542-23.5-23.5-23.5S392,146.542,392,159.5v0.5h-64.5c-4.142,0-7.5,3.358-7.5,7.5 s3.358,7.5,7.5,7.5H384v8.5c0,0.168,0.01,0.333,0.013,0.5h-48.357c-0.007,0-0.014,0-0.021,0H175.378c-0.013,0-0.026,0-0.039,0 h-48.352c0.003-0.167,0.013-0.332,0.013-0.5V175h56.5c4.142,0,7.5-3.358,7.5-7.5s-3.358-7.5-7.5-7.5H119v-0.5 c0-12.958-10.542-23.5-23.5-23.5S72,146.542,72,159.5v0.5H7.5c-4.142,0-7.5,3.358-7.5,7.5s3.358,7.5,7.5,7.5H64v8.5 c0,17.369,14.131,31.5,31.5,31.5c11.737,0,21.987-6.457,27.406-16h47.188l6.997,20.991C182.476,236.146,197.536,247,214.564,247 H248v17h-40.5c-17.369,0-31.5,14.131-31.5,31.5v48c0,17.369,14.131,31.5,31.5,31.5h96c17.369,0,31.5-14.131,31.5-31.5v-48 c0-17.369-14.131-31.5-31.5-31.5H263v-17h33.436c17.029,0,32.088-10.854,37.473-27.009L340.906,199h47.188 c5.419,9.543,15.669,16,27.406,16c17.369,0,31.5-14.131,31.5-31.5V175h56.5c4.142,0,7.5-3.358,7.5-7.5S507.642,160,503.5,160z"/></g><circle cx="268" cy="320" r="20" fill="red"><animate attributeName="opacity" values="1;0;1" dur="1s" repeatCount="indefinite"/></circle><g stroke="white" stroke-width="6" stroke-linecap="round"><line x1="100" y1="270" x2="50" y2="265" opacity="0.9"><animateTransform attributeName="transform" type="translate" values="0,-10;0,14;0,-6" dur="1.2s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.2;1;0.2" dur="1.2s" repeatCount="indefinite"/></line><line x1="110" y1="300" x2="60" y2="295" opacity="0.6"><animateTransform attributeName="transform" type="translate" values="0,-8;0,12;0,-4" dur="1.3s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.1;0.8;0.1" dur="1.3s" repeatCount="indefinite"/></line><line x1="120" y1="330" x2="70" y2="325" opacity="0.3"><animateTransform attributeName="transform" type="translate" values="0,-6;0,10;0,-2" dur="1.4s" repeatCount="indefinite"/><animate attributeName="opacity" values="0.05;0.6;0.05" dur="1.4s" repeatCount="indefinite"/></line></g></svg>') no-repeat center / contain;
  display: block;
  animation: droneFlight 3s ease-in-out infinite;
}

@media (max-width: 700px) {
    .wp-block-uagb-container.uagb-block-80f8b66e::after {
        left: 76%;
        bottom: 91px;
        width: 57px;
        height: 57px;
    }
}

/* Animation "vol" du drone */
@keyframes droneFlight {
  0%   { transform: translateX(-50%) translateY(0) rotate(10deg); }
  20%  { transform: translateX(-50%) translateY(8px) rotate(12deg); }
  40%  { transform: translateX(-50%) translateY(4px) rotate(8deg); }
  60%  { transform: translateX(-50%) translateY(10px) rotate(14deg); }
  80%  { transform: translateX(-50%) translateY(6px) rotate(11deg); }
  100% { transform: translateX(-50%) translateY(0) rotate(10deg); }
}

@media screen and (min-width: 977px) {
  /* uniquement le héro */
  .wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-80f8b66e > .uagb-container-inner-blocks-wrap {
    --inner-content-custom-width: unset;
    bottom: -287px; 
    position: relative; /* nécessaire pour le bottom */
  }

  .wp-block-uagb-container.uagb-block-80f8b66e {
    padding-top: 0px !important; 
  }
	.wp-block-uagb-container.wp-block-uagb-container.uagb-block-80f8b66e{
    overflow: hidden; 
  }
}
.ast-primary-header-bar,
.ast-primary-header-bar * {
    color: #fff !important;
    border-color: #fff !important;
}
.ast-primary-header-bar a {
    color: #fff !important;
    transition: color 0.18s;
}

/* Correction spécifique pour les pages panier et validation de commande */
body.woocommerce-cart .ast-primary-header-bar a,
body.woocommerce-checkout .ast-primary-header-bar a {
    color: #111 !important;
}

body.woocommerce-cart .ast-primary-header-bar .main-header-menu a,
body.woocommerce-checkout .ast-primary-header-bar .main-header-menu a {
    color: #111 !important;
}

/* Correction spécifique pour la page Spot Navigator */
body.page-template-page-spots-navigator .ast-primary-header-bar,
body[class*="spots-navigator"] .ast-primary-header-bar {
    color: #111 !important;
    border-color: #111 !important;
}

/* Cibler uniquement les éléments du menu, pas les boutons */
body.page-template-page-spots-navigator .ast-primary-header-bar .main-header-menu,
body.page-template-page-spots-navigator .ast-primary-header-bar .main-header-menu *,
body[class*="spots-navigator"] .ast-primary-header-bar .main-header-menu,
body[class*="spots-navigator"] .ast-primary-header-bar .main-header-menu * {
    color: #111 !important;
}

body.page-template-page-spots-navigator .ast-primary-header-bar .main-header-menu a,
body[class*="spots-navigator"] .ast-primary-header-bar .main-header-menu a {
    color: #111 !important;
}

body.page-template-page-spots-navigator .ast-primary-header-bar .main-header-menu a:hover,
body[class*="spots-navigator"] .ast-primary-header-bar .main-header-menu a:hover {
    color: #4CAF50 !important;
}

/* Garder le bouton "Réserver une prestation" en blanc */
body.page-template-page-spots-navigator .ast-primary-header-bar .ast-custom-button,
body.page-template-page-spots-navigator .ast-primary-header-bar .ast-custom-button *,
body[class*="spots-navigator"] .ast-primary-header-bar .ast-custom-button,
body[class*="spots-navigator"] .ast-primary-header-bar .ast-custom-button * {
    color: #fff !important;
}

/* Correction spécifique pour les pages de visites virtuelles */
body.page-template-virtual-tour-creator .ast-primary-header-bar,
body.page-template-virtual-tour-editor .ast-primary-header-bar,
body.page-template-page-hotspot-editor .ast-primary-header-bar {
    color: #111 !important;
    border-color: #111 !important;
}

body.page-template-virtual-tour-creator .ast-primary-header-bar .main-header-menu,
body.page-template-virtual-tour-creator .ast-primary-header-bar .main-header-menu *,
body.page-template-virtual-tour-editor .ast-primary-header-bar .main-header-menu,
body.page-template-virtual-tour-editor .ast-primary-header-bar .main-header-menu *,
body.page-template-page-hotspot-editor .ast-primary-header-bar .main-header-menu,
body.page-template-page-hotspot-editor .ast-primary-header-bar .main-header-menu * {
    color: #111 !important;
}

body.page-template-virtual-tour-creator .ast-primary-header-bar .main-header-menu a,
body.page-template-virtual-tour-editor .ast-primary-header-bar .main-header-menu a,
body.page-template-page-hotspot-editor .ast-primary-header-bar .main-header-menu a {
    color: #111 !important;
}

body.page-template-virtual-tour-creator .ast-primary-header-bar .main-header-menu a:hover,
body.page-template-virtual-tour-editor .ast-primary-header-bar .main-header-menu a:hover,
body.page-template-page-hotspot-editor .ast-primary-header-bar .main-header-menu a:hover {
    color: #2196f3 !important;
}

.ast-primary-header-bar a:focus {
    color: #2196f3 !important;
    text-decoration: none;
}
.ast-primary-header-bar .main-header-menu > .menu-item.current-menu-item > a {
    color: #2196f3 !important;
}
@media (max-width: 544px) {
    .ast-primary-header-bar.ast-primary-header {
        background: none;
    }
}

.wp-block-uagb-container.uagb-block-f684de37 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}
.custom-logo {
  transition: transform 0.3s ease-in-out;
}

.custom-logo:hover {
  transform: scale(1.1);
}

.custom-logo:active {
  transform: scale(0.95);
}
/* Effet rebond sur les items du menu */
.main-navigation a {
  display: inline-block; /* important pour que transform fonctionne */
  transition: transform 0.3s ease-in-out;
}

.main-navigation a:hover {
  transform: scale(1.1);
}

.main-navigation a:active {
  transform: scale(0.95);
}

/* ── Tableaux responsifs — cible directement .exp-content (template single-post.php) ── */

/* Conteneur scrollable ajouté par le filtre PHP ou le JS */
.ttp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 1.5em 0;
}

/* Annule TOUS les styles Astra qui cassent l'affichage tableau sur mobile.
   Double sélecteur .exp-content + .ttp-table-wrap pour couvrir les deux cas. */
@media (max-width: 900px) {

    .exp-content table,
    .ttp-table-wrap table,
    .entry-content table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        overflow-x: auto !important;
    }

    .exp-content table thead,
    .ttp-table-wrap table thead,
    .entry-content table thead { display: table-header-group !important; }

    .exp-content table tbody,
    .ttp-table-wrap table tbody,
    .entry-content table tbody { display: table-row-group !important; }

    .exp-content table tr,
    .ttp-table-wrap table tr,
    .entry-content table tr { display: table-row !important; }

    .exp-content table th,
    .exp-content table td,
    .ttp-table-wrap table th,
    .ttp-table-wrap table td,
    .entry-content table th,
    .entry-content table td {
        display: table-cell !important;
        min-width: 100px !important;
        padding: 8px 12px !important;
        vertical-align: top !important;
        white-space: normal !important;
    }

    .exp-content table th,
    .ttp-table-wrap table th,
    .entry-content table th {
        color: #fff !important;
        background-color: #2c3e50 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    /* Supprime les labels ::before qu'Astra injecte en mode "card" sur mobile */
    .exp-content table td::before,
    .exp-content table th::before,
    .ttp-table-wrap table td::before,
    .ttp-table-wrap table th::before,
    .entry-content table td::before,
    .entry-content table th::before {
        display: none !important;
        content: '' !important;
    }
}
