/*
Theme Name: Template
Theme URI: https://github.com/emd
Description: Thème WordPress avec hero plein écran, deux boutons ronds avec icônes et texte personnalisable. Mobile-first.
Version: 1.1.0
Author: Template
Text Domain: template
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #1a1a2e;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    --color-text: #4a4a68;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1.05rem;
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #6c63ff;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ===== HEADER ===== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
}

.logo-left .site-header {
    justify-content: space-between;
}

.logo-center .site-header {
    justify-content: center;
}

.logo-center .header-nav {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.site-header .site-logo {
    color: var(--color-light);
    font-size: 1.4rem;
    font-weight: 700;
}

.site-header .site-logo a {
    color: var(--color-light);
}

.site-header .site-logo img {
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav a {
    color: var(--color-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.8;
    color: var(--color-light);
}

/* ===== HAMBURGER ===== */
.menu-toggle {
    display: none;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 10px;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 210 !important;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle span + span {
    margin-top: 5px;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 7px);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -7px);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.97);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-nav a {
    color: var(--color-light);
    font-size: 1.4rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.mobile-nav a:hover {
    opacity: 0.7;
    color: var(--color-light);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    padding: 40px 20px;
}

.hero-title {
    color: var(--color-light);
    font-size: calc(1.6rem + 1.5vw);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: rgba(248, 250, 252, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* ===== ROUND ICON BUTTONS ===== */
.hero-text-above {
    color: var(--color-light);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.round-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 50px !important;
    margin-bottom: 25px;
}

a.round-btn,
.round-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    transition: transform 0.3s ease;
    width: auto !important;
    max-width: 120px;
}

.round-btn:hover {
    transform: scale(1.08);
    opacity: 1;
}

.round-btn-circle {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #6c63ff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.round-btn:hover .round-btn-circle {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.round-btn-circle img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.round-btn-emoji {
    font-size: 42px;
    line-height: 1;
}

/* WordPress converts emojis to <img> - handle that */
.round-btn-emoji img,
.round-btn-emoji .emoji {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    display: inline-block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.round-btn-label {
    color: var(--color-light);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    text-align: center;
}

.hero-text-below {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== CLASSIC BUTTONS (hero-btn) ===== */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-btn:hover {
    transform: scale(1.05);
    filter: brightness(0.85);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero-has-link {
    cursor: pointer;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: rgba(248, 250, 252, 0.6);
    stroke-width: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== PAGE CONTENT ===== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.page-content .page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.page-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 50px 0 20px;
    padding-left: 20px;
    border-left: 8px solid #6c63ff;
}

.page-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 15px;
}

.page-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.9;
}

.page-content ul, .page-content ol {
    margin: 0 0 20px 25px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.page-content blockquote {
    border-left: 4px solid #6c63ff;
    padding: 15px 25px;
    margin: 30px 0;
    font-style: italic;
    background: #f0efff;
    border-radius: 0 8px 8px 0;
}

.page-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-nav a {
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

/* ===== DEFAULT PAGE ===== */
.page-default .site-header {
    position: relative;
    background: var(--color-dark);
}

.page-default .page-content {
    padding-top: 40px;
}

/* ===== WP ADMIN BAR FIX ===== */
.admin-bar .menu-toggle {
    top: 47px !important;
}

@media (max-width: 782px) {
    .admin-bar .menu-toggle {
        top: 61px !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }

    .header-nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
    }

    .logo-left .site-header {
        justify-content: flex-start;
    }

    .logo-center .site-header {
        justify-content: center;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-text-above {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .round-buttons {
        gap: 35px !important;
    }

    .round-btn-circle {
        width: 85px !important;
        height: 85px !important;
        min-width: 85px !important;
        min-height: 85px !important;
        max-width: 85px !important;
        max-height: 85px !important;
    }

    .round-btn-circle img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .round-btn-emoji {
        font-size: 36px;
    }

    .round-btn-emoji img,
    .round-btn-emoji .emoji {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .hero-text-below {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        display: block;
        width: 100%;
        max-width: 320px;
        padding: 14px 30px;
        font-size: 1rem;
        text-align: center;
    }

    .page-content {
        padding: 50px 15px;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }
}
