
/* Importation des styles de base identiques à la home */
@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 identiques à la home */
#primary {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 !important;
    padding: 0 !important;
}

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

/* Hero Section - Pleine largeur avec optimisation pour photo 640x640 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: -20px;
}

.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 center;
    filter: 
        contrast(1.15) 
        brightness(1.1) 
        saturate(1.25) 
        hue-rotate(5deg) 
        drop-shadow(0 0 20px rgba(0,0,0,0.1));
}

/* Ajustements spécifiques pour mobile avec photo carrée */
@media (max-width: 768px) {
    .hero-bg-image {
        object-position: center center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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: #1A2E3B;
    max-width: 900px;
    padding: 0 24px;
}

.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: #f8f9fa;
    text-shadow: 
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6),
        2px 2px 6px rgba(0, 0, 0, 0.4),
        -2px -2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}



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

/* Sur PC 13 pouces, 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 : saut de ligne entre les deux parties */
@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;
    }
}

.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);
}

/* Section 2: Story - Pleine largeur avec optimisation pour photo verticale 468x1040 */
.story-section {
    background: var(--white);
    padding: 0;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: none; /* Suppression de la limite de largeur */
    margin: 0;
    min-height: 700px;
}

.story-text {
    background: linear-gradient(135deg, 
        var(--primary-green) 0%,
        var(--secondary-green) 30%,
        var(--accent-yellow) 100%);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.story-text h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 32px;
    text-align: left;
    line-height: 1.3;
}

.story-text p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
    hyphens: auto;
}

.story-text strong {
    color: white;
    font-weight: 600;
}

.story-text em {
    color: white;
    font-style: italic;
    font-weight: 500;
}

.highlight-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid white;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

.highlight-section p {
    margin-bottom: 16px;
}

.highlight-section p:last-child {
    margin-bottom: 0;
}

.kitelover-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.kitelover-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.kitelover-features li::before {
    content: "🌊";
    position: absolute;
    left: 0;
    top: 0;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    margin-top: 24px;
    align-self: flex-start;
}

.cta-button:hover {
    background: #E6B94F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.story-image {
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimisation pour photo verticale 468x1040 */
    object-position: center center;
    transition: var(--transition);
}

.story-image:hover img {
    transform: scale(1.02);
}

/* Section 3: Features - uniformisation et corrections */
.features-section {
    background: var(--white);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-yellow));
}

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

.feature-header {
    margin-bottom: 24px;
}

.feature-number {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-right: 12px;
    display: inline-block;
}

.feature-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: inline;
}

/* Contenu uniformisé pour toutes les cartes */
.feature-content {
    margin-bottom: 20px;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: justify;
}

.feature-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.feature-content em {
    color: var(--primary-green);
    font-style: italic;
}

/* Personas content pour la carte 1 */
.persona {
    margin-bottom: 16px;
}

.persona h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.personas-conclusion {
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 16px !important;
}

.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-checklist li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Liens comme dans home - style map-link */
.feature-link {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    text-shadow: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.feature-link:hover {
    color: var(--secondary-green);
    border-bottom-color: var(--primary-green);
}

/* Emojis animés */
.emoji-animate {
    display: inline-block;
    margin-right: 8px;
    transition: var(--transition);
}

.emoji-animate.heart {
    animation: heartbeat 2s ease-in-out infinite;
}

.emoji-animate.island {
    animation: float 3s ease-in-out infinite;
}

.emoji-animate.kite {
    animation: kiteWave 2.5s ease-in-out infinite;
}

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

@keyframes heartbeat {
    0%, 50%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    75% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .story-image {
        order: -1;
        min-height: 400px;
    }
    
    /* Ajustement pour photo verticale sur tablette */
    .story-image img {
        object-position: center top;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
        padding: 0 16px;
    }

    .story-section {
        padding: 0;
    }
    
    .story-text {
        padding: 40px 30px;
    }
    
    .story-image {
        min-height: 350px;
    }
    
    /* Optimisation mobile pour photo verticale */
    .story-image img {
        object-position: center 20%; /* Montre le haut de l'image verticale */
    }

    .features-section {
        padding: 50px 0;
    }

    .feature-card {
        padding: 30px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 500px;
    }

    .story-text {
        padding: 30px 20px;
    }
    
    .story-image {
        min-height: 300px;
    }

    .features-section {
        padding: 40px 0;
    }

    .feature-card {
        padding: 24px;
    }
}

/* Corrections spécifiques Astra - force la pleine largeur */
.ast-container {
    padding: 0 !important;
}

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

/* FORCE la pleine largeur pour les sections 1 et 2 */
.hero-section,
.story-section {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    left: 0;
    right: 0;
}

.entry-content {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

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

/* S'assurer que le contenu parent ne limite pas */
.ast-single-post #primary,
.ast-page-builder-template #primary {
    max-width: none !important;
    width: 100% !important;
}

/* Container parent override */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    max-width: none !important;
}

body .site-content .ast-container {
    max-width: none !important;
}

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

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

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

/* Animations d'entrée */
@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; }
}

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