/* -----------------------------------------------------------
   STYLE.CSS - Version "Chaleur & Humain"
   Design : Organique, Tactile, Accueillant
----------------------------------------------------------- */

:root {
    /* --- PALETTE DE COULEURS --- */
    /* Fond : Un blanc cassé chaud (type papier à lettre) */
    --color-bg: #FAFAF7;
    --color-bg-alt: #EDE8DF; /* Beige sable pour les alternances */
    
    /* Couleur Principale : Vert Sauge (Nature et Apaisement) */
    --color-primary: #6B8F71;
    --color-primary-dark: #5A7A5F;
    --color-primary-light: #8FAE9E;
    
    /* Texte : Gris chaud (plus doux que le noir) */
    --color-text-main: #4A4A4A;
    --color-text-muted: #666666;
    
    /* --- OMBRES & PROFONDEUR --- */
    /* Ombre teintée de vert pour un effet lumineux */
    --shadow-soft: 0 10px 40px -10px rgba(107, 143, 113, 0.15);
    /* Ombre plus marquée au survol */
    --shadow-hover: 0 20px 40px -10px rgba(107, 143, 113, 0.25);
    
    /* --- FORMES --- */
    --radius-card: 24px;      /* Coins très doux */
    --radius-btn: 50px;       /* Boutons pilules */
    --container-width: 1100px;
    --font-main: 'DM Sans', sans-serif;
}

/* -----------------------------------------------------------
   BASE & ATMOSPHÈRE
----------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 17px;
    
    /* Texture subtile "Grain de papier" */
    background-image: radial-gradient(#6B8F71 0.5px, transparent 0.5px), radial-gradient(#6B8F71 0.5px, var(--color-bg) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    /* Rend la texture très discrète */
    background-blend-mode: multiply;
}

/* Images : Style "Cadre photo" organique */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
    transition: transform 0.5s ease;
}

/* Ajoute un petit bord blanc et une ombre aux images principales */
header img, .grid-2 img {
    border: 4px solid white;
    box-shadow: 10px 10px 0px var(--color-bg-alt), 0 10px 30px rgba(0,0,0,0.05);
}

/* Petit mouvement sympa au survol de l'image */
header img:hover, .grid-2 img:hover {
    transform: scale(1.02) rotate(1deg);
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* -----------------------------------------------------------
   LAYOUT
----------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-beige { background-color: var(--color-bg-alt); }
.bg-white { background-color: rgba(255, 255, 255, 0.8); } /* Légère transparence */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* -----------------------------------------------------------
   TYPOGRAPHIE
----------------------------------------------------------- */
h1, h2, h3, h4 {
    color: #2D3A31; /* Vert très foncé presque noir */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em; /* Rapproche les lettres pour moderniser */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 2rem; color: var(--color-primary); }
p { margin-bottom: 1.5rem; color: #555; }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); font-size: 0.95rem; }

/* Tag décoratif (ex: "Ergothérapeute") */
.hero-tag {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(107, 143, 113, 0.1);
}

/* -----------------------------------------------------------
   NAVIGATION (Glassmorphism)
----------------------------------------------------------- */
.navbar {
    background: rgba(250, 250, 247, 0.85); /* Fond semi-transparent */
    backdrop-filter: blur(12px);          /* Effet de flou derrière */
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(107, 143, 113, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.nav-menu { display: flex; gap: 35px; align-items: center; }
.nav-link { font-weight: 500; color: var(--color-text-main); font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }

/* -----------------------------------------------------------
   COMPOSANTS : BOUTONS & CARTES
----------------------------------------------------------- */

/* Boutons avec dégradé subtil */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 143, 113, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 143, 113, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Cartes interactives */
.card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Barre décorative en haut de la carte */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-bg-alt), var(--color-primary));
    opacity: 0.5;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px); /* La carte monte */
    box-shadow: var(--shadow-hover);
    border-color: rgba(107, 143, 113, 0.2);
}

.card:hover::before { opacity: 1; }

/* -----------------------------------------------------------
   SPÉCIFIQUE : ÉTAPES NUMÉROTÉES (Pour Enfants/Adultes)
----------------------------------------------------------- */
/* Transforme les ronds de couleur unis en anneaux élégants */
div[style*="background: var(--color-primary)"] {
    background: white !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(107, 143, 113, 0.15);
    font-weight: bold;
    font-size: 1.2rem;
}

/* -----------------------------------------------------------
   FORMULAIRE
----------------------------------------------------------- */
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--color-text-main); }
.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #FAFAF9; /* Gris très très clair */
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(107, 143, 113, 0.1);
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
footer {
    background: white;
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------
   MOBILE RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-menu { 
        gap: 15px; 
        flex-wrap: wrap; 
        justify-content: center;
        background: rgba(255,255,255,0.5);
        padding: 10px;
        border-radius: 15px;
    }
    
    h1 { font-size: 2.2rem; }
    .container { padding: 0 25px; }
}