/* --- FONTS --- */
@font-face {
    font-family: 'HealTheWebA';
    src: url('/fonts/HealTheWebA-Regular.ttf') format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'HealTheWebB';
    src: url('/fonts/HealTheWebB-Regular.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --bg-color: #ffffff;
    /* La couleur qui va changer */
    --sketch-color: #7DAF7D; 
    --text-color: #1a1a1a;
}

body {
    margin: 0;
    padding: 40px 20px; /* Un peu d'espace autour */
    background-color: #fdfdfd;
    color: var(--text-color);
    font-family: 'HealTheWebA', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Important : alignement haut */
    min-height: 100vh;
}

/* --- LE CADRE --- */
.page-container {
    position: relative; /* Parent référent */
    width: 100%;
    max-width: 800px;
    /* Le padding pousse le contenu vers l'intérieur pour ne pas toucher le bord */
    padding: 60px; 
    box-sizing: border-box;
}

/* La bordure SVG en arrière-plan absolu */
.wobbly-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Derrière le texte */
    overflow: visible; /* Laisse le trait trembloter dehors si besoin */
    pointer-events: none;
}

.wobbly-border rect {
    fill: none;
    stroke: var(--sketch-color); /* Utilise la variable ! */
    stroke-width: 3px;
    filter: url(#wobble-border);
    transition: stroke 0.5s ease;
}

/* --- LE CONTENU --- */
.content-wrap {
    position: relative;
    z-index: 1; /* Devant la bordure */
}

/* --- TYPO & BOUTONS --- */
h1 {
    font-family: 'HealTheWebA';
    font-weight: normal;
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: justify;
}

.meta-tag {
    color: var(--sketch-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.controls-area {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

button {
    background: transparent;
    border: 2px solid var(--sketch-color);
    color: var(--sketch-color);
    padding: 10px 20px;
    font-family: 'HealTheWebA';
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* --- CLASSES POUR LE JAVASCRIPT --- */
/* C'est ça qui fait marcher la mécanique */
.font-a { font-family: 'HealTheWebA', sans-serif; }
.font-b { font-family: 'HealTheWebB', sans-serif; }

/* Pour que les lettres ne sautent pas trop en hauteur */
span { display: inline-block; }