/*
 * Styles principaux de la plateforme Inkwell
 * Design system basé sur le brandboard (corail / anthracite / beige)
 */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--police-corps);
    color: var(--couleur-anthracite);
    background-color: var(--couleur-beige);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

h1,
h2,
h3 {
    font-family: var(--police-titres);
    font-weight: 800;
    line-height: 1.2;
}

.conteneur {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--rayon-bouton);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bouton:hover {
    transform: translateY(-2px);
}

.bouton--corail {
    background-color: var(--couleur-corail);
    color: #ffffff;
}

.bouton--corail:hover {
    background-color: #ff5153;
    box-shadow: 0 6px 16px rgba(255, 103, 106, 0.35);
}

.bouton--anthracite {
    background-color: var(--couleur-anthracite);
    color: #ffffff;
}

.bouton--anthracite:hover {
    background-color: #1a262c;
}

.bouton--contour {
    background-color: transparent;
    color: var(--couleur-corail);
    border: 2px solid var(--couleur-corail);
}

.bouton--contour:hover {
    background-color: var(--couleur-corail);
    color: #ffffff;
}

.bouton--petit {
    padding: 9px 18px;
    font-size: 0.82rem;
}

.lien-discret {
    font-weight: 500;
    color: var(--couleur-anthracite);
    transition: color 0.15s ease;
}

.lien-discret:hover {
    color: var(--couleur-corail);
}

.lien-voir-tout {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.15s ease;
}

.lien-voir-tout:hover {
    gap: 12px;
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */

.entete {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--couleur-beige);
    border-bottom: 1px solid rgba(38, 53, 60, 0.08);
}

.entete__interieur {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 64px;
}

.entete__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.entete__logo-image {
    height: 22px;
    width: auto;
}

.entete__navigation {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 500;
    font-size:0.9rem;
}

.menu-deroulant {
    position: relative;
}

.menu-deroulant__bouton {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--couleur-anthracite);
}

.menu-deroulant__bouton i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.menu-deroulant--ouvert .menu-deroulant__bouton i {
    transform: rotate(180deg);
}

.menu-deroulant__contenu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #ffffff;
    border-radius: var(--rayon-carte);
    box-shadow: var(--ombre-carte);
    padding: 12px 0;
    min-width: 200px;
    flex-direction: column;
    z-index: 60;
}

.menu-deroulant__contenu a[hidden],
.menu-mobile__sous-liens a[hidden] {
    display: none !important;
}

/* Pont invisible entre le bouton et le panneau : évite la perte de survol
   accidentelle sur la petite zone vide entre les deux (confort en plus du clic) */
.menu-deroulant::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.menu-deroulant--ouvert .menu-deroulant__contenu {
    display: flex;
    animation: menu-deroulant-apparition 0.15s ease;
}

@keyframes menu-deroulant-apparition {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-deroulant__contenu a {
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-deroulant__contenu a:hover {
    background-color: var(--couleur-beige);
    color: var(--couleur-corail);
}

.entete__recherche {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(38, 53, 60, 0.12);
    border-radius: 999px;
    padding: 10px 18px;
    max-width: 290px;
    color: rgba(38, 53, 60, 0.5);
}

.entete__recherche input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--couleur-anthracite);
}

.entete__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left:auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 70px 0 80px;
    overflow: visible;
}

.hero__decor {
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 230px;
    height: 400px;
    pointer-events: none;
}

.hero__decor--gauche {
    left: -22px;
    transform: translateY(-48%);
}

.hero__decor--droite {
    right: -22px;
    transform: translateY(-48%);
}

