/* ==========================================================================
   Site statique www.akira-sarl.fr (landing CFL)
   Thème aligné sur l'application CFL : jetons et composants repris de Hikari
   (hikari-base.css, thème « cfl ») et de CFL_front.Browser/wwwroot/css/cfl-design-system.css,
   copiés ici volontairement : le site ne dépend d'aucun fichier de l'application.
   Correspondances : en-tête = hk-app-bar, .btn = hk-btn, .card = hk-card à liseré.
   ========================================================================== */

/* Inter (SIL Open Font License 1.1, assets/fonts/LICENSE-Inter-OFL.txt), sous-ensemble latin, graisses 100 à 900. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/assets/fonts/inter-latin-wght.woff2?v=e4ac83ce) format('woff2-variations'),
         url(/assets/fonts/inter-latin-wght.woff2?v=e4ac83ce) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --cfl-primary: #2c5282;
    --cfl-primary-hover: #1a365d;
    --cfl-primary-light: #428bb0;
    --cfl-primary-lighter: #ebf4ff;
    --cfl-primary-300: #90cdf4;
    --cfl-primary-rgb: 44, 82, 130;
    --cfl-white: #ffffff;
    --cfl-gray-50: #f7fafc;
    --cfl-gray-100: #f0f2f4;
    --cfl-gray-200: #e2e8f0;
    --cfl-gray-300: #cbd5e0;
    --cfl-gray-500: #718096;
    --cfl-gray-800: #1a202c;
    --cfl-text-primary: #2d3748;
    --cfl-text-secondary: #4a5568;
    --cfl-border: #e2e8f0;
    --cfl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --cfl-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --cfl-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.08);
    --cfl-radius-md: 4px;
    --cfl-radius-lg: 6px;
    --cfl-focus-ring: 0 0 0 3px rgba(var(--cfl-primary-rgb), 0.2);
    --cfl-transition: 150ms ease;

    --font: 'Inter', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --gutter: 16px;
    --max: 1120px;
    --header-h: 64px;
    --section-y: clamp(48px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--cfl-white);
    color: var(--cfl-text-primary);
    font-family: var(--font);
    font-size: 1.0625rem; /* 17px */
    line-height: 1.65;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--cfl-primary); }
a:hover { color: var(--cfl-primary-hover); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--cfl-primary-light); outline-offset: 2px; }

h1, h2, h3 { color: var(--cfl-primary-hover); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.025em; line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

.lead { font-size: 1.2rem; color: var(--cfl-text-secondary); }

.eyebrow {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cfl-primary-light);
    margin-bottom: 0.5em;
}
.eyebrow--light { color: var(--cfl-primary-300); }

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    background: var(--cfl-primary-hover);
    color: var(--cfl-white);
    padding: 8px 12px;
    z-index: 20;
}
.skip-link:focus { top: 8px; color: var(--cfl-white); }

/* ===== Boutons (hk-btn) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--cfl-radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--cfl-transition), border-color var(--cfl-transition), color var(--cfl-transition);
}
.btn:focus-visible { outline: none; box-shadow: var(--cfl-focus-ring), 0 0 0 1px var(--cfl-primary); }
/* hk-btn--solid hk-btn--primary */
.btn--primary { background: var(--cfl-primary); color: var(--cfl-white); }
.btn--primary:hover { background: var(--cfl-primary-hover); color: var(--cfl-white); }
/* hk-btn--solid hk-btn--white, sur fond bleu */
.btn--white { background: var(--cfl-white); color: var(--cfl-primary-hover); }
.btn--white:hover { background: var(--cfl-primary-lighter); color: var(--cfl-primary-hover); }
/* hk-btn--outline hk-btn--white, sur fond bleu */
.btn--outline-white { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--cfl-white); }
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--cfl-white); color: var(--cfl-white); }
.btn--white:focus-visible,
.btn--outline-white:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.btn--large { min-height: 48px; padding: 12px 26px; font-size: 1.05rem; }

/* ===== En-tête (hk-app-bar) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--cfl-primary);
    color: var(--cfl-white);
    border-bottom: 1px solid var(--cfl-primary-hover);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--cfl-white);
    text-decoration: none;
}
.brand:hover { color: var(--cfl-white); }
.brand__name { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.14em; }
.site-header a:focus-visible, .site-header summary:focus-visible { outline-color: var(--cfl-primary-300); }

.site-nav { display: none; align-items: center; gap: 4px; }
/* hk-btn--flat hk-btn--white */
.site-nav a:not(.btn) {
    padding: 8px 12px;
    border-radius: var(--cfl-radius-md);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--cfl-transition), color var(--cfl-transition);
}
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.12); color: var(--cfl-white); }
.site-nav .btn { margin-left: 8px; }
.site-nav .btn + .btn { margin-left: 4px; }

