/* Custom Styles for iDem Agency RDV Page */

/* Colors - Design System Variables - iDem Agency Brand */
:root {
    --terciary: #336;
    --primary: #6366F1;
    --secondary: #3B82F6;
    --accent: #8B5CF6;
    --accent-light: #E8E9FB;
    --success: #22c55e;
    --error: #ef4444;
}

/* Font Import */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

h1 {
    font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

i.fa-regular, i.fa-solid {
    display: flex;
}


/* ========================================
   Custom Video Player Styles
   ======================================== */

.custom-video-player {
    position: relative;
    width: 100%;
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    background: linear-gradient(135deg, #333366 0%, #3B82F6 50%, #8B5CF6 100%);
    padding: 3px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-out;
}

/* Central Play Button Overlay */
.central-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.central-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animated Ring */
.central-play-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #333366 25%,
        #3B82F6 50%,
        #8B5CF6 75%,
        transparent 100%
    );
    animation: rotate-ring 3s linear infinite;
}

.central-play-ring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        transparent 0%,
        #8B5CF6 25%,
        #3B82F6 50%,
        #333366 75%,
        transparent 100%
    );
    animation: rotate-ring-reverse 3s linear infinite;
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-ring-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* Central Play Button */
.central-play-button {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-out;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.central-play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

.central-play-button:active {
    transform: scale(0.95);
}

.central-play-button i {
    font-size: 2.5rem;
    color: white;
    margin-left: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .central-play-ring {
        width: 100px;
        height: 100px;
    }

    .central-play-button {
        width: 80px;
        height: 80px;
    }

    .central-play-button i {
        font-size: 1.75rem;
        margin-left: 4px;
    }
}

.custom-video-player:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.custom-video-player video {
    display: block;
    width: 100%;
    background: #000;
    border-radius: 0.625rem;
}

/* Video Controls Container */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    padding: 1rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 2;
}

.custom-video-player:hover .video-controls,
.video-controls:focus-within {
    opacity: 1;
}

/* Control Buttons */
.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
    flex-shrink: 0;
}

.control-btn:hover {
    background: linear-gradient(135deg, #333366, #3B82F6, #8B5CF6);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

.play-pause-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
}

/* Progress Container */
.progress-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.2s ease-out;
}

.progress-bar:hover {
    height: 8px;
}

.progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #333366 0%, #3B82F6 50%, #8B5CF6 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;
    left: 0%;
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease-out;
}

.volume-control:hover .volume-slider-container {
    width: 80px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-out;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-out;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-webkit-slider-runnable-track {
    background: linear-gradient(90deg,
        #8B5CF6 0%,
        #8B5CF6 var(--volume-percentage, 100%),
        rgba(255, 255, 255, 0.2) var(--volume-percentage, 100%)
    );
    border-radius: 2px;
}

.volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.volume-slider::-moz-range-progress {
    background: #8B5CF6;
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .video-controls {
        padding: 0.75rem 0.75rem 1rem;
        gap: 0.5rem;
    }

    .control-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .play-pause-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .time-display {
        font-size: 0.625rem;
    }

    .volume-slider-container {
        display: none;
    }
}

/* Fullscreen Styles */
.custom-video-player:fullscreen {
    background: #000;
}

.custom-video-player:fullscreen video {
    max-height: 100vh;
}

.custom-video-player:fullscreen .video-controls {
    padding: 1.5rem 2rem 2rem;
}

/* ========================================
   Testimonial Video Cards
   ======================================== */

/* Grid Container */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 48rem;
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .testimonials-grid {
        max-width: 56rem;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 72rem;
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    .testimonials-grid {
        max-width: 80rem;
        gap: 2.5rem;
    }
}

/* Card (Flex Layout) */
.testimonial-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

/* Video Wrapper */
.testimonial-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.testimonial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay with Play Button */
.testimonial-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease-out;
}

.testimonial-card:hover .testimonial-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.testimonial-play-btn {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #333366;
    cursor: pointer;
    transition: all 0.3s ease-out;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-play-btn:hover {
    background: linear-gradient(135deg, #333366, #3B82F6, #8B5CF6);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4);
}

.testimonial-play-btn:active {
    transform: scale(0.95);
}

.testimonial-play-btn i {
    margin-left: 4px;
}

/* Badge avec infos */
.testimonial-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-name {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.2;
}

.testimonial-job {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.testimonial-stats {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(90deg, #333366 0%, #3B82F6 50%, #8B5CF6 100%);
    color: white;
    border-radius: 0.375rem;
    font-weight: 600;
    margin-top: 0.25rem;
    text-align: center;
}

/* Content section */
.testimonial-content {
    padding: 1.25rem 1.5rem;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .testimonial-play-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }

    .testimonial-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .testimonial-name {
        font-size: 0.875rem;
    }

    .testimonial-job {
        font-size: 0.75rem;
    }

    .testimonial-stats {
        font-size: 0.6875rem;
        padding: 0.25rem 0.375rem;
    }

    .testimonial-content {
        padding: 1rem 1.25rem;
    }

    .testimonial-text {
        font-size: 0.875rem;
    }

    .testimonial-author {
        font-size: 0.8125rem;
    }
}

/* Video Playing State */
.testimonial-video.playing + .testimonial-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Media Logos Section
   ======================================== */

.media-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .media-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .media-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .media-logos-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.media-logo {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease-out;
}

.media-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ========================================
   Comparison Section
   ======================================== */

.comparison-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .comparison-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.comparison-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-out;
}

.comparison-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

/* Illustration section */
.comparison-illustration {
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problems-card .comparison-illustration {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.solutions-card .comparison-illustration {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.illustration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.illustration-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 640px) {
    .illustration-diagram {
        flex-direction: row;
        justify-content: center;
    }
}

.diagram-step {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    white-space: nowrap;
}

.diagram-step.problem {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.diagram-step.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.diagram-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #94a3b8;
}

/* List section */
.comparison-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}

.comparison-item i {
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-top: 0.125rem;
}

.comparison-item.problem i {
    color: var(--error);
}

.comparison-item.solution i {
    color: var(--success);
}

.comparison-item p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .comparison-illustration {
        padding: 1.5rem;
        min-height: 160px;
    }

    .illustration-content i {
        font-size: 3rem;
    }

    .diagram-step {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .diagram-arrow {
        font-size: 1.25rem;
    }

    .comparison-list {
        padding: 1.5rem;
        gap: 1rem;
    }

    .comparison-item {
        font-size: 0.875rem;
    }

    .comparison-item i {
        font-size: 1.25rem;
    }
}