/*
Theme Name: Clever Quokka Theme
Author: Adrien
*/

/* 1. VARIABLES & RESET */
:root{
  --bg: #FDFBF7;
  --card: #FFFFFF;
  --text: #4A3B32;
  --muted: #857066;
  --line: #EDE8E1;
  --accent: #C26D45;
  --accent-light: #FAF0EA;
  --green: #5E8C61; 
  --shadow: 0 12px 36px -6px rgba(74, 59, 50, 0.08);
  --shadow-sm: 0 4px 12px rgba(74, 59, 50, 0.05);
  --radius: 16px;
  --max: 1080px;
}

/* Reset basique pour le template */
.quokka-wrapper * { box-sizing:border-box; }
.quokka-wrapper {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  background-image: radial-gradient(#E8E3DC 1px, transparent 1px);
  background-size: 40px 40px;
  margin: 0; 
  padding-bottom: 60px;
}

/* Typo */
.quokka-wrapper h1, .quokka-wrapper h2, .quokka-wrapper h3, .quokka-wrapper b, .quokka-wrapper strong {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.quokka-wrapper a { color: inherit; text-decoration: none; transition: color 0.2s; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.custom-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(253, 251, 247, 0.9);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; gap: 12px; align-items: center; color: var(--accent); }
.navlinks { display: flex; gap: 24px; }
.navlinks a { font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
.navlinks a:hover { color: var(--accent); }

/* Hero */
header.hero { padding: 60px 0 40px; display: grid; gap: 32px; }
.hero-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
@media (max-width: 900px) {
    .kicker { text-align: center; }
}
.quokka-wrapper h1 { margin: 0 0 24px 0; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.15; }
.quokka-wrapper h2 { margin: 0; font-size: larger; }
.card h2 { margin: 0; font-size: x-large; }
.sub { margin: 0; font-size: 20px; color: var(--muted); max-width: 90%; }
/* Responsive Mobile */
@media (max-width: 900px) {
    .sub { text-align: justify; }
}

/* Mascot */
.mascot-wrap { display: flex; justify-content: flex-end; }
.mascot-frame {
  width: 100%; max-width: 380px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(2deg); border: 4px solid var(--card);
}
.mascot-frame img { width: 100%; height: auto; display: block; }

/* Cards */
.grid { display: grid; gap: 32px; margin-top: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 40px; overflow: hidden;
}

/* Storyboard */
.story-scene { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; }
.scene-visual {
  background: #F4F1ED; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05); aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
}
.scene-visual img { width: 100%; height: 100%; object-fit: cover; }
.scene-content { display: flex; flex-direction: column; gap: 12px; }
.scene-header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
/* Responsive */
@media (max-width: 900px) {
    .scene-header {
        flex-direction: column; align-items: center; gap: 8px;
    }
    .card h2 {
        text-align: center;
    }
}
.num {
  width: 36px; height: 36px; background: var(--text); color: white;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.tag {
  font-size: 12px; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent-light); color: var(--accent);
}
.micro { margin: 0; font-size: 17px; color: var(--muted); }
.bullets { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bullets li { font-size: 15px; background: var(--bg); padding: 10px 14px; border-radius: 8px; }
.bullets li:only-child {
    grid-column: 1 / -1; /* De la ligne de grille 1 jusqu'à la dernière */
}
.micro strong {
    color: var(--accent);
    font-family: 'Merriweather', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* UI */
.btn {
  display: inline-block; background: var(--text); color: #fff !important;
  padding: 12px 24px; border-radius: 99px; font-weight: 700;
  font-size: 15px; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(74,59,50,0.2); transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }

/* Responsive */
@media (max-width: 900px) {
  .hero-head { grid-template-columns: 1fr; }
  .mascot-wrap { justify-content: flex-start; margin-top: 20px; }
  .story-scene { grid-template-columns: 1fr; gap: 20px; }
  .bullets { grid-template-columns: 1fr; }
}

/* --- MENU MOBILE (HAMBURGER) --- */
.hamburger {
    display: none; /* Caché sur desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    /* On affiche le bouton */
    .hamburger { display: flex; }

    /* On transforme la liste de liens en panneau vertical */
    .navlinks {
        position: fixed;
        top: 60px; /* Hauteur de la barre de nav */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg); /* Même fond que le site */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        
        /* Animation d'ouverture */
        transform: translateX(100%); /* Caché à droite par défaut */
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid var(--line);
    }

    /* Classe active ajoutée par JS pour ouvrir le menu */
    .navlinks.active {
        transform: translateX(0); /* On le ramène au centre */
    }

    /* Style des liens en mobile (plus gros) */
    .navlinks a {
        font-size: 24px;
        color: var(--text);
    }

    /* Animation du hamburger en croix (Optionnel mais classe) */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* --- MISE EN PAGE GÉNÉRALE --- */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Police plus moderne */
    color: #333; /* Gris foncé au lieu de noir pur (plus doux) */
    line-height: 1.6; /* Aère le texte */
    background-color: #f9f9f9; /* Fond légèrement grisé */
}

/* Le conteneur principal : on centre et on limite la largeur */
.content-area {
    max-width: 800px; /* Largeur idéale pour la lecture */
    margin: 40px auto; /* Centré horizontalement */
    background: #fff; /* Fond blanc pour l'article */
    padding: 40px; /* Espace intérieur */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Légère ombre pour le relief */
    border-radius: 8px; /* Coins arrondis */
}

/* --- TITRES ET META --- */
.entry-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CONTENU --- */
.entry-content h2 {
    margin-top: 40px;
    color: #d35400; /* Une touche de couleur (Orange brûlé) */
    font-size: 1.8rem;
}

.entry-content p {
    margin-bottom: 1.5em;
    font-size: 1.1rem; /* Texte un peu plus gros pour le confort */
}

.entry-content blockquote {
    border-left: 5px solid #d35400;
    margin: 20px 0;
    padding-left: 20px;
    font-style: italic;
    color: #555;
    background: #fff8f0;
    padding: 15px 20px;
}

/* --- LE TABLEAU (Le rendre joli) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #fcfcfc; /* Une ligne sur deux légèrement grisée */
}

/* --- Navigation et Footer --- */
.nav-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.nav-previous a, .nav-next a {
    text-decoration: none;
    color: #d35400;
    font-weight: bold;
}

.thumbnail-content-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}