/*
Theme Name: Tanguedia Theme
Author: Moi & Gemini
Description: Theme Premium Airbnb Style - V8 (Blog Amélioré + Nouveau Titre Italique)
Version: 8.0
*/

:root {
    /* --- COULEURS --- */
    --color-terracotta: #C8553D;
    --color-terracotta-dark: #a0402d;
    --color-dark: #222222;
    --color-gray: #717171;
    --color-light-bg: #F7F7F7;
    --color-white: #ffffff;
    
    /* --- TYPO --- */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
    
    /* --- UI --- */
    --radius-l: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* --- OMBRES (Style Airbnb) --- */
    --shadow-soft: 0 6px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 16px 32px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
body { 
    margin: 0; padding: 0; 
    font-family: var(--font-sans); 
    color: var(--color-dark); 
    background-color: var(--color-white); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }
.mt-large { margin-top: 60px; }

/* --- TYPO --- */
h1, h2, h3, h4 { 
    font-family: var(--font-serif); 
    font-weight: 600; 
    margin-top: 0; 
    line-height: 1.15; 
    color: var(--color-dark); 
}
h1 { font-size: 4.5rem; letter-spacing: -1.5px; margin-bottom: 24px; }
h2 { font-size: 3rem; letter-spacing: -0.5px; margin-bottom: 24px; }
h3 { font-size: 1.5rem; font-family: var(--font-sans); font-weight: 600; }
p { font-size: 1.1rem; color: var(--color-gray); margin-bottom: 1.5rem; }

/* Classe pour le mot "Formation" en italique */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* --- HEADER FULL WIDTH --- */
.site-header { 
    position: absolute; 
    top: 0; left: 0; width: 100%; 
    z-index: 100; 
    padding: 20px 0; 
}
.site-header .container { 
    max-width: 100%; 
    padding: 0 60px; 
}
.header-grid { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* LOGO (GÉANT) */
.logo { flex: 1; z-index: 102; }
.logo img { height: 110px; width: auto; }

/* MENU (DESKTOP) */
.main-nav { flex: 2; text-align: center; }
.main-nav ul { 
    list-style: none; margin: 0; padding: 0; 
    display: inline-flex; gap: 32px; 
}
.main-nav a { 
    color: var(--color-white); 
    font-weight: 500; 
    font-size: 1rem; 
    position: relative; 
    opacity: 0.9; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--color-white); transition: var(--transition);
    position: absolute; bottom: -5px; left: 0;
}
.main-nav a:hover::after { width: 100%; }

/* Indicateur de page active */
.main-nav .current-menu-item a::after,
.main-nav a.active::after {
    width: 100%;
}

/* HEADER RIGHT */
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.header-socials a { 
    color: var(--color-white); margin-left: 24px; font-size: 1.4rem; 
    opacity: 0.9; text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}
.header-socials a:hover { opacity: 1; transform: translateY(-3px); }

/* BURGER ICON */
.burger-menu { 
    display: none; cursor: pointer; z-index: 102; margin-left: 20px; 
}
.burger-menu div { 
    width: 28px; height: 3px; background-color: white; 
    margin: 6px 0; transition: var(--transition); border-radius: 2px;
}

/* --- HERO --- */
.hero {
    position: relative; height: 95vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-banner {
    background: linear-gradient(
        135deg,
        #1a0c07 0%,
        #4a1c0e 28%,
        #9e3d1f 58%,
        #c8553d 78%,
        #7a2a14 100%
    );
}
.hero-banner .hero-content { z-index: 3; }
.hero-video { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 1; 
}
.overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.35); z-index: 2; 
}
.hero-content { 
    position: relative; z-index: 3; max-width: 1000px; 
    text-align: center; margin-top: 80px; 
}
.hero h1 { color: var(--color-white); text-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hero-subtitle { 
    color: rgba(255,255,255,0.95); 
    font-size: 1.1rem; 
    font-weight: 300; 
    max-width: 750px; 
    margin: 0 auto 40px auto; 
    line-height: 1.7;
}
.hero-tag { 
    display: inline-block; border: 1px solid rgba(255,255,255,0.4); 
    padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; 
    text-transform: uppercase; color: white; 
    background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); margin-bottom: 30px; 
}

/* --- BOUTONS --- */
.cta-group { display: flex; gap: 20px; justify-content: center; }
.btn { 
    padding: 18px 36px; border-radius: 50px; font-weight: 600; 
    font-size: 1rem; cursor: pointer; border: none; transition: var(--transition); display: inline-block;
}
.btn-primary { background-color: var(--color-terracotta); color: white; }
.btn-primary:hover { transform: translateY(-4px); background-color: var(--color-terracotta-dark); }
.btn-white { background-color: white; color: var(--color-dark); }
.btn-white:hover { transform: translateY(-4px); }

/* Bouton Outline Dark (Voir toute l'actualité) */
.btn-outline-dark { 
    background: transparent; border: 2px solid var(--color-dark); color: var(--color-dark); 
}
.btn-outline-dark:hover { 
    background: var(--color-dark); color: white; transform: translateY(-4px);
}

