/* --- CONFIGURATION GLOBALE --- */
:root {
    --main-font: 'Rethink Sans', sans-serif;
    --text-color: #2E2400;
    --bg-color: #FDFDFD; /* Fond blanc cassé, plus fidèle à la maquette */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--main-font);
    background-color: var(--bg-color);
    color: var(--text-color);
}
main {
    /* Ce conteneur principal permet de gérer le flux des sections */
    display: block; 
}

/* --- HEADER --- */
.main-header {
    background-color: #FFFFFF;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #EAEAEA;
    box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
    z-index: 1000; /* S'assure qu'il est au-dessus des autres éléments */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Ombre subtile pour le relief */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
}

.btn-download {
    background-color: var(--text-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* --- SECTION HERO --- */
.hero-section {
    position: relative; /* Contexte de positionnement pour les images flottantes */
    width: 100vw;
    min-height: 100vh; /* Utilise la hauteur minimale pour s'adapter */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Ajoute un padding pour ne pas être caché par le header */
    box-sizing: border-box;
    background-color: #F7F7F7;
}

/* --- LOGO --- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
}

.logo {
    width: 48px;
    margin-right: 12px;
}

/* --- BADGE DE NOTATION --- */
.rating-badge {
    top: 5rem;
    background-color: #FFFFFF; /* Fond blanc */
    color: var(--text-color);
    padding: 10px 22px; /* Plus de padding pour l'agrandir */
    border-radius: 25px; /* Ajustement du radius */
    font-size: 16px; /* Police plus grande */
    font-weight: 700; /* Plus gras */
    border: 1px solid #EAEAEA; /* Bordure fine pour la visibilité */
    box-shadow: none; /* On enlève l'ombre */
    animation: fadeInSlideUp 0.8s 0.5s ease-out backwards; /* Ajout de l'animation */
}

/* --- KEYFRAMES POUR ANIMATIONS --- */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- TITRE PRINCIPAL --- */
.hero-content {
    display: flex;
    margin-top: 5rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Espace entre les lignes du titre */
    transform: translateY(-15%); /* Décale le bloc vers le haut */
}

.title-line {
    margin: 0;
    font-weight: 600; /* SemiBold */
    /* Taille de police fluide qui s'adapte à la taille de l'écran mais reste dans des limites */
    font-size: clamp(3rem, 10vw, 9rem); /* min, idéal, max */
    line-height: 1;
    text-shadow: 0px 4px 15px rgba(46, 36, 0, 0.1); /* Ombre portée subtile */
}

/* --- IMAGE ASSISTANT --- */

.assistant-image {
    width: clamp(20rem, 50vw, 45rem);
    height: auto;
    margin: -1rem 0 -5rem; /* Ajustement vertical pour rapprocher les textes */
}

/* --- BOUTONS APP STORES --- */
.store-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem; /* Espace sous le titre */
}

.app-store-badge img {
    height: 50px; /* Hauteur du badge */
    transition: transform 0.2s ease-out;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}


/* --- IMAGES DÉCORATIVES FLOTTANTES --- */
.deco-image {
    position: absolute;
    pointer-events: none; /* Empêche les images de bloquer les clics */
}

/* Positionnement précis de chaque carte */
.card-matieres {
    top: 15%;
    right: 3%;
    width: clamp(200px, 25vw, 420px);
}
.card-cours {
    bottom: 0%;
    right: 0%;
    width: clamp(250px, 32vw, 550px);
}
.card-moyenne {
    bottom: 10%;
    left: 5%;
    width: clamp(150px, 18vw, 280px);
}
.card-td {
    bottom: 28%;
    left: 22%;
    width: clamp(180px, 22vw, 350px);
    top: 20%; /* On la positionne depuis le haut */
    left: 5%; /* On la décale vers la gauche de l'écran */
    width: clamp(150px, 38vw, 380px); /* On réduit un peu sa taille pour l'harmonie */
}

/* --- SECTION FONCTIONNALITÉS --- */
.features-section {
    padding: 80px 60px;
    background-color: #FFFFFF;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #555;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 100px; /* Espace vertical entre chaque fonctionnalité */
    max-width: 1100px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-row--reverse {
    flex-direction: row-reverse;
}

.feature-image, .feature-text {
    flex: 1; /* Chaque partie prend 50% de la largeur */
}

.feature-image img {
    width: 100%;
    max-width: 450px; /* Taille augmentée pour plus d'impact */
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Centre l'image si elle est plus petite que son conteneur */
}

.feature-text {
    text-align: left;
}

.feature-text h3 {
    font-size: 2.25rem; /* Police plus grande pour le titre */
    font-weight: 700;
    margin: 0 0 16px 0;
}

.feature-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px; /* Espace avant les avantages */
}

.feature-advantages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-advantages li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #333;
}

