/* ========================================
   Le 6eme Sens - Feuille de style principale
   Auteur : Sacha Semhoun
   ======================================== */

/* --- Import des polices --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- Variables CSS --- */
:root {
    /* Couleurs principales */
    --ocre: #B8860B;
    --noir: #2D2D2D;
    --beige: #FAEBD7;
    --blanc: #FFFFFF;
    --ocre-clair: #D4A853;
    --ocre-fonce: #8B6508;

    /* Couleurs par sens */
    --couleur-vue: #87CEEB;
    --couleur-ouie: #9B8EC4;
    --couleur-odorat: #D4A0A0;
    --couleur-gout: #8B2252;
    --couleur-toucher: #9CAF88;
    --couleur-6eme: #B8860B;

    /* Typographies */
    --police-titre: 'Playfair Display', Georgia, serif;
    --police-corps: 'Lato', Arial, sans-serif;

    /* Espacements */
    --espacement-petit: 0.5rem;
    --espacement-moyen: 1rem;
    --espacement-grand: 2rem;
    --espacement-tres-grand: 4rem;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Ombres */
    --ombre-legere: 0 2px 10px rgba(0, 0, 0, 0.08);
    --ombre-moyenne: 0 4px 20px rgba(0, 0, 0, 0.12);
    --ombre-forte: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--police-corps);
    color: var(--noir);
    background-color: var(--blanc);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Typographie --- */
h1, h2, h3, h4 {
    font-family: var(--police-titre);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

p {
    font-size: 1rem;
    margin-bottom: var(--espacement-moyen);
}

/* --- Utilitaires --- */
.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espacement-grand);
}

.conteneur-etroit {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--espacement-grand);
}

.texte-centre {
    text-align: center;
}

.espacement-haut {
    margin-top: var(--espacement-tres-grand);
}

.espacement-bas {
    margin-bottom: var(--espacement-tres-grand);
}

/* --- En-tete --- */
.entete {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.entete-contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--espacement-moyen) var(--espacement-grand);
    max-width: 1200px;
    margin: 0 auto;
}

.entete-logo {
    display: flex;
    align-items: center;
    gap: var(--espacement-petit);
}

.entete-logo img {
    height: 50px;
    width: auto;
}

.entete-logo span {
    font-family: var(--police-titre);
    font-size: 1.2rem;
    color: var(--noir);
}

/* --- Navigation --- */
.navigation {
    display: flex;
    align-items: center;
}

.navigation-liste {
    display: flex;
    gap: var(--espacement-grand);
    align-items: center;
}

.navigation-lien {
    font-family: var(--police-corps);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--noir);
    position: relative;
    padding: var(--espacement-petit) 0;
}

.navigation-lien::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ocre);
    transition: var(--transition);
}

.navigation-lien:hover::after,
.navigation-lien.actif::after {
    width: 100%;
}

.navigation-lien:hover {
    color: var(--ocre);
}

/* --- Menu burger (mobile) --- */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-burger .barre {
    width: 25px;
    height: 2px;
    background-color: var(--noir);
    transition: var(--transition);
}

.menu-burger.ouvert .barre:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-burger.ouvert .barre:nth-child(2) {
    opacity: 0;
}

.menu-burger.ouvert .barre:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--espacement-grand) var(--espacement-tres-grand);
    position: relative;
    overflow: hidden;
}

.hero-fond {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-fond::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--blanc) 50%, var(--beige) 100%);
}

.hero-contenu {
    max-width: 800px;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    margin: 0 auto var(--espacement-grand);
    animation: apparition-douce 1s ease-out;
}

.hero h1 {
    margin-bottom: var(--espacement-moyen);
    color: var(--noir);
}