/* --- SECTIONS --- */
section { padding: 120px 0; }
.section-tag { 
    color: var(--color-terracotta); font-weight: 700; text-transform: uppercase; 
    letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 16px; display: block; 
}
.section-intro { max-width: 600px; margin: 0 auto; text-align: center; }

/* --- STYLE DU BLOG (NEWS) --- */
.news-section { background: white; }

.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 40px; margin-top: 60px; 
}

.news-card {
    display: flex; flex-direction: column;
    transition: var(--transition);
    border-radius: var(--radius-l);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-soft);
    background: white;
    overflow: hidden; 
}

.news-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: transparent;
}

.news-image {
    width: 100%; aspect-ratio: 16/10; 
    overflow: hidden; 
    margin-bottom: 0; 
}
.news-image img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease; 
}
.news-card:hover .news-image img { transform: scale(1.05); }

/* Contenu de la carte (Padding + Texte plus foncé) */
.news-content {
    padding: 24px 28px;
    display: flex; flex-direction: column; flex-grow: 1;
}

.placeholder-news { width: 100%; height: 100%; background: #eee; }

.news-date { 
    font-size: 0.75rem; color: var(--color-terracotta); font-weight: 700; 
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; 
}

.news-content h3 { font-size: 1.4rem; margin-bottom: 12px; font-family: var(--font-serif); line-height: 1.3; }

.news-content p { 
    font-size: 1.05rem; 
    color: #4a4a4a; /* Gris foncé pour la lisibilité */
    line-height: 1.6;
    margin-bottom: 20px;
}

.link-arrow { 
    color: var(--color-dark); font-weight: 600; margin-top: auto; 
    display: inline-block; font-size: 0.9rem; 
}
.link-arrow:hover { color: var(--color-terracotta); }


/* --- PHILOSOPHIE & FORMATIONS --- */
.section-text-image { background: var(--color-light-bg); }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.placeholder-image { width: 100%; aspect-ratio: 4/5; background-color: #ddd; border-radius: var(--radius-l); }
.link-underline { 
    font-weight: 600; border-bottom: 2px solid rgba(200, 85, 61, 0.3); 
    display: inline-block; margin-top: 24px; 
}

.health-section { background: white; border-top: 1px solid #eee; }

.formations-section { background-color: white; }
.formations-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 32px; margin-top: 60px; 
}
.formation-card { 
    background: white; border-radius: var(--radius-l); padding: 32px; 
    position: relative; transition: var(--transition); border: 1px solid rgba(0,0,0,0.06); 
    min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; 
}
.formation-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.badge { 
    position: absolute; top: 24px; right: 24px; background: var(--color-terracotta); 
    color: white; padding: 6px 12px; border-radius: 20px; font-size: 0.7rem; 
    font-weight: 600; text-transform: uppercase; 
}
.card-footer { 
    margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; 
    display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9rem; 
}
.arrow { color: var(--color-terracotta); }

/* --- FOOTER --- */
.site-footer { padding: 80px 0 40px 0; background: white; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-col h4 { text-transform: uppercase; font-size: 0.85rem; margin-bottom: 24px; }

/* =========================================
   8. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 992px) {
    .site-header .container { padding: 0 24px; }
    .header-socials { display: none; }
    
    /* Burger Apparaît */
    .burger-menu { display: block; }
    
    /* MENU MOBILE (MODAL TERRACOTTA) */
    .main-nav {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--color-terracotta); /* FOND TERRACOTTA */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 101;
    }
    
    .main-nav ul { 
        flex-direction: column; 
        gap: 0; /* Plus de gap, on gère avec le padding */
        width: 100%;
        padding: 0 40px; /* Marges sur les côtés */
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        /* Ligne blanche très fine de séparation */
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .main-nav li:last-child { border-bottom: none; } /* Pas de ligne à la fin */
    
    .main-nav a { 
        color: var(--color-white); /* TEXTE BLANC */
        font-size: 1.6rem; 
        font-weight: 400; /* Un peu plus fin pour l'élégance */
        text-shadow: none;
        display: block;
        padding: 25px 0; /* Espace clickable plus grand */
    }
    
    .nav-active { right: 0; }
    
    /* CROIX DU BURGER (Doit être blanche sur fond Terracotta) */
    .toggle .line1 { 
        transform: rotate(-45deg) translate(-5px, 7px); 
        background-color: white; /* BLANC */
    }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { 
        transform: rotate(45deg) translate(-5px, -7px); 
        background-color: white; /* BLANC */
    }
    
    /* Hero Responsive */
    h1 { font-size: 2.8rem; }
    
    /* LOGO MOBILE AGRANDI */
    .logo img { height: 85px; } /* Augmenté de 60 à 85px */
    
    .cta-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .grid-2-col { grid-template-columns: 1fr; }
    .image-wrapper { order: -1; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* --- CONTACT FORM 7 --- */
.wpcf7 label {
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-top: 6px;
    background: white;
    display: block;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #C8553D;
}
.wpcf7 textarea { resize: vertical; min-height: 150px; }
.wpcf7 input[type="submit"] {
    background-color: #C8553D !important;
    color: white !important;
    padding: 16px 36px !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    width: auto !important;
}
.wpcf7 input[type="submit"]:hover {
    background-color: #a0402d !important;
    transform: translateY(-3px);
}