.mobile-nav { position: relative; }
.mobile-nav summary {
    list-style: none;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--cfl-radius-md);
    font-weight: 600;
    color: var(--cfl-white);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: rgba(255, 255, 255, 0.12); }
.mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(280px, calc(100vw - 2 * var(--gutter)));
    background: var(--cfl-white);
    border: 1px solid var(--cfl-border);
    border-radius: var(--cfl-radius-lg);
    box-shadow: var(--cfl-shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    overflow: hidden;
}
.mobile-nav nav a {
    padding: 12px 16px;
    text-decoration: none;
    color: var(--cfl-text-primary);
    font-weight: 500;
}
.mobile-nav nav a:hover { background: var(--cfl-gray-50); color: var(--cfl-primary); }

@media (min-width: 1040px) {
    .site-nav { display: flex; }
    .mobile-nav { display: none; }
}

/* ===== Hero ===== */
.hero {
    background: var(--cfl-gray-50);
    border-bottom: 1px solid var(--cfl-border);
    padding: clamp(40px, 7vw, 88px) 0;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero .lead { color: var(--cfl-text-primary); }

.shot { margin: 0; }
.shot img {
    border: 1px solid var(--cfl-gray-300);
    border-radius: var(--cfl-radius-lg);
    box-shadow: var(--cfl-shadow-lg);
    background: var(--cfl-white);
}

/* Agrandissement des captures (assets/zoom.js) */
.shot__zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
/* Écran étroit : zoom désactivé par assets/zoom.js, la capture redevient une simple image. */
.shot__zoom:disabled { cursor: auto; color: inherit; }
.shot__zoom:focus-visible { outline: 3px solid var(--cfl-primary-light); outline-offset: 4px; border-radius: var(--cfl-radius-lg); }

/* La fenêtre prend la taille réelle de la capture (jamais agrandie au-delà), dans la limite de l'écran. */
.zoom {
    width: fit-content;
    max-width: 96vw;
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: var(--cfl-radius-lg);
    background: var(--cfl-white);
    overflow: auto;
}
.zoom::backdrop { background: rgba(26, 32, 44, 0.8); }
/* Croix fixée en haut à droite de l'écran : reste visible quand une capture haute défile. */
.zoom__close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--cfl-gray-800);
    color: var(--cfl-white);
    font: 1.75rem/1 var(--font);
    cursor: pointer;
}
.zoom__close:focus-visible { outline: 3px solid var(--cfl-primary-light); outline-offset: 2px; }

@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}

/* ===== Référence : bandeau pleine largeur ===== */
.reference {
    background: var(--cfl-primary);
    color: var(--cfl-white);
    padding: 28px 0;
    font-size: 1.15rem;
}
.reference strong { color: var(--cfl-white); }

/* ===== Le dossier suit le défunt ===== */
.dossier { padding: var(--section-y) 0; text-align: center; }
.dossier .lead { color: var(--cfl-text-primary); }

/* ===== Les métiers ===== */
.metiers { padding: var(--section-y) 0; background: var(--cfl-gray-50); }
.metiers > .wrap > h2 { margin-bottom: 1.2em; }
.metier { margin-bottom: 48px; }
.metier:last-child { margin-bottom: 0; }

