@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --card-bg: rgba(255, 255, 255, 0.9);
    --radius-lg: 30px;
    --radius-md: 20px;
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Vibrant Accent Colors */
    --accent-blue: #4facfe;
    --accent-pink: #fa709a;
    --accent-yellow: #facc22;
    --accent-purple: #a18cd1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: #fdfbfb;
    /* Soft colorful mesh gradient background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(250, 112, 154, 0.4) 0px, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(79, 172, 254, 0.4) 0px, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(250, 204, 34, 0.4) 0px, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(161, 140, 209, 0.4) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.dopa-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo a {
    color: var(--accent-blue);
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

nav a.active, nav a:hover {
    background-color: var(--white);
    color: var(--accent-pink);
    box-shadow: var(--shadow-soft);
}

/* Home Page */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    margin-bottom: 2rem;
}

.animate-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.animate-title span {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 1.5rem 4rem;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 20px rgba(161, 140, 209, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(161, 140, 209, 0.6);
}

.cta-btn:active {
    transform: translateY(1px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: none;
    border: 2px solid var(--accent-purple);
}

.secondary-btn:hover {
    background: rgba(161, 140, 209, 0.1);
    box-shadow: 0 8px 20px rgba(161, 140, 209, 0.2);
}

/* Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dopa-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dopa-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-placeholder {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.hq-paris { background: linear-gradient(45deg, #a1c4fd, #c2e9fb); }
.gare-lyon { background: linear-gradient(45deg, #fbc2eb, #a6c1ee); }
.cafe-coin { background: linear-gradient(45deg, #ffecd2, #fcb69f); }

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.score {
    background-color: var(--accent-yellow);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.card-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.5rem; }
.tag { font-weight: 600; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.9rem; color: white; }
.tag-proprete { background-color: var(--accent-blue); }
.tag-confort { background-color: var(--accent-pink); }

/* Full Page Review Form */
.review-page {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.full-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    max-width: 100%;
}

.form-group {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: none;
}

.form-group label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.8rem;
}

.req {
    color: var(--accent-pink);
    font-weight: 900;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    border: 3px solid var(--black);
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 4px 4px 0 rgba(44,44,44,0.1);
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

/* JS Star Rating UI */
.star-rating-js {
    display: inline-flex;
    justify-content: center;
    background-color: #fff;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.star-rating-js:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.star-wrap {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 8px;
    cursor: crosshair;
}

.star-wrap:last-child {
    margin-right: 0;
}

.star-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.star-fill {
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; 
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-bg svg {
    width: 50px; height: 50px;
    fill: #f0f0f0;
}

.star-fill svg {
    width: 50px; height: 50px;
    fill: var(--accent-yellow);
}

.submit-btn-container {
    margin-top: auto; 
    text-align: right;
    padding-top: 2rem;
}

.submit-btn {
    font-size: 1.3rem;
    padding: 1.2rem 3.5rem;
    width: auto;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: white;
    color: var(--text-main);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(250, 112, 154, 0.2);
    border: 2px solid var(--accent-pink);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0;
    z-index: 10000;
    pointer-events: none;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

footer {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-weight: 600;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Complete Mobile Responsiveness */
@media (max-width: 768px) {
    .dopa-header {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .animate-title {
        font-size: 2.8rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .review-page {
        padding: 1rem;
        min-height: calc(100vh - 140px);
    }

    .full-form {
        padding: 2rem;
        border-radius: 20px;
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 1.1rem;
    }

    .star-wrap {
        width: 38px;
        height: 38px;
        margin-right: 4px;
    }
    
    .star-bg svg, .star-fill svg {
        width: 38px;
        height: 38px;
    }
    
    .star-rating-js {
        padding: 0.8rem;
        width: 100%;
    }

    .submit-btn-container {
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .toast {
        font-size: 1rem;
        padding: 1rem;
        bottom: 1rem;
    }
    
    .cta-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.3rem;
    }
}
