
/* Importation des styles de base */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700&family=Inter:wght@300;400;500;600&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --primary-green: #4ABDAC;
    --secondary-green: #3A9B8E;
    --accent-yellow: #FFD369;
    --text-dark: #1A2E3B;
    --text-light: #5A6C7D;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e9ecef;
    --shadow-subtle: 0 2px 8px rgba(26, 46, 59, 0.06);
    --shadow-medium: 0 4px 16px rgba(26, 46, 59, 0.1);
    --shadow-strong: 0 8px 25px rgba(26, 46, 59, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base styles */
#primary {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 !important; /* Supprimer la margin d'Astra */
    padding: 0 !important; /* Supprimer le padding d'Astra */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section 1: Hero redesign avec overlay optimisé */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -20px; /* Compenser le margin d'Astra */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    scale: 1.05;
    /* Nouveau filtre photo optimisé pour un rendu incroyable */
    filter: 
        contrast(1.15) 
        brightness(1.1) 
        saturate(1.25) 
        hue-rotate(5deg) 
        drop-shadow(0 0 20px rgba(0,0,0,0.1));
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Nouveau overlay plus subtil pour laisser briller l'image */
    background: linear-gradient(
        135deg,
        rgba(255, 105, 180, 0.02) 0%,
        rgba(74, 189, 172, 0.05) 25%,
        rgba(255, 211, 105, 0.03) 50%,
        rgba(26, 46, 59, 0.25) 80%,
        rgba(26, 46, 59, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 24px;
    padding-top:60px;
}



.hero-text {
    margin-bottom: 48px;
}

.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem)
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
     text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(74, 189, 172, 0.4),
        0 0 40px rgba(74, 189, 172, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    
}


/* Centrage sur tablette 13 pouces */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        white-space: nowrap;
        text-align: center;
        line-height: 1.1;
    }
    
    .mobile-break {
        display: inline; /* Garde sur une ligne sur tablette */
    }
}

/* Sur PC 13 pouces, "La Passion du Kite" reste sur une ligne */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero-title {
        white-space: nowrap;
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .mobile-break {
        display: inline;
    }
}

/* Mobile : "La Passion du Kite" doit rester sur UNE ligne */
@media (max-width: 767px) {
    .hero-title {
        white-space: nowrap;
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
    
    .mobile-break {
        display: block; /* Saut de ligne seulement entre "KiteLover," et "La Passion du Kite" */
    }
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.primary-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--text-dark);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: #FFE066;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2em;
}

.map-action {
    margin-top: 18px;
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    display: flex;
    margin-top: 80px; /* augmente pour descendre le bloc */
    gap: 12px; /* espace entre les boutons si plusieurs */
}

.map-link {
    display: inline-block;
    color: #FFD369;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent pour contraste sur photo */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.map-link:hover {
    color: #4ABDAC;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}


/* Section 2: Concept simplifié avec marges réduites */
.concept-section {
    background: var(--white);
    padding: 40px 0; /* Réduit de 60px à 40px */
}

.concept-content {
    max-width: 1000px;
    margin: 0 auto;
}

.concept-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px; /* Réduit de 40px à 30px */
    color: var(--primary-green);
    text-align: center;
}

.concept-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px; /* Réduit de 50px à 40px */
}

/* Style de base des encarts */
.feature-item {
  background-color: #ffffff; /* couleur neutre */
  border-radius: 10px;
  padding: 1em;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  cursor: pointer; /* rend clair que c’est interactif */
}

/* Texte intérieur : transition douce */
.feature-item strong,
.feature-item p {
  transition: color 0.3s ease;
}

/* Effet au survol d’un seul encart */
.feature-item:hover {
  transform: translateY(-3px);
  background-color: #4ABDAC; /* bleu océan */
  color: #ffffff;
}

/* Si tu veux accentuer le titre à l’intérieur */
.feature-item:hover strong {
  color: #ffffff;
}


@media (max-width: 1200px) {
    .concept-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .concept-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin:10px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(74, 189, 172, 0.05) 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-green);
    min-width: 0;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item strong {
    color: var(--text-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.concept-cta {
    margin-top:35px;
    text-align: center;
    padding: 30px;
    /* Dégradé corrigé avec le jaune comme les autres pages */
    background: linear-gradient(135deg, 
        var(--primary-green) 0%,
        var(--secondary-green) 30%,
        var(--accent-yellow) 100%);
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-medium);
}

.concept-cta p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections 3 & 4: Blog et Spots avec marges réduites */
.blog-section,
.spots-une-section {
    background: var(--bg-light);
    padding: 50px 0; /* Réduit de 80px à 50px */
}

.spots-une-section {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 30px; /* Réduit de 40px à 30px */
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px; /* Réduit de 16px à 12px */
    color: var(--primary-green);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grille responsive optimisée */
.histoires-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
    
    /* PC: 4 colonnes, 2 rangées = 8 images */
    grid-template-columns: repeat(4, 1fr);
}

/* Tablette: 3 colonnes, 2 rangées = 6 images */
@media (max-width: 1024px) and (min-width: 769px) {
    .histoires-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .histoire-card:nth-child(n+7) {
        display: none; /* Cache les images 7 et 8 sur tablette */
    }
}

/* Mobile: 1 colonne, 4 rangées = 4 images */
@media (max-width: 768px) {
    .histoires-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .histoire-card:nth-child(n+5) {
        display: none; /* Cache les images 5, 6, 7, 8 sur mobile */
    }
}

.histoire-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
    height: 200px;
    border: 1px solid var(--border-light);
}

