@font-face {
    font-family: 'GT America';
    src: url('assets/fonts/GT-America-Regular.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #7e8f6d;
    --color-text: #020202;
    --color-bg: #f5f5f5;
    --color-white: #ffffff;
    --font-logo: 'GT America', sans-serif;
    --font-main: 'IBM Plex Sans', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-logo);
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.site-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    line-height: 0;
    margin-right: auto;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(126, 143, 109, 0.1);
    color: var(--color-primary);
}

section {
    padding: 4rem 0;
}

.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.intro {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.intro-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.highlight {
    background: rgba(126, 143, 109, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 16px 8px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card-moi {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 16px 8px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    padding: 0rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8),
        transparent,
        rgba(255, 255, 255, 0.3)
    );
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 16px 8px rgba(255, 255, 255, 0.8);
}

.axes-grid,
.target-grid,
.posture-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.axes-grid {
    grid-template-columns: 1fr;
}

.target-grid {
    grid-template-columns: 1fr;
}

.posture-grid {
    grid-template-columns: 1fr;
}

.axis-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.axis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.axis-card:hover {
    transform: translateY(-5px);
}

.axis-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.axis-card ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.axis-card li {
    margin-bottom: 0.5rem;
}

.axe-conclusion {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
}


.services-wrapper {
    margin: 3rem 0;
}

.service {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.service:nth-child(even) {
    background: rgba(126, 143, 109, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.service ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.service li {
    margin-bottom: 0.5rem;
}

.service-note {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(126, 143, 109, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(126, 143, 109, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(126, 143, 109, 0.9);
    color: var(--color-white);
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-logo);
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(126, 143, 109, 0.3);
}

.btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 143, 109, 0.4);
}

.btn-primary {
    background: rgba(126, 143, 109, 0.9);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(126, 143, 109, 0.1);
}

.cta-section,
.final-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(126, 143, 109, 0.05);
    border-radius: 20px;
    margin: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-column {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.site-footer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a {
    margin-left: 2rem;
    color: var(--color-text);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.burger-btn span:nth-child(1) {
    top: 0;
}

.burger-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger-btn span:nth-child(3) {
    bottom: 0;
}

.burger-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .logo img {
        height: 40px;
    }

    .burger-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(126, 143, 109, 0.2);
        font-size: 1.1rem;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    body.menu-open {
        overflow: hidden;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav a {
        margin: 0 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    .hero {
        padding: 2rem 0 0rem;
    }
    section {
    padding: 0rem 0;
}
}

@media (min-width: 768px) {
    .axes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .target-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .axes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posture-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.why-text {
    font-size: 1.05rem;
}

.why-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;  
    overflow: hidden;  
}
.why-photo img {
    width: auto;
    max-height: 210px;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: none;
}

@media (max-width: 768px) {
    .why-photo img {
        width: 100%;      
        height: auto;     
        max-height: none; 
        object-fit: contain; 
    }
}




@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: 2fr auto; 
        align-items: center;
        column-gap: 2rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.socials svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.socials a:hover {
    background: rgba(126, 143, 109, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(126, 143, 109, 0.25);
}

/* Mobile */
@media (max-width: 768px) {
    .socials {
        margin-top: 1rem;
    }
}

.ecoindex {
    display: flex;
    align-items: center;
}

.ecoindex img {
    display: block;
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ecoindex a:hover img {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    .ecoindex {
        margin-top: 1rem;
    }
}

/* ===========================
   TIC TAC TOE – CLEAN UI
=========================== */

/* Section jeu */
.game {
    padding: 2.5rem 0;
}

/* Carte centrale */
.game-card {
    max-width: 420px;
    margin: 0 auto;

    padding: 1.75rem 1.75rem 2rem;

    background: #ffffff;
    color: #111111;

    border-radius: 18px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12);

    text-align: center;
}

/* Titre */
.game-card h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
}

/* Texte d’intro */
.game-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* ===========================
   GRILLE
=========================== */

.ttt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;

    max-width: 300px;
    margin: 1.5rem auto;
}

/* Cellules */
.ttt-cell {
    aspect-ratio: 1 / 1;
    width: 100%;

    font-size: clamp(2.2rem, 6vw, 2.8rem);
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f4f4;
    color: #111111;

    border: 2px solid #dddddd;
    border-radius: 14px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

/* Hover (desktop seulement) */
@media (hover: hover) {
    .ttt-cell:hover {
        background: #ededed;
        border-color: #cccccc;
    }
}

/* Cellule jouée */
.ttt-cell:disabled {
    cursor: default;
    opacity: 0.9;
}

/* ===========================
   MESSAGES & ACTIONS
=========================== */

#game-message {
    margin-top: 1rem;
    font-weight: 600;
    color: #111111;
}

#reset-game {
    margin-top: 1.2rem;
}

/* Formulaire victoire */
#win-form {
    margin-top: 2rem;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 480px) {
    .game-card {
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .ttt-grid {
        max-width: 260px;
    }
}