.hero h1 span {
    color: var(--ocre);
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: var(--espacement-grand);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Boutons --- */
.bouton {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--police-corps);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.bouton-principal {
    background-color: var(--ocre);
    color: var(--blanc);
}

.bouton-principal:hover {
    background-color: var(--ocre-fonce);
    transform: translateY(-2px);
    box-shadow: var(--ombre-moyenne);
}

.bouton-secondaire {
    background-color: transparent;
    color: var(--ocre);
    border: 2px solid var(--ocre);
}

.bouton-secondaire:hover {
    background-color: var(--ocre);
    color: var(--blanc);
    transform: translateY(-2px);
}

/* --- Section --- */
.section {
    padding: var(--espacement-tres-grand) 0;
}

.section-titre {
    text-align: center;
    margin-bottom: var(--espacement-tres-grand);
}

.section-titre h2 {
    margin-bottom: var(--espacement-moyen);
}

.section-titre p {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-titre .trait {
    width: 60px;
    height: 3px;
    background-color: var(--ocre);
    margin: var(--espacement-moyen) auto;
    border-radius: 2px;
}

/* --- Grille des sens (page accueil) --- */
.grille-sens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--espacement-grand);
}

.carte-sens {
    background-color: var(--blanc);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ombre-legere);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.carte-sens:hover {
    transform: translateY(-8px);
    box-shadow: var(--ombre-forte);
}

.carte-sens-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carte-sens-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.carte-sens-icone {
    position: absolute;
    top: var(--espacement-moyen);
    right: var(--espacement-moyen);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blanc);
    z-index: 1;
}

.carte-sens-contenu {
    padding: var(--espacement-grand);
}

.carte-sens-contenu h3 {
    margin-bottom: var(--espacement-petit);
    color: var(--noir);
}

.carte-sens-contenu p {
    color: #888;
    font-size: 0.95rem;
}

.carte-sens-lien {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ocre);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: var(--espacement-moyen);
}

.carte-sens-lien:hover {
    gap: 12px;
}

/* Couleurs des cartes par sens */
.carte-vue .carte-sens-icone { background-color: var(--couleur-vue); }
.carte-ouie .carte-sens-icone { background-color: var(--couleur-ouie); }
.carte-odorat .carte-sens-icone { background-color: var(--couleur-odorat); }
.carte-gout .carte-sens-icone { background-color: var(--couleur-gout); }
.carte-toucher .carte-sens-icone { background-color: var(--couleur-toucher); }

.carte-vue:hover { border-bottom: 3px solid var(--couleur-vue); }
.carte-ouie:hover { border-bottom: 3px solid var(--couleur-ouie); }
.carte-odorat:hover { border-bottom: 3px solid var(--couleur-odorat); }
.carte-gout:hover { border-bottom: 3px solid var(--couleur-gout); }
.carte-toucher:hover { border-bottom: 3px solid var(--couleur-toucher); }

/* --- Page Sens (hero specifique) --- */
.hero-sens {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px var(--espacement-grand) var(--espacement-tres-grand);
    position: relative;
}

.hero-sens::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.hero-sens-vue::before { background-color: var(--couleur-vue); }
.hero-sens-ouie::before { background-color: var(--couleur-ouie); }
.hero-sens-odorat::before { background-color: var(--couleur-odorat); }
.hero-sens-gout::before { background-color: var(--couleur-gout); }
.hero-sens-toucher::before { background-color: var(--couleur-toucher); }

.hero-sens .icone-sens {
    font-size: 4rem;
    margin-bottom: var(--espacement-moyen);
}

.hero-sens h1 {
    margin-bottom: var(--espacement-moyen);
}

.hero-sens .sous-titre {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

/* --- Cartes de lieux (pages sens) --- */
.grille-lieux {
    display: grid;
    gap: var(--espacement-tres-grand);
}

.carte-lieu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--espacement-grand);
    align-items: center;
    background-color: var(--blanc);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ombre-legere);
    transition: var(--transition);
}

.carte-lieu:hover {
    box-shadow: var(--ombre-moyenne);
}

.carte-lieu:nth-child(even) {
    direction: rtl;
}

.carte-lieu:nth-child(even) > * {
    direction: ltr;
}

.carte-lieu-image {
    height: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carte-lieu-numero {
    position: absolute;
    top: var(--espacement-grand);
    left: var(--espacement-grand);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--blanc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--police-titre);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ocre);
    box-shadow: var(--ombre-legere);
}

.carte-lieu-contenu {
    padding: var(--espacement-tres-grand);
}

.carte-lieu-contenu .etiquette {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--espacement-moyen);
    color: var(--blanc);
}

.etiquette-vue { background-color: var(--couleur-vue); }
.etiquette-ouie { background-color: var(--couleur-ouie); }
.etiquette-odorat { background-color: var(--couleur-odorat); }
.etiquette-gout { background-color: var(--couleur-gout); }
.etiquette-toucher { background-color: var(--couleur-toucher); }