.metier--media { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
    .metier--media { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
}

.metier--panel { display: grid; gap: 28px; align-items: center; }
.metier--panel .metier__text { max-width: 760px; }
@media (min-width: 900px) {
    /* Texte à gauche, capture réduite à droite : le zoom (assets/zoom.js) la montre en grand. */
    .metier--panel { grid-template-columns: 1fr 520px; gap: 48px; }
    .metier--panel .metier__text { max-width: none; }
}

.metier--aside {
    border-top: 1px solid var(--cfl-gray-300);
    padding-top: 32px;
    max-width: 680px;
}

/* ===== Les écrans d'accueil ===== */
.ecrans {
    padding: var(--section-y) 0;
    background: var(--cfl-primary-hover);
    color: var(--cfl-white);
}
.ecrans h2 { color: var(--cfl-white); }
.ecrans .lead { color: var(--cfl-white); }
.ecrans__grid { display: grid; gap: 32px; align-items: center; }
.ecrans__text { max-width: 680px; }
/* Écran portrait : largeur bornée pour ne pas occuper tout un écran de téléphone en hauteur. */
.ecrans__visual { width: 100%; max-width: 320px; margin: 0 auto; }
.ecrans .shot img { border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
@media (min-width: 900px) {
    .ecrans__grid { grid-template-columns: 1fr 340px; gap: 56px; }
    .ecrans__visual { max-width: none; }
}

/* ===== Pour toute l'équipe ===== */
.equipe { padding: var(--section-y) 0; }
.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
/* Liste à filets, comme les listes de l'application : pas de boîtes. */
.card {
    border-top: 1px solid var(--cfl-gray-300);
    padding-top: 16px;
    color: var(--cfl-text-primary);
}
.card strong { display: inline; color: var(--cfl-primary-hover); }
@media (min-width: 640px) {
    .cards { grid-template-columns: repeat(2, 1fr); column-gap: 40px; row-gap: 28px; }
}
@media (min-width: 960px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Devis, factures et contrats obsèques ===== */
.facturation {
    padding: var(--section-y) 0;
    background: var(--cfl-gray-100);
    border-top: 1px solid var(--cfl-border);
}
.facturation__grid { display: grid; gap: 24px; }
.facturation__body { max-width: 680px; }
@media (min-width: 900px) {
    .facturation__grid { grid-template-columns: 1fr 1.5fr; gap: 56px; }
}

/* ===== Qui sommes-nous ===== */
.about { padding: var(--section-y) 0; }
.about__grid { display: grid; gap: 24px; align-items: start; max-width: 860px; }
.about__logo { width: 96px; height: 96px; }
@media (min-width: 700px) {
    .about__grid { grid-template-columns: 140px 1fr; gap: 40px; }
    .about__logo { width: 140px; height: 140px; }
}

/* ===== Demander une démonstration ===== */
.demo {
    padding: var(--section-y) 0;
    background: var(--cfl-primary);
    color: var(--cfl-white);
}
.demo h2 { color: var(--cfl-white); }
.demo__grid { display: grid; gap: 32px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-weight: 600; }
.checks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--cfl-primary-300);
    border-bottom: 2px solid var(--cfl-primary-300);
    transform: rotate(-45deg);
}
.demo__panel {
    background: var(--cfl-white);
    color: var(--cfl-text-primary);
    border-radius: var(--cfl-radius-lg);
    padding: clamp(20px, 4vw, 32px);
}
.demo__noscript { font-size: 1.15rem; font-weight: 700; }
@media (min-width: 900px) {
    .demo__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ===== Pied de page ===== */
.site-footer {
    background: var(--cfl-gray-800);
    color: var(--cfl-gray-200);
    padding: 32px 0;
    font-size: 1rem;
}
.site-footer a { color: var(--cfl-white); }
.site-footer a:hover { color: var(--cfl-primary-lighter); }
.site-footer__links { margin-top: 8px; }

/* ===== Pages secondaires (404, pages légales) ===== */
.page { padding: var(--section-y) 0; min-height: 50vh; }

/* ===== Formulaire de démonstration (hk-input) ===== */
.demo-form { display: grid; gap: 16px; }
.demo-form__field { display: grid; gap: 6px; font-size: 0.95rem; font-weight: 600; color: var(--cfl-primary-hover); }
.demo-form__field em { font-style: normal; color: var(--cfl-primary-light); }
.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form input[type="tel"],
.demo-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    color: var(--cfl-text-primary);
    background: var(--cfl-white);
    border: 1px solid var(--cfl-gray-300);
    border-radius: var(--cfl-radius-md);
    transition: border-color var(--cfl-transition), box-shadow var(--cfl-transition);
}
.demo-form textarea { resize: vertical; }
.demo-form input:hover,
.demo-form textarea:hover { border-color: var(--cfl-gray-500); }
.demo-form input:focus-visible,
.demo-form textarea:focus-visible { outline: none; border-color: var(--cfl-primary); box-shadow: var(--cfl-focus-ring); }
/* Honeypot : hors écran (pas display:none, que certains robots détectent). */
.demo-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-form__error {
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #c53030;
    border-left-width: 4px;
    border-radius: var(--cfl-radius-md);
    color: #742a2a;
}
.demo-form__error[hidden] { display: none; }
.demo-form__submit { justify-self: start; }
.demo-form__submit:disabled { opacity: 0.6; cursor: wait; }
.demo-success { text-align: center; }
.demo-success h3 { margin-bottom: 0.4em; }

/* ===== Pages légales ===== */
.legal h2 { margin-top: 32px; }
.legal h3 { margin-top: 16px; font-size: 1rem; }
.legal ul { padding-left: 20px; }
.legal-updated { font-size: 0.9rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal-table th, .legal-table td { border: 1px solid var(--cfl-gray-300); padding: 8px 12px; text-align: left; vertical-align: top; }
.legal-table th { font-weight: 650; background: var(--cfl-gray-50); }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }
