/*
    Feuille de style de la page d'accueil, partagee par index.html (francais) et en.html (anglais)
    depuis le 16/11/2026 : elle vivait en ligne dans index.html, et deux langues l'auraient dupliquee.
*/

/*
    Palette : alignement strict avec Colors.xaml de l'app MAUI.
    Une seule source de verite chromatique entre l'app et le site.
    Toute modification de la palette doit etre faite ICI et dans
    Colors.xaml simultanement pour preserver la coherence visuelle.
*/
:root {
    --color-primary: #CBAB91;
    --color-primary-dark: #B08969;
    --color-primary-light: #E5D0BA;
    --color-tertiary-light: #F4E3D3;
    --color-text: #2E2620;
    --color-text-soft: #5F6A6E;
    --color-text-muted: #8F8B84;
    --color-bg: #F7F6F4;
    --color-surface: #FFFFFF;
    --color-card: #F0E6DC;
    --color-accent: #CB7A6B;
    --color-midnight: #1E3A45;
    --color-divider: #E0DED8;

    /* Echelle typographique fluide pour adaptation responsive sans breakpoints */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-soft: 0 10px 40px -20px rgba(46, 38, 32, 0.25);
    --shadow-photo: 0 20px 60px -30px rgba(46, 38, 32, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    /* Texture papier subtile : grain genere en SVG inline, RGPD compatible */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--color-accent); }

/* Focus visible accessible : encadrement net sans casser l'esthetique */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   HEADER
   Minimal, sticky discret.
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-divider);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img {
    height: 38px;
    width: auto;
}
.logo-wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    font-size: 22px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.header-contact {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 16px;
    border: 1px solid var(--color-text);
    border-radius: 999px;
    transition: all 0.2s ease;
}
.header-contact:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ===========================
   HERO
   Composition asymetrique editoriale.
   Photo presentee comme un cliche papier legerement incline,
   pour evoquer le scrapbook physique sans tomber dans le kitsch.
   =========================== */
.hero {
    padding: 80px 0 100px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 80px;
    }
    .hero { padding: 100px 0 140px; }
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--color-primary-dark);
    vertical-align: middle;
    margin-right: 14px;
    margin-bottom: 3px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    /* Echelle fluide : 38px sur mobile, jusqu'a 68px en grand ecran */
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin: 0 0 32px;
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: var(--color-text-soft);
    max-width: 540px;
    margin: 0;
}

.hero-photo-wrap {
    position: relative;
    padding: 14px 14px 60px;
    background: var(--color-surface);
    box-shadow: var(--shadow-photo);
    /*
        Inclinaison legere facon polaroid pose sur une table.
        Inversee en mobile pour eviter de deborder hors viewport.
    */
    transform: rotate(2deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-photo-wrap:hover { transform: rotate(0deg); }
.hero-photo-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.hero-photo-caption {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--color-text-soft);
}
@media (max-width: 899px) {
    .hero-photo-wrap { transform: rotate(0); max-width: 420px; margin: 0 auto; }
}

/* ===========================
   SECTION CONCEPT
   4 etapes alternees gauche/droite.
   Chaque etape = un numero (gros chiffre Fraunces italic),
   un titre, une description, un visuel.
   =========================== */
.concept {
    padding: 60px 0 120px;
    position: relative;
}
.concept-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 80px;
}
.concept-intro h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.concept-intro h2 em { font-style: italic; font-weight: 400; }
.concept-intro p {
    color: var(--color-text-soft);
    font-size: 1.1rem;
    margin: 0;
}

.step {
    /*
        position: relative pour permettre au separateur ::before
        d'etre positionne en absolu hors du flux grid. Sans cela,
        le pseudo-element deviendrait un item de grille et casserait
        la mise en colonnes des etapes 2-4.
    */
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}
@media (min-width: 900px) {
    .step {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
        padding: 80px 0;
    }
    /* Pattern alterne : etapes 2 et 4 inversees */
    .step.reverse .step-visual { order: -1; }
}

.step-content { max-width: 480px; }
.step-number {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: block;
}
.step-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.step-description {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--color-text-soft);
    margin: 0;
}
.step-description strong {
    color: var(--color-text);
    font-weight: 500;
}

