/* --- RESET GLOBAL --- */
* { box-sizing: border-box; }

/* --- VARIABLES --- */
:root {
    --bg-color: #FFFEFA;  /* Crème très clair */
    --card-bg: #FFFFFF;
    --accent: #C06C53;    /* Terracotta */
    --text-dark: #2C2C2C;
    --text-light: #666666;
}

/* --- BODY (Fond Uni & Structure) --- */
body {
    margin: 0;
    /* Padding important pour que l'ombre ne soit jamais coupée au scroll */
    padding: 40px 0; 
    
    font-family: 'Lato', sans-serif;
    
    /* FOND UNI (Plus de texture, plus de bug) */
    background-color: var(--bg-color);
    color: var(--text-dark);
    
    /* 100dvh s'adapte dynamiquement à la barre d'adresse mobile */
    min-height: 100dvh; 
    
    /* Centrage flexible */
    display: flex;
    flex-direction: column;
    
    overflow-x: hidden; 
}

.main-wrapper {
    /* "margin: auto" gère le centrage vertical ET le scroll automatiquement */
    margin: auto; 
    
    width: 90%; 
    max-width: 500px;
    display: flex;
    justify-content: center;
}

/* --- LA CARTE --- */
.card { 
    background: var(--card-bg); 
    width: 100%; 
    position: relative; 
    padding: 15px; 
    /* Ombre propre et nette */
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 10px 20px rgba(0,0,0,0.04); 
    border-radius: 4px; 
}

/* Bordure couture */
.card::before { 
    content: ""; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; 
    border: 2px dashed var(--accent); border-radius: 4px; pointer-events: none; opacity: 0.5; 
}

.card-content { padding: 30px 20px; text-align: center; }

/* --- LOGO & ANIMATIONS --- */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.logo-container {
    position: relative;
    width: 180px; height: 180px; 
    margin: 0 auto 20px;
    animation: float 4s ease-in-out infinite;
}

.owl-body { 
    width: 100%; 
    height: auto; 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 2; /* LE CORPS PASSE DEVANT */
}

.eye { 
    position: absolute; 
    width: 50px; 
    height: 50px; 
    z-index: 1; /* LES YEUX PASSENT DERRIÈRE */
    top: 60px; 
    transition: transform 0.1s ease-out; 
    will-change: transform; 
}

.eye-left { left: 35px; }
.eye-right { right: 35px; }

/* Animation spécifique MOBILE (Regard automatique) */
@media (max-width: 768px) {
    @keyframes lookAround {
        0%, 30% { transform: translate(0px, 0px); }
        35%, 45% { transform: translate(-12px, 5px); }
        50%, 60% { transform: translate(12px, 0px); }
        65%, 85% { transform: translate(0px, -8px); }
        90%, 100% { transform: translate(0px, 0px); }
    }
    .eye { animation: lookAround 6s infinite ease-in-out !important; }
}

/* --- TYPOGRAPHIE --- */
h1 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark); margin: 0 0 15px 0; letter-spacing: -0.5px; }

.tagline { 
    font-family: 'Lato', sans-serif; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; 
    color: var(--accent); font-weight: 700; margin-bottom: 30px; line-height: 1.4; 
}

.description { font-size: 1.05rem; line-height: 1.6; color: var(--text-light); margin-bottom: 40px; }

/* --- FORMULAIRE --- */
.artisanal-form { text-align: left; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }

label { display: block; font-family: 'Playfair Display', serif; font-style: italic; margin-bottom: 8px; color: var(--text-dark); font-size: 1rem; }

input, textarea { 
    width: 100%; padding: 12px; border: 1px solid #ddd; background-color: #FAFAFA; 
    font-family: 'Lato', sans-serif; font-size: 1rem; color: var(--text-dark); 
    box-sizing: border-box; transition: all 0.3s ease; border-radius: 2px; 
}

input:focus, textarea:focus { outline: none; border-color: var(--accent); background-color: white; box-shadow: 0 2px 10px rgba(192, 108, 83, 0.1); }

textarea { resize: vertical; }

button { 
    width: 100%; padding: 15px; background-color: var(--accent); color: white; border: none; 
    font-family: 'Lato', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; 
    cursor: pointer; border-radius: 4px; position: relative; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.12); 
}

button:hover { 
    transform: scale(1.02) translateY(-2px); letter-spacing: 2px; filter: brightness(1.1); 
    box-shadow: 0 10px 20px -10px rgba(192, 108, 83, 0.5); 
}

/* --- FOOTER --- */
.footer-links { margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.social-icons { margin-top: 15px; display: flex; justify-content: center; gap: 20px; }
.social-icons a { color: var(--text-dark); font-size: 1.5rem; text-decoration: none; transition: all 0.3s ease; }
.social-icons a:hover { color: var(--accent); transform: translateY(-3px); }

/* --- RESPONSIVE --- */
@media (max-width: 480px) { 
    .card-content { padding: 30px 15px; } 
    h1 { font-size: 1.6rem; } 
    .card::before { top: 6px; left: 6px; right: 6px; bottom: 6px; } 
}