:root {
    --nf2-primary: #4a5f7f;
    --nf2-secondary: #5dade2;
    --nf2-accent: #e74c3c;
    --nf2-success: #27ae60;
    --nf2-bg: rgba(52, 152, 219, 0.05);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.nf2-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.nf2-hero {
    background: linear-gradient(135deg, var(--nf2-primary) 0%, var(--nf2-secondary) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
    color: white;
    box-shadow: var(--card-shadow);
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Video Section */
.nf2-video-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: var(--nf2-bg);
    border-radius: 24px;
}

.video-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--nf2-primary) 0%, var(--nf2-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.video-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Story Section */
.nf2-story {
    margin: 4rem 0;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
}

.story-block {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--nf2-secondary);
}

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

.story-block.highlight {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-left-color: var(--nf2-success);
}

.story-block.cta-block {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border-left-color: var(--nf2-accent);
}

.story-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
    vertical-align: middle;
}

.story-block h2 {
    font-size: 2rem;
    color: var(--nf2-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
}

.story-block .block-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.story-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Floating Images */
.content-with-image {
    position: relative;
}

.floating-image {
    max-width: 350px;
    margin: 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: white;
    padding: 1rem;
}

.floating-image.right {
    float: right;
    margin-left: 2rem;
}

.floating-image.left {
    float: left;
    margin-right: 2rem;
}

.floating-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.3);
}

.floating-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* Centered Images */
.images-row {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: flex-start;
}

.images-row .centered-image {
    max-width: 300px;
    margin: 0;
    flex: 1 1 300px;
}

.centered-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: white;
    padding: 1rem;
}

.centered-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.3);
}

.centered-image img {
    width: 100%;
    height: 200px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid var(--nf2-secondary);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.quote-box blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0 0 1rem 0;
    padding-left: 3rem;
    color: var(--nf2-primary);
    font-weight: 500;
}

.quote-translation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: var(--text-secondary);
}

.quote-box cite {
    display: block;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-right: 1rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--nf2-accent) 0%, #c0392b 100%);
    color: white;
}

.cta-button.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.cta-button.secondary {
    background: linear-gradient(135deg, var(--nf2-secondary) 0%, #2980b9 100%);
    color: white;
}

.cta-button.secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.4);
}

/* Gallery Section - Ultra Modern Carousel */
.nf2-gallery {
    margin: 4rem 0;
    padding: 4rem 2rem;
    background: var(--nf2-bg);
    border-radius: 24px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--nf2-primary) 0%, var(--nf2-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    cursor: pointer;
    overflow: hidden;
}

.carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.carousel-image-wrapper:hover img {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-image-wrapper:hover .carousel-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.overlay-content svg {
    animation: zoomPulse 2s infinite;
}

@keyframes zoomPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.carousel-nav {
    background: white;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--nf2-secondary);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--nf2-secondary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.4);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--nf2-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    transform: scale(1.3);
    background: rgba(52, 152, 219, 0.5);
}

.indicator.active {
    width: 32px;
    border-radius: 6px;
    background: var(--nf2-secondary);
}

.carousel-settings {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.auto-play-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.auto-play-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auto-play-toggle input:checked + .toggle-slider {
    background: var(--nf2-secondary);
}

.auto-play-toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.carousel-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nf2-secondary);
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
}

#current-slide-nf2 {
    font-size: 1.3rem;
    color: var(--nf2-primary);
}

.carousel-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.thumbnail-item {
    position: relative;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3);
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-item:hover .thumbnail-overlay {
    background: rgba(52, 152, 219, 0.3);
}

.thumbnail-item.active {
    border-color: var(--nf2-secondary);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.4);
}

.thumbnail-item.active .thumbnail-overlay {
    background: rgba(52, 152, 219, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .story-block {
        padding: 2rem 1.5rem;
    }
    
    .floating-image {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .floating-image.right,
    .floating-image.left {
        margin-left: 0;
        margin-right: 0;
    }
    
    .centered-image {
        max-width: 100%;
        margin: 1.5rem 0;
    }
    
    .images-row {
        flex-direction: column;
        align-items: center;
    }
    
    .images-row .centered-image {
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-container {
        gap: 0.5rem;
    }
    
    .carousel-nav {
        width: 48px;
        height: 48px;
    }
    
    .carousel-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .carousel-image-wrapper {
        height: 300px;
    }
    
    .carousel-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .carousel-indicators {
        justify-content: center;
    }
    
    .carousel-settings {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .carousel-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .thumbnail-item {
        height: 60px;
    }
    
    .video-header h2,
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .nf2-video-section,
    .nf2-gallery {
        padding: 2rem 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION THÉRAPIE GÉNIQUE - Styles spécifiques uniquement
   ═══════════════════════════════════════════════════════════════════════════ */

/* Le bloc utilise déjà .story-block, on ajoute juste la variante */
.story-block.gene-therapy-block {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-left-color: var(--nf2-success);
}

/* Styles pour les éléments internes */
.story-block .intro-text {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.story-block .intro-text strong {
    color: var(--nf2-secondary);
    font-weight: 600;
}

.story-block .highlight-text {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid var(--nf2-secondary);
    line-height: 1.8;
}

.story-block .subsection {
    margin: 2rem 0;
}

.story-block .subsection h3 {
    font-size: 1.5rem;
    color: var(--nf2-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.story-block .subsection-icon {
    font-size: 1.5rem;
}

.story-block .definition-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid var(--nf2-secondary);
    line-height: 1.8;
}

.story-block .definition-box strong {
    display: block;
    color: var(--nf2-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.story-block .highlight-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid var(--nf2-secondary);
    line-height: 1.8;
}

.story-block .highlight-box strong {
    color: var(--nf2-primary);
    font-weight: 600;
}

.story-block .source-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.story-block .source-note a {
    color: var(--nf2-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-block .source-note a:hover {
    color: var(--nf2-primary);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .story-block .subsection h3 {
        font-size: 1.3rem;
    }
}