.histoire-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.blog-link,
.spot-une-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.histoire-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.histoire-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.histoire-card:hover .histoire-image img {
    transform: scale(1.05);
}

.histoire-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-start;
    padding: 16px;
}

.continent-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.continent-title,
.spots-count {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-cta,.spots-cta {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: linear-gradient(135deg, 
        var(--primary-green) 0%,
        var(--secondary-green) 30%,
        var(--accent-yellow) 100%);
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-medium);
}

.blog-cta p,.spots-cta p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 24px;
    opacity: 0.95;
}

@media (max-width: 1800px) and (min-width: 1200px) {
  .hero-bg-image {
    object-position: 0% 30%;important /* descend un peu l’image (60% = plus bas que 50%) */
  }
  .hero-text {
    margin-top: -100px;
}
}

/* Responsive Design optimisé */
@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
  .hero-bg-image {
    object-position: 80% 20%; /* 80% horizontal (droite), 20% vertical (haut) */
  }

    
    .primary-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .concept-section {
        padding: 30px 0; /* Réduit encore plus sur mobile */
    }
    
    .concept-cta {
        padding: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .blog-section,
    .spots-une-section {
        padding: 40px 0; /* Réduit sur mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .concept-section {
        padding: 25px 0;
    }
    
    .feature-item {
        padding: 20px 16px;
    }
    
    .histoire-card {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .histoire-card:nth-child(1) { animation-delay: 0.1s; }
    .histoire-card:nth-child(2) { animation-delay: 0.2s; }
    .histoire-card:nth-child(3) { animation-delay: 0.3s; }
    .histoire-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations des emojis */
.emoji-animate {
    display: inline-block;
    margin-right: 10px;
    transition: var(--transition);
}

.hand-wave {
    animation: wave 2s ease-in-out infinite;
}

.wave {
    animation: waveMotion 3s ease-in-out infinite;
}

.fire {
    animation: flicker 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
}

@keyframes waveMotion {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(-2deg); }
    75% { transform: translateY(-2px) rotate(3deg); }
}

@keyframes flicker {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.05) rotate(2deg); opacity: 0.9; }
    50% { transform: scale(0.98) rotate(-1deg); opacity: 1; }
    75% { transform: scale(1.02) rotate(1deg); opacity: 0.95; }
}

/* Réduire les animations sur mobile */
@media (prefers-reduced-motion: reduce) {
    .emoji-animate {
        animation: none;
    }
}

/* Focus states pour l'accessibilité */
.btn:focus,
.map-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Corrections spécifiques pour override Astra */
.ast-container {
    padding: 0 !important;
}

.site-content {
    padding: 0 !important;
}

/* Assurer que l'image hero prend tout l'espace */
.hero-section {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .hero-section {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

/* Corrections additionnelles pour le thème Astra */
.entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.ast-single-post .entry-content, 
.ast-page-builder-template .entry-content {
    margin: 0 !important;
}

/* S'assurer que les sections ne débordent pas */
.concept-section,
.blog-section,
.spots-une-section {
    overflow-x: hidden;
}

/* Optimisations performances */
.hero-bg-image,
.histoire-image img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Amélioration accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Corrections responsive finales */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .concept-section {
        padding: 20px 0;
    }
    
    .feature-item {
        padding: 16px;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
}

/* Animations - Performance optimized */
@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    
    .histoire-card {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .histoire-card:nth-child(1) { animation-delay: 0.1s; }
    .histoire-card:nth-child(2) { animation-delay: 0.2s; }
    .histoire-card:nth-child(3) { animation-delay: 0.3s; }
    .histoire-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations des emojis */
.emoji-animate {
    display: inline-block;
    margin-right: 10px;
    transition: var(--transition);
}

.hand-wave {
    animation: wave 2s ease-in-out infinite;
}

.wave {
    animation: waveMotion 3s ease-in-out infinite;
}

.fire {
    animation: flicker 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
}

@keyframes waveMotion {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(-2deg); }
    75% { transform: translateY(-2px) rotate(3deg); }
}

@keyframes flicker {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.05) rotate(2deg); opacity: 0.9; }
    50% { transform: scale(0.98) rotate(-1deg); opacity: 1; }
    75% { transform: scale(1.02) rotate(1deg); opacity: 0.95; }
}

/* Réduire les animations sur mobile */
@media (prefers-reduced-motion: reduce) {
    .emoji-animate {
        animation: none;
    }
}

/* Focus states pour l'accessibilité */
.btn:focus,
.map-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}
