/*
Theme Name: Atout Sport
Theme URI: https://atoutsport.loxys.fr/
Author: Atout Sport - Pierre Poirier
Author URI: https://atoutsport.loxys.fr/
Description: Thème WordPress moderne et sportif pour Atout Sport, le sport à la carte. Compatible Elementor (version gratuite), avec page d'import du contenu, header/footer/pages éditables, menu via Apparence > Menus. Palette dérivée du logo officiel : teal, orange/pêche, navy, crème.
Version: 1.4.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atout-sport
Tags: sport, elementor, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, custom-logo, full-width-template
*/

/* =========================================================
   Atout Sport — Theme Base (Editor + Front fallback)
   Palette dérivée du logo officiel (Ace of Sport) :
   teal duck-egg · orange pêche · navy · crème
   ========================================================= */

:root {
    --as-green:   #6AB9A9;
    --as-green-d: #3D757F;
    --as-orange:  #E8A45B;
    --as-orange-d:#C77F2F;
    --as-blue:    #4A6B85;
    --as-blue-d:  #2E445A;
    --as-dark:    #1F2C3D;
    --as-gray:    #5A6472;
    --as-light:   #F3F3EC;
    --as-yellow:  #FAD372;
    --as-white:   #ffffff;
    --as-radius:  14px;
    --as-shadow:  0 8px 28px rgba(31,44,61,0.10);
    --as-font:    'Outfit', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --as-heading: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0;
    font-family: var(--as-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--as-dark);
    background: var(--as-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--as-heading);
    color: var(--as-dark);
    line-height: 1.15;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

a {
    color: var(--as-blue);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--as-orange); }

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

.as-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Buttons */
.as-btn,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--as-orange);
    color: #fff !important;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    text-decoration: none;
}
.as-btn:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--as-orange-d);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(232,164,91,0.28);
}
.as-btn--green   { background: var(--as-green); }
.as-btn--green:hover { background: var(--as-green-d); }
.as-btn--blue    { background: var(--as-blue); }
.as-btn--blue:hover  { background: var(--as-blue-d); }
.as-btn--outline {
    background: transparent;
    color: var(--as-dark) !important;
    border: 2px solid var(--as-dark);
}
.as-btn--outline:hover {
    background: var(--as-dark);
    color: #fff !important;
}

/* Header */
.as-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(31,44,61,0.06);
}
.as-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.as-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--as-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--as-dark);
}
.as-logo img { max-height: 56px; width: auto; }

.as-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.as-main-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--as-dark);
    font-weight: 500;
    transition: background .18s ease, color .18s ease;
}
.as-main-nav a:hover,
.as-main-nav .current-menu-item > a {
    background: var(--as-light);
    color: var(--as-green-d);
}

.as-header-cta .as-btn { padding: 10px 18px; font-size: .95rem; }

/* Mobile menu */
.as-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.as-menu-toggle span,
.as-menu-toggle span:before,
.as-menu-toggle span:after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--as-dark);
    border-radius: 2px;
    position: relative;
    transition: transform .25s ease;
}
.as-menu-toggle span:before { position: absolute; top: -7px; left: 0; }
.as-menu-toggle span:after  { position: absolute; top: 7px;  left: 0; }
.as-menu-toggle.is-open span { background: transparent; }
.as-menu-toggle.is-open span:before { transform: rotate(45deg) translate(5px,5px); }
.as-menu-toggle.is-open span:after  { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 900px) {
    .as-menu-toggle { display: inline-flex; }
    .as-main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 22px 22px;
        border-bottom: 1px solid rgba(31,44,61,0.06);
        display: none;
        box-shadow: var(--as-shadow);
    }
    .as-main-nav.is-open { display: block; }
    .as-main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .as-main-nav a { padding: 14px 12px; border-bottom: 1px solid #eef1f5; }
    .as-header-cta { display: none; }
}

/* Footer fallback */
.as-site-footer {
    background: var(--as-dark);
    color: #cfd6e0;
    padding: 56px 0 24px;
    margin-top: 60px;
}
.as-site-footer a { color: #fff; }
.as-site-footer a:hover { color: var(--as-orange); }
.as-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 800px) {
    .as-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .as-footer-grid { grid-template-columns: 1fr; }
}
.as-footer-grid h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.as-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.as-footer-grid li { padding: 4px 0; }
.as-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 36px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .9rem;
    color: #95a0b1;
}

/* Default page content (when not using Elementor) */
.as-page-content {
    padding: 60px 0;
}
.as-page-content .entry-title {
    margin-bottom: 28px;
}

/* WP Core helpers */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ display: block; margin: 0 auto 1em; }
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}

/* Admin importer page bits used in front (optional) */
.as-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(106,185,169,.12);
    color: var(--as-green-d);
}
.as-badge--orange { background: rgba(232,164,91,.14); color: var(--as-orange-d); }
.as-badge--blue   { background: rgba(74,107,133,.12); color: var(--as-blue-d); }