/*
    Variantes de presentation des visuels selon leur nature :
    - .step-visual.photo : photographie reelle, cadre polaroid
    - .step-visual.illustration : illustration cartoon, sans cadre
    - .step-visual.screenshot : capture d'ecran de l'app, dans
      un cadre de telephone subtil
*/
.step-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.step-visual.photo {
    background: var(--color-surface);
    padding: 14px 14px 50px;
    box-shadow: var(--shadow-photo);
    transform: rotate(-1.5deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 480px;
    margin: 0 auto;
}
.step-visual.photo:hover { transform: rotate(0deg); }
.step-visual.photo img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

.step-visual.illustration {
    background: var(--color-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 540px;
}
.step-visual.illustration img {
    width: 100%;
    border-radius: var(--radius-md);
}

.step-visual.screenshot {
    display: flex;
    justify-content: center;
}
.step-visual.screenshot .phone-frame {
    position: relative;
    background: var(--color-text);
    padding: 12px;
    border-radius: 36px;
    box-shadow: var(--shadow-photo);
    max-width: 280px;
}
.step-visual.screenshot .phone-frame img {
    border-radius: 24px;
    display: block;
}

/*
    Filet decoratif entre les etapes : reference au papier ligne.
    Positionne en absolu pour ne PAS devenir un item de grille,
    ce qui casserait la mise en deux colonnes des etapes.
*/
.step + .step { padding-top: 100px; }
.step + .step::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-divider);
}

/* ===========================
   FOOTER
   Sobre, lourd typographiquement, mentions legales accessibles.
   =========================== */
.site-footer {
    background: var(--color-text);
    color: var(--color-primary-light);
    padding: 80px 0 40px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 60px;
    }
}

.footer-brand img {
    height: 50px;
    width: auto;
    filter: invert(1) brightness(2);
    margin-bottom: 20px;
}
.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--color-primary-light);
    max-width: 320px;
    margin: 0;
}

.footer-col h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 20px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: var(--color-primary-light);
    font-size: 15px;
}
.footer-col a:hover { color: var(--color-surface); }

.footer-bottom {
    border-top: 1px solid rgba(229, 208, 186, 0.15);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-primary);
}
@media (min-width: 700px) {
    .footer-bottom { flex-direction: row; align-items: center; }
}
.footer-signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--color-primary-light);
}

/* Respect des preferences de reduction de mouvement (accessibilite) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-photo-wrap, .step-visual.photo { transform: none; }
}

/* ===========================
   SELECTEUR DE LANGUE (16/11/2026)
   Deux drapeaux, la langue courante cerclee. Drapeaux en SVG en ligne :
   les emojis drapeaux ne s'affichent pas sous Windows.
   =========================== */
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch a {
    display: inline-flex;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { opacity: 1; border-color: var(--color-text); }
.lang-switch svg { display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(46, 38, 32, 0.15); }
@media (max-width: 480px) {
    .logo-wordmark { display: none; }
    .header-contact { padding: 7px 12px; font-size: 14px; }
}

/* ===========================
   BOUTONS DES MAGASINS
   =========================== */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 16px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 12px;
    line-height: 1.15;
    transition: background 0.2s ease, transform 0.2s ease;
}
.store-button:hover { background: var(--color-midnight); color: var(--color-bg); transform: translateY(-1px); }
.store-button svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-button small { display: block; font-size: 11px; letter-spacing: 0.04em; opacity: 0.8; }
.store-button strong { display: block; font-size: 17px; font-weight: 500; }
.store-note { margin: 14px 0 0; font-size: 14px; color: var(--color-text-muted); }

/* ===========================
   CAPTURE D'ECRAN LARGE (double page feuilletee)
   =========================== */
.spread { padding: 20px 0 80px; text-align: center; }
.spread figure { margin: 0 auto; max-width: 980px; }
.spread img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-photo);
}
.spread figcaption {
    margin-top: 22px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-text-soft);
}

/* ===========================
   CONTACT ET TELECHARGEMENT
   L'adresse est ecrite EN CLAIR : un lien mailto ne fait rien sur un appareil
   sans messagerie configuree (constat du 16/11/2026), l'adresse lisible reste.
   =========================== */
.closing { padding: 40px 0 100px; }
.closing-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.closing-card {
    /* L'en-tete est collant : sans marge, l'ancre #contact glisserait le titre dessous. */
    scroll-margin-top: 100px;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
}
.closing-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.closing-card p { color: var(--color-text-soft); font-size: 1.05rem; margin: 0; }
.closing-card .store-buttons { margin-top: 28px; }
.contact-address {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-accent);
    user-select: all;
    word-break: break-all;
}
.contact-hint { margin-top: 14px !important; font-size: 14px !important; color: var(--color-text-muted) !important; }

/* Texte lu par les lecteurs d'ecran seulement (nom de la langue derriere chaque drapeau). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