.tuile {
    position: absolute;
    display: block;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.tuile img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Décors gauche */

.hero__decor--gauche .tuile--montagne {
    top: 0;
    left: 24px;
    width: 124px;
    height: 118px;
}

.hero__decor--gauche .tuile--plume {
    top: 76px;
    left: 96px;
    width: 128px;
    height: 128px;
}

.hero__decor--gauche .tuile--eclair {
    top: 172px;
    left: 8px;
    width: 126px;
    height: 126px;
}

.hero__decor--gauche .tuile--gouttes {
    top: 175px;
    left: 105px;
    width: 126px;
    height: 126px;
}

.hero__decor--gauche .tuile--etoile {
    top: 285px;
    left: 22px;
    width: 124px;
    height: 124px;
}

/* Décors droite */

.hero__decor--droite .tuile--sourire {
    top: 0;
    right: 16px;
    width: 126px;
    height: 126px;
}

.hero__decor--droite .tuile--ovni {
    top: 82px;
    right: 100px;
    width: 128px;
    height: 128px;
}

.hero__decor--droite .tuile--coeur {
    top: 177px;
    right: 2px;
    width: 128px;
    height: 128px;
}

.hero__decor--droite .tuile--loupe {
    top: 266px;
    right: 94px;
    width: 128px;
    height: 128px;
}

.hero__decor--droite .tuile--fleur {
    top: 302px;
    right: -2px;
    width: 128px;
    height: 128px;
}

.hero__contenu {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero__accroche {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--couleur-corail);
    margin-bottom: 16px;
}

.hero__titre {
    margin-bottom: 22px;
    color: var(--couleur-anthracite);
    font-family: var(--police-titres);
    font-size: clamp(3.1rem, 4.2vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.065em;
    text-align: center;
}

.hero__titre-ligne {
    display: block;
}

.hero__titre-ligne:nth-child(2) {
    white-space: nowrap;
}

.hero__titre-exergue {
    position: relative;
    display: inline-block;
    padding: 0.02em 0.12em 0.1em;
    color: var(--couleur-anthracite);
    background-color: rgba(255, 103, 106, 0.18);
    border: 2px solid rgba(255, 103, 106, 0.65);
    border-radius: 2px;
    font-family: var(--police-exergue);
    font-size: 1.02em;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    z-index: 1;
}

.etiquette-vous {
    position: absolute;
    top: -0.35em;
    right: -2.7em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--couleur-corail);
    color: #ffffff;
    font-family: var(--police-corps);
    font-size: 0.16em;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    padding: 0.45em 0.7em;
    border-radius: 6px;
}

.notif-panneau__titre--lien {
    text-decoration: none;
    transition: color 0.15s ease;
}

.notif-panneau__titre--lien:hover {
    color: var(--couleur-corail);
}

.hero__texte {
    font-size: 1.1rem;
    color: rgba(38, 53, 60, 0.75);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero__separateur {
    border: none;
    border-top: 1px solid rgba(38, 53, 60, 0.15);
    width: 60%;
    margin: 0 auto 40px;
}

.hero__statistiques {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero__statistiques li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__statistiques i {
    color: var(--couleur-corail);
    font-size: 1.4rem;
}

.hero__statistiques strong {
    display: block;
    font-size: 1.3rem;
    font-family: var(--police-titres);
}

.hero__statistiques span {
    font-size: 0.85rem;
    color: rgba(38, 53, 60, 0.65);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 72px 0;
    position: relative;
}

.section--sombre {
    background-color: var(--couleur-anthracite);
    color: #ffffff;
}

.section--corail {
    background-color: var(--couleur-corail);
    color: #ffffff;
}

.section--beige .hero__decor {
    top:50%;
    transform:translateY(-50%) scale(0.92);
}

.section--beige .hero__decor--gauche {
    left:28px;
}

.section--beige .hero__decor--droite {
    right:28px;
}


.section--beige {
    background-color: var(--couleur-beige);
    overflow: visible;
    padding-top: 120px;
    padding-bottom: 130px;
}

.section__entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section__entete h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
}

.section--sombre .lien-voir-tout,
.section--corail .lien-voir-tout {
    color: #ffffff;
}

/* ==========================================================================
   CARTES HISTOIRES
   ========================================================================== */

.grille-cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width:1080px;
    margin:0 auto;
}

.grille-cartes--quatre {
    grid-template-columns: repeat(4, 1fr);
    max-width:1080px;
    margin:0 auto;
}

.carte-histoire {
    background-color: #ffffff;
    border-radius: var(--rayon-carte);
    overflow: hidden;
    color: var(--couleur-anthracite);
    box-shadow: var(--ombre-carte);
    transition: transform 0.2s ease;
}

.carte-histoire:hover {
    transform: translateY(-6px);
}

.carte-histoire__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: rgba(38, 53, 60, 0.08);
}

.carte-histoire__contenu {
    padding: 18px;
}

.carte-histoire__contenu h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.carte-histoire__contenu p {
    font-size: 0.86rem;
    color: rgba(38, 53, 60, 0.7);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carte-histoire__genres {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--couleur-corail);
    flex-wrap: wrap;
}

.carte-histoire__genres img,
.carte-histoire__genres i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.carte-histoire__genres img {
    object-fit: contain;
}

.separateur-genre {
    color: rgba(38, 53, 60, 0.3);
    font-weight: 400;
}

/* ==========================================================================
   CTA COMMUNAUTÉ
   ========================================================================== */

