/* Intégration des polices (Remarque : vous devrez peut-être ajuster selon vos fichiers de police réels) */
@font-face {
    font-family: 'KeifySerif';
    src: url('path-to-your-serif-font.woff2') format('woff2'); /* Utilisez votre police Serif */
    font-weight: normal;
}

@font-face {
    font-family: 'KeifySans';
    src: url('path-to-your-sans-serif-font.woff2') format('woff2'); /* Utilisez votre police Sans-serif */
    font-weight: normal;
}

:root {
    /* Palette de couleurs de l'application */
    --bg-color: #f8f4ec;         /* Fond crème clair */
    --text-color: #3a3a3c;       /* Texte marron-noir profond */
    --accent-color: #ff914d;     /* Orange chaud/pêche */
    --container-bg: #ffffff;     /* Blanc pour les boîtes de contenu */
    --border-color: #e6e6e8;     /* Gris très clair */
    
    /* Couleurs des bulles d'accent */
    --bubble-pink: #f8d5dc;
    --bubble-lavender: #dccae7;
    --bubble-mint: #d4e7ca;
    --bubble-blue: #c2e0f4;
}

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

body {
    font-family: 'KeifySans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Pour éviter le défilement horizontal avec les bulles */
}

/* En-tête */
header {
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-color);
    position: relative; /* Pour l'icône de grille */
}

/* Titre de l'application (Serif) */
.brand-title {
    font-family: 'KeifySerif', serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icône de grille stylisée */
.grid-icon {
    width: 32px;
    height: 32px;
    background-color: var(--text-color); /* Couleur de l'icône */
    display: inline-block;
    margin-right: 10px;
    border-radius: 4px;
    /* Ajoutez votre icône SVG réelle ici pour un rendu précis */
}

/* Navigation */
nav a {
    font-family: 'KeifySans', sans-serif;
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
    opacity: 1;
    color: var(--accent-color);
}

/* Corps principal */
main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* Hero Section (Showcase) */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative; /* Pour les bulles flottantes */
}

/* Bulles de pensée colorées */
.thought-bubbles {
    position: absolute;
    top: -50px; /* Ajustez la position */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 150px; /* Espace pour les bulles */
    pointer-events: none; /* Ne pas interférer avec les clics */
}

.bubble {
    position: absolute;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bubble-pink { background-color: var(--bubble-pink); top: 0; left: 10%; }
.bubble-lavender { background-color: var(--bubble-lavender); top: 40px; right: 15%; }
.bubble-mint { background-color: var(--bubble-mint); bottom: 10px; left: 30%; }

/* Titres (Serif) */
h1, h2 {
    font-family: 'KeifySerif', serif;
    color: var(--text-color);
    font-weight: normal;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h2:first-child { margin-top: 0; }

p, ul {
    font-family: 'KeifySans', sans-serif;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
}

ul { padding-left: 1.5rem; }

/* Conteneurs avec coins arrondis */
.content-box {
    background: var(--container-bg);
    padding: 2.5rem;
    border-radius: 16px; /* Coins arrondis importants */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Ombre légère */
    margin-bottom: 2rem;
}

/* Boutons d'action */
.button-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px; /* Bouton très arrondi */
    text-decoration: none;
    font-family: 'KeifySans', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.button-primary:hover {
    background-color: #e67e3e; /* Teinte plus foncée au survol */
}

/* Pastilles de couleur d'accent */
.color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.dot-pink { background-color: var(--bubble-pink); }
.dot-lavender { background-color: var(--bubble-lavender); }
.dot-mint { background-color: var(--bubble-mint); }
.dot-blue { background-color: var(--bubble-blue); }

/* Pied de page */
footer {
    text-align: center;
    padding: 1.5rem;
    font-family: 'KeifySans', sans-serif;
    font-size: 0.85rem;
    color: #8e8e93; /* Gris similaire à l'application */
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

footer p { margin-bottom: 0; }

footer a {
    color: #8e8e93;
    text-decoration: none;
    margin: 0 0.5rem;
}