.advantage-number {
    background-color: #FFD133; /* Jaune du logo */
    color: var(--text-color);
    font-weight: 700;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Empêche le cercle de se déformer */
}

/* --- SECTION AVIS --- */
.reviews-section {
    padding: 80px 60px;
    background-color: #F7F7F7; /* Couleur de fond alternée */
    text-align: center;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px; /* Espace sous le titre de la section */
}

.review-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    flex-basis: 300px;
    flex-grow: 1;
    max-width: 380px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

.review-header {
    margin-bottom: 16px;
}

.review-header h3 {
    margin: 8px 0 0 0;
    font-size: 1.1rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.review-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    margin: 0;
}

/* --- SECTION MOT DU DÉVELOPPEUR --- */
.dev-note-section {
    padding: 80px 60px;
    background-color: #FFFFFF;
    text-align: center;
}

.dev-note-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dev-note-section .section-title {
    margin-bottom: 24px;
}

.dev-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: #555;
    margin-bottom: 24px;
}

.dev-signature {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

/* --- SECTION APPEL À L'ACTION (CTA) --- */
.cta-section {
    padding: 80px 20px;
    text-align: center;
}

.closing-image {
    max-width: 100%;
    height: auto;
    max-height: 600px; /* Taille augmentée pour plus d'impact visuel */
}

/* --- FOOTER --- */
.main-footer {
    background-color: #F7F7F7;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-out;
}

.footer-links a:hover {
    color: var(--text-color);
}

.copyright {
    font-size: 14px;
    color: #888;
    margin: 0;
}


/* --- RESPONSIVITÉ POUR TABLETTES ET MOBILES --- */

/* Pour les tablettes */
@media (max-width: 1024px) {
    .title-line {
        font-size: clamp(3rem, 12vw, 8rem);
    }
    .assistant-image {
        width: clamp(20rem, 60vw, 45rem);
    }
    /* On rapproche un peu les cartes */
    .card-matieres { top: 10%; right: 4%; }
    .card-cours { bottom: 8%; right: 2%; }
    .card-moyenne { bottom: 6%; left: 3%; }
    .card-td { display: none; } /* On cache la carte la moins importante pour aérer */
}

/* Pour les mobiles */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
        justify-content: center; /* Centre le logo sur mobile */
    }
    .btn-download {
        display: none; /* Cache le bouton de téléchargement sur mobile */
    }
    .main-nav {
        display: none; /* Cache la navigation sur mobile pour simplifier */
    }

    .logo-link span {
        display: none; /* On cache le texte "Noteo" à côté du logo */
    }

    /* On cache toutes les cartes décoratives pour ne pas surcharger */
    .deco-image {
        display: none;
    }
    
    .hero-content {
        /* On recentre parfaitement le titre */
        position: absolute;
        width: 90%;
    }

    .features-section {
        padding: 60px 20px;
    }

    .feature-row, .feature-row--reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .reviews-section {
        padding: 60px 20px;
    }

    .dev-note-section {
        padding: 60px 20px;
    }

    .cta-section {
        padding: 60px 20px;
    }
}

/* --- PAGE FAQ --- */
.faq-section {
    padding: 120px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 16px;
}

.faq-header p {
    font-size: 1.2rem;
    color: #555;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    background-color: #FFFFFF;
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Supprime la flèche par défaut */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none; /* Supprime la flèche par défaut sur Chrome/Safari */
}

.faq-question::after {
    content: '+'; /* Icône pour l'état fermé */
    font-size: 1.5rem;
    font-weight: 400;
}

.faq-item[open] .faq-question::after {
    content: '−'; /* Icône pour l'état ouvert */
}

.faq-answer {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.6;
}

/* --- PAGES LÉGALES (Confidentialité, etc.) --- */
.legal-page-section {
    padding: 120px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.legal-page-section h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 16px;
}

.legal-page-section .last-updated {
    color: #888;
    margin-bottom: 40px;
}

.legal-page-section h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 16px;
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 8px;
}

.legal-page-section h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-page-section p, .legal-page-section li {
    line-height: 1.7;
    color: #555;
}

.legal-page-section ul {
    padding-left: 20px;
}

.legal-page-section a {
    color: var(--text-color);
    font-weight: 600;
}

/* --- PAGE CONTACT --- */
.contact-section {
    padding: 120px 20px 80px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 16px;
}

.contact-header p {
    font-size: 1.2rem;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    font-family: var(--main-font);
    font-size: 1rem;
    background-color: #FFFFFF;
}

.btn-submit {
    background-color: var(--text-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease-out;
}

.btn-submit:hover {
    opacity: 0.85;
}

/* --- PAGE SUPPRESSION DES DONNÉES --- */
.data-deletion-section {
    padding: 120px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.deletion-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.deletion-option {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px;
}

.deletion-option h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.deletion-option ol {
    padding-left: 20px;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .deletion-options {
        grid-template-columns: 1fr;
    }
}
}