/*
 * Habillage du site.
 *
 * La brique de l'application (`#D9480F`, la graine de son thème Material)
 * sur un fond crème : chaud, lisible, et le même orange que l'icône dans la
 * boutique, pour qu'on reconnaisse l'application avant de l'avoir ouverte.
 *
 * Aucune police n'est chargée depuis un serveur tiers : la pile système
 * suffit, et une requête de moins est une dépendance de moins.
 */

:root {
    --brique: #D9480F;
    --brique-foncee: #B53A0A;
    --brique-claire: #FFE9DC;
    --creme: #FFF8F2;
    --sable: #F6E7DC;
    --encre: #2B1D16;
    --ardoise: #6B5A52;
    --blanc: #FFFFFF;
    --ombre: 0 18px 40px rgba(43, 29, 22, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--creme);
    color: var(--encre);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1040px, 100% - 2.5rem);
    margin-inline: auto;
}

a { color: var(--brique-foncee); }
img { max-width: 100%; }

/* --------------------------------------------------------------- en-tête */

.site-header {
    background: var(--blanc);
    border-bottom: 1px solid var(--sable);
    padding: .85rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.marque {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--brique);
    text-decoration: none;
}

.marque img { border-radius: 8px; }

.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.site-nav a { text-decoration: none; color: var(--encre); font-weight: 500; }
.site-nav a:hover { color: var(--brique); }

/* Le sélecteur de langue n'est pas une rubrique du site : le cadre le
   sépare de la navigation sans le mettre en avant. */
.site-nav__langue {
    padding: .1rem .55rem;
    border: 1px solid var(--sable);
    border-radius: 999px;
    font-size: .9em;
    color: var(--ardoise) !important;
}

/* ------------------------------------------------------------------ hero */

.hero {
    padding: 3.5rem 0 0;
    background: linear-gradient(180deg, var(--blanc) 0%, var(--creme) 100%);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    gap: 2.5rem;
    align-items: end;
}

@media (min-width: 820px) {
    .hero__inner { grid-template-columns: 3fr 2fr; gap: 3rem; }
    .hero__texte-bloc { padding-bottom: 3.5rem; }
}

.hero__eyebrow {
    margin: 0 0 .5rem;
    color: var(--brique);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 600;
}

.hero__titre {
    margin: 0 0 1.25rem;
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.hero__texte { max-width: 58ch; margin: 0 0 1rem; font-size: 1.08rem; }
.hero__appel { margin-top: 1.75rem; }

/* Le téléphone du haut : le hero le coupe (`overflow: hidden`) avant sa
   moitié basse, comme un appareil posé au bord de la table. */
.hero__telephone {
    justify-self: center;
    width: min(300px, 80%);
    margin-bottom: -40%;
}

@media (min-width: 820px) {
    .hero__telephone { margin-bottom: -22%; width: min(320px, 100%); }
}

/* ------------------------------------------------------------ téléphone */

.telephone {
    background: #1B1B1B;
    border-radius: 2.6rem;
    padding: .7rem;
    box-shadow: var(--ombre);
}

.telephone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2rem;
}

.telephone--petit { border-radius: 2rem; padding: .5rem; }
.telephone--petit img { border-radius: 1.55rem; }

/* --------------------------------------------------------------- boutons */

.btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brique); color: var(--blanc); }
.btn--primary:hover { background: var(--brique-foncee); }

.btn--boutique { background: var(--encre); color: var(--blanc); }
.btn--boutique:hover { background: #000; }

/* -------------------------------------------------------------- sections */

.section { padding: 3.5rem 0; }
.section--sable { background: var(--sable); }
.section--brique { background: var(--brique); color: var(--blanc); }
.section--brique a { color: var(--blanc); }

.section h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.section__intro { max-width: 62ch; margin: 0 0 1.5rem; font-size: 1.05rem; }
.section__note { max-width: 62ch; font-size: .92rem; opacity: .85; }
.section__credits {
    max-width: 62ch;
    margin: 2rem 0 0;
    padding: 1.1rem 1.4rem;
    background: var(--blanc);
    border-left: 4px solid var(--brique);
    border-radius: 6px;
}

.grille {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.grille--quatre {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.carte {
    background: var(--sable);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
}

.carte--blanche { background: var(--blanc); }
.carte h3 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--brique-foncee); }
.carte p { margin: 0; }

/* -------------------------------------------------------------- captures */

.captures {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.capture { text-align: center; }
.capture .telephone { max-width: 240px; margin: 0 auto; }
.capture__legende { margin: .9rem 0 0; font-weight: 600; color: var(--ardoise); }

/* ------------------------------------------------------------- boutiques */

.boutiques {
    list-style: none;
    margin: 1.75rem 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.boutique {
    background: rgba(255, 255, 255, .12);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: flex-start;
}

/* La carte que le script met en avant. Sans JavaScript, aucune carte ne
   porte cette classe et la liste reste simplement une liste. */
.boutique--vedette { border-color: var(--blanc); background: rgba(255, 255, 255, .2); }

.boutique__vedette {
    background: var(--blanc);
    color: var(--brique-foncee);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 999px;
}

.boutique__plateforme { font-weight: 600; line-height: 1.35; font-size: 1.05rem; }

.boutique--a-venir { opacity: .7; }
.boutique__attente { font-style: italic; opacity: .9; }

/* --------------------------------------------------------------- éditeur */

.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ pied */

.site-footer {
    background: var(--blanc);
    border-top: 1px solid var(--sable);
    padding: 2rem 0 2.5rem;
    color: var(--ardoise);
    font-size: .92rem;
}

.pied__liens { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0 0 .75rem; }
.pied__liens a { color: var(--ardoise); }
.pied__liens a:hover { color: var(--brique); }
.pied__apps { margin: 0 0 .75rem; }
.pied__apps-titre { font-weight: 600; }
.pied__apps-liste { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 0 .5rem; padding: 0; list-style: none; }
.pied__apps-liste a { color: var(--ardoise); }
.pied__apps-liste a:hover { color: var(--brique); }
.pied__mention { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