.carte-lieu-contenu h3 {
    font-size: 1.6rem;
    margin-bottom: var(--espacement-moyen);
}

.carte-lieu-contenu .description {
    color: #666;
    line-height: 1.8;
    margin-bottom: var(--espacement-grand);
}

.carte-lieu-info {
    display: flex;
    flex-direction: column;
    gap: var(--espacement-petit);
    font-size: 0.9rem;
    color: #888;
}

.carte-lieu-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Navigation entre sens --- */
.navigation-sens {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--espacement-tres-grand) 0;
    border-top: 1px solid #eee;
    margin-top: var(--espacement-tres-grand);
}

.navigation-sens a {
    display: flex;
    align-items: center;
    gap: var(--espacement-moyen);
    font-family: var(--police-titre);
    font-size: 1.1rem;
    color: var(--noir);
    transition: var(--transition);
}

.navigation-sens a:hover {
    color: var(--ocre);
}

.navigation-sens .direction {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    font-family: var(--police-corps);
}

/* --- Section concept (accueil) --- */
.section-concept {
    background-color: var(--beige);
}

.concept-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--espacement-tres-grand);
    align-items: center;
}

.concept-texte h2 {
    margin-bottom: var(--espacement-grand);
}

.concept-texte p {
    color: #666;
    font-size: 1.05rem;
}

.concept-image {
    position: relative;
}

.concept-image img {
    border-radius: 20px;
    box-shadow: var(--ombre-moyenne);
}

/* --- Section a propos --- */
.section-a-propos {
    padding: var(--espacement-tres-grand) 0;
}

.a-propos-contenu {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--espacement-tres-grand);
    align-items: start;
}

.a-propos-photo {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ombre-moyenne);
}

.a-propos-texte h2 {
    margin-bottom: var(--espacement-grand);
}

.a-propos-texte p {
    color: #666;
    font-size: 1.05rem;
}

/* --- Pied de page --- */
.pied-de-page {
    background-color: var(--noir);
    color: var(--blanc);
    padding: var(--espacement-tres-grand) 0 var(--espacement-grand);
}

.pied-de-page-contenu {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--espacement-tres-grand);
    margin-bottom: var(--espacement-tres-grand);
}

.pied-de-page-marque p {
    color: #aaa;
    font-size: 0.95rem;
    margin-top: var(--espacement-moyen);
}

.pied-de-page h4 {
    font-size: 1rem;
    margin-bottom: var(--espacement-moyen);
    color: var(--ocre);
}

.pied-de-page-liens a {
    display: block;
    color: #aaa;
    padding: 4px 0;
    font-size: 0.9rem;
}

.pied-de-page-liens a:hover {
    color: var(--ocre);
}

.pied-de-page-bas {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--espacement-grand);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes apparition-douce {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anime-apparition {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anime-apparition.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .concept-grille {
        grid-template-columns: 1fr;
        gap: var(--espacement-grand);
    }

    .a-propos-contenu {
        grid-template-columns: 1fr;
    }

    .carte-lieu {
        grid-template-columns: 1fr;
    }

    .carte-lieu:nth-child(even) {
        direction: ltr;
    }

    .carte-lieu-image {
        min-height: 250px;
    }

    .pied-de-page-contenu {
        grid-template-columns: 1fr;
        gap: var(--espacement-grand);
    }
}

@media (max-width: 768px) {
    .navigation-liste {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--blanc);
        flex-direction: column;
        justify-content: center;
        padding: var(--espacement-tres-grand);
        gap: var(--espacement-grand);
        box-shadow: var(--ombre-forte);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .navigation-liste.ouvert {
        right: 0;
    }

    .menu-burger {
        display: flex;
        z-index: 1001;
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-logo {
        width: 150px;
    }

    .grille-sens {
        grid-template-columns: 1fr;
    }

    .navigation-sens {
        flex-direction: column;
        gap: var(--espacement-grand);
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .conteneur,
    .conteneur-etroit {
        padding: 0 var(--espacement-moyen);
    }

    .carte-lieu-contenu {
        padding: var(--espacement-grand);
    }

    .bouton {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}
