@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #DBFEBE;
    --secondary-color: #ff4013;
    --background-color: #1e2430;
    --text-color: #ffffff;
    --input-background: rgba(255, 255, 255, 0.1);
    --ribbon-color: #ff4013;
    --section-background: linear-gradient(145deg, #1e2430, #2a3241);
    --section-title-color: #ffe2d6;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    flex: 1;
}

.logo-link {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 100px;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

input[type="text"], input[type="email"], button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"], input[type="email"] {
    background-color: var(--input-background);
    color: var(--text-color);
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: #1e2430;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: var(--secondary-color);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

button:hover::after {
    left: 100%;
}

#loading {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#result, #contactForm {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 5px;
}

#result {
    background-color: rgba(255, 255, 255, 0.1);
}

#contactForm {
    background-color: rgba(66, 133, 244, 0.2);
    border: 2px solid var(--primary-color);
}

#contactForm h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
}

#contactForm p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid var(--ribbon-color);
    border-top-color: transparent;
    border-right-color: transparent;
}

.ribbon::before {
    top: 0;
    left: 0;
}

.ribbon::after {
    bottom: 0;
    right: 0;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 15px 0;
    background-color: var(--ribbon-color);
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    color: #fff;
    font: 700 18px/1 'Roboto', sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

/* Styles pour le template d'audit */
.audit-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.audit-container h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.audit-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--section-background);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.audit-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.audit-section h3 {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: bold;
    text-transform: none;
    letter-spacing: 1px;
}

.audit-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.strengths ul, .suggestions ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.strengths li, .suggestions li {
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.strengths li:hover, .suggestions li:hover {
    transform: translateX(5px);
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-overview {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating {
    font-size: 2rem;
    font-weight: bold;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.rating-bar {
    height: 10px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
    flex-grow: 1;
}

.review-count {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin-top: 20px;
    }
    h1 {
        font-size: 2rem;
    }
    .ribbon {
        width: 100px;
        height: 100px;
    }
    .ribbon span {
        width: 150px;
        padding: 10px 0;
        font-size: 14px;
        left: -35px;
        top: 20px;
    }
    .audit-container h2 {
        font-size: 1.5rem;
    }
    .audit-section h3 {
        font-size: 1.2rem;
    }
    .audit-section h4 {
        font-size: 1rem;
    }
}