/* =========================================
   1. VARIABLES & THÈME (Palette Logo)
   ========================================= */
:root {
    /* Couleurs du Logo DAYLY */
    --logo-red: #FF4B5C;      /* Corail */
    --logo-purple: #845EC2;   /* Violet */
    --logo-yellow: #FFC75F;   /* Jaune */
    --logo-teal: #00D2FC;     /* Sarcelle */
    --logo-black: #1F2024;    /* Noir Profond */

    /* Mapping fonctionnel */
    --primary-color: var(--logo-red);
    --primary-hover: #e03e4e;
    --text-dark: var(--logo-black);
    --text-medium: #555;
    --text-light: #888;
    
    --background-light: #F8F9FC;
    --background-white: #ffffff;
    
    --border-light: #eaeaea;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 15px 35px rgba(31, 32, 36, 0.06);

    --font-family-sans: 'Poppins', sans-serif;

    /* Dimensions */
    --container-width: 1200px; /* Largeur standard demandée */
    --header-height: 90px;
    --padding-section-vertical: 110px;
}

/* =========================================
   2. RESET & STYLES GÉNÉRAUX
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Conteneur Principal */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

/* Typographie */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
}

h1 {
    font-size: 3.5em;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.8em;
    font-weight: 800;
    text-align: center;
}

h3 { font-size: 2.2em; }
h4 { font-size: 1.5em; }

p {
    margin-bottom: 1.5em;
    color: var(--text-medium);
    font-size: 1.1em;
}

/* Texte Dégradé */
.highlight-gradient {
    background: linear-gradient(90deg, var(--logo-red), var(--logo-purple), var(--logo-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   3. BOUTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 75, 92, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 75, 92, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border-color: var(--border-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.full-width-btn { width: 100%; }

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav, .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05em;
}

.nav-links li a:hover { color: var(--primary-color); }

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    padding: 120px 0;
    background: radial-gradient(circle at top right, rgba(255, 75, 92, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 210, 252, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1; }

.hero-description {
    font-size: 1.25em;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-sub-info p {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-visual {
    flex: 1.2;
    position: relative;
}

.hero-app-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s ease;
}

.hero-app-image:hover { transform: translateY(-5px); }

/* =========================================
   6. SECTION PROBLÈME / SOLUTION
   ========================================= */
.problem-solution-section {
    padding: var(--padding-section-vertical) 0;
    background-color: var(--background-white);
}

.problem-solution-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.left-content, .right-cards { flex: 1; }

.solution-card {
    background-color: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.icon-box.warning {
    background-color: rgba(255, 75, 92, 0.1);
    color: var(--logo-red);
}

.icon-box.success {
    background-color: rgba(0, 210, 252, 0.1);
    color: var(--logo-teal);
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.card-subtitle { margin: 0; font-size: 0.95em; }

.center-image { flex: 1.3; }
.center-image img { width: 100%; border-radius: 20px; }

/* =========================================
   7. SECTION FONCTIONNALITÉS (MODULES)
   ========================================= */
.features-overview-section { padding: var(--padding-section-vertical) 0; }

.features-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.feature-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-tag-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.feature-tag-btn:hover, .feature-tag-btn.active {
    border-color: var(--text-dark);
    background-color: var(--text-dark);
    color: white;
}

.feature-grid {
    display: grid;
    /* Ajustement grille pour conteneur 1200px */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--background-white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Wrapper de l'image (Aperçu) */
.feature-image-wrapper {
    width: 100%;
    /* Ratio 4:3 pour afficher l'image presque en entier */
    aspect-ratio: 4/3; 
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-bottom: 1px solid var(--border-light);
    cursor: zoom-in; /* Curseur Loupe */
    z-index: 1;
}

/* L'image à l'intérieur */
.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Effet de zoom au survol */
.feature-item:hover .feature-image-wrapper img {
    transform: scale(1.1); /* Zoom léger à 110% */
}

/* Icône loupe au centre au survol */
.feature-image-wrapper::after {
    content: '\f00e'; /* FontAwesome search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    pointer-events: none; /* Permet le clic sur l'image */
}

.feature-item:hover .feature-image-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Badge (Cache au survol pour mieux voir l'image) */
.overlay-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-item:hover .overlay-badge {
    opacity: 0;
    transform: translateY(-10px);
}

.feature-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* Icônes thématiques */
.icon-color-1 { color: var(--logo-purple); background: rgba(132, 94, 194, 0.1); padding: 8px; border-radius: 10px; }
.icon-color-2 { color: var(--logo-red); background: rgba(255, 75, 92, 0.1); padding: 8px; border-radius: 10px; }
.icon-color-3 { color: var(--logo-yellow); background: rgba(255, 199, 95, 0.1); padding: 8px; border-radius: 10px; }
.icon-color-4 { color: var(--logo-teal); background: rgba(0, 210, 252, 0.1); padding: 8px; border-radius: 10px; }

/* =========================================
   8. MODAL D'IMAGE (LIGHTBOX)
   ========================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show { opacity: 1; }

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--logo-red);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1em;
}

/* =========================================
   9. TÉMOIGNAGES & FAQ
   ========================================= */
.testimonials-faq-section {
    padding: var(--padding-section-vertical) 0;
    background-color: var(--background-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.testimonial-card {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 24px;
    position: relative;
}

.quote-icon {
    font-size: 2.5em;
    color: var(--logo-purple);
    opacity: 0.15;
    position: absolute;
    top: 30px;
    left: 30px;
}

.testimonial-card p {
    font-size: 1.15em;
    font-weight: 500;
    font-style: italic;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
}

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; }

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    margin-bottom: 15px;
    background: white;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding-bottom: 25px;
    max-height: 200px;
}

/* =========================================
   10. SECTION PRIX
   ========================================= */
.pricing-cta-section {
    padding: var(--padding-section-vertical) 0;
    background: linear-gradient(135deg, var(--logo-purple) 0%, var(--logo-red) 50%, var(--logo-yellow) 100%);
    color: white;
}

.pricing-cta-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.pricing-text h3 { color: white; margin-bottom: 10px; }
.pricing-text p { color: rgba(255,255,255,0.9); font-size: 1.2em; }

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    color: var(--text-dark);
    min-width: 380px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--logo-teal);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card .price {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--logo-red);
    line-height: 1;
    margin: 20px 0;
}

.pricing-card .per-month { font-size: 0.4em; color: var(--text-medium); }

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.features-list li i { color: var(--logo-teal); }

/* =========================================
   11. FOOTER
   ========================================= */
.contact-cta-section {
    padding: 100px 0;
    text-align: center;
    background: white;
}
.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-footer {
    background-color: var(--logo-black);
    color: white;
    padding: 80px 0 30px 0;
}

.footer-logo-img {
    height: 35px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 { color: white; margin-bottom: 25px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--logo-yellow); }

.social-icons a { font-size: 1.5em; margin-right: 20px; transition: 0.3s; }
.social-icons a:hover { color: var(--logo-red); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.4);
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .hero-content-wrapper { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-text { max-width: 100%; }
    
    .problem-solution-container { flex-direction: column; text-align: center; }
    .solution-card { justify-content: center; }
    .center-image { margin: 30px 0; max-width: 80%; }
    
    .pricing-cta-container { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; text-align: center; }
    
    .main-nav .nav-links, .main-nav .nav-icons { display: none; }
    .hamburger-menu { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-soft);
    }
    
    .feature-grid { grid-template-columns: 1fr; }
}