.cta-communaute {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-communaute__icone {
    margin: 0 auto 20px;
    height: 58px;
    width: auto;
}

.cta-communaute__titre {
    font-size: 2.35rem;
    margin-bottom: 26px;
    line-height:1.05;
}

.cta-communaute__badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.badge-store {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--couleur-anthracite);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.15s ease;
}

.badge-store:hover {
    transform: translateY(-3px);
}

.cta-communaute__texte {
    font-size: 0.9rem;
    color: rgba(38, 53, 60, 0.65);
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */

.pied-de-page { background-color: var(--couleur-anthracite); color: #ffffff; overflow-x: hidden; }

.pied-de-page__entete {
    display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 40px 0 32px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.pied-de-page__logo-texte { font-family: var(--police-logo); font-weight: 800; font-size: 22px; }
.pied-de-page__baseline { font-family: var(--police-exergue); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,0.55); }

.pied-de-page__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 0; padding: 48px 0; }
.pied-de-page__grille > div { min-width: 0; padding: 0 40px; border-left: 1px solid rgba(255,255,255,0.15); }
.pied-de-page__marque { padding-left: 0 !important; border-left: none !important; padding-right: 40px; }

.pied-de-page__tagline { font-family: var(--police-exergue); font-style: italic; font-size: 1.4rem; line-height: 1.5; color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.pied-de-page__reseaux { display: flex; gap: 8px; }
.pied-de-page__reseau {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75); display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; transition: all 0.15s ease;
}
.pied-de-page__reseau:hover { border-color: var(--couleur-corail); color: var(--couleur-corail); }

.pied-de-page__titre-colonne {
    font-family: var(--police-titres); font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 22px;
}

.pied-de-page__communaute nav, .pied-de-page__legal nav { display: flex; flex-direction: column; gap: 14px; font-size: 0.95rem; }
.pied-de-page__communaute nav a, .pied-de-page__legal nav a { color: rgba(255,255,255,0.8); transition: color 0.15s ease; }
.pied-de-page__communaute nav a:hover, .pied-de-page__legal nav a:hover { color: var(--couleur-corail); }

.pied-de-page__newsletter-texte { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 20px; }
.pied-de-page__newsletter-champ {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.pied-de-page__newsletter-champ input {
    flex: 1; min-width: 120px; padding: 12px 18px; border-radius: 999px; border: none;
    background-color: rgba(255,255,255,0.08); color: #fff; font-family: var(--police-corps);
    font-size: 0.9rem; outline: none;
}
.pied-de-page__newsletter-champ input::placeholder { color: rgba(255,255,255,0.4); }
.pied-de-page__newsletter-champ button {
    border: none; background: transparent; color: #fff; display: flex; align-items: center; gap: 8px;
    font-family: var(--police-corps); font-weight: 600; font-size: 0.85rem; cursor: pointer;
    padding-bottom: 10px; transition: gap 0.15s ease, color 0.15s ease; white-space: nowrap;
}
.pied-de-page__newsletter-champ button:hover { color: var(--couleur-corail); gap: 14px; }

.pied-de-page__newsletter-consentement { font-size: 0.75rem; line-height: 1.5; color: rgba(255,255,255,0.5); }

.pied-de-page__copyright {
    text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.45);
    padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,0.15);
}

.pied-de-page__lien-desactive {
    color: rgba(240, 235, 230, 0.35);
    cursor: default;
    font-size: inherit;
}

.pied-de-page__reseau:focus-visible,
.pied-de-page__communaute nav a:focus-visible,
.pied-de-page__legal nav a:focus-visible,
.pied-de-page__newsletter-champ button:focus-visible,
.pied-de-page__newsletter-champ input:focus-visible {
    outline: 2px solid var(--couleur-corail);
    outline-offset: 2px;
}

/* État d'action */
.etat-action {
    max-width:480px;
    margin:0 auto;
    padding:64px 24px;
    text-align:center;
}

.etat-action__icone {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    border-radius:50%;
    font-size:1.6rem;
    color:#FFFFFF;
    margin-bottom:20px;
}

.etat-action__icone--chargement {
    background-color:var(--couleur-bleu-vif);
}

.etat-action__icone--succes {
    background-color:var(--couleur-vert-emeraude);
}

.etat-action__icone--erreur {
    background-color:var(--couleur-rouge-vif);
}

.etat-action__titre {
    font-size:1.5rem;
    margin-bottom:12px;
}

.etat-action__message {
    color:rgba(38, 53, 60, 0.7);
    line-height:1.6;
}