/* ==========================================================================
   Altera Interactive — feuille de style principale
   ========================================================================== */

:root {
    /* Palette relevée sur la maquette : vert-turquoise très sombre */
    --navy-900: #001616;
    --navy-800: #002626;
    --navy-700: #0a3434;
    --hero: #002e2e;
    --ink: #0b2e2e;
    --text: #3a4f4f;
    --muted: #5f7878;
    --line: #d8ecec;
    --bg: #ffffff;
    --bg-soft: #f4fcfc;
    --accent: #00bfbf;
    --accent-dark: #007f7f;
    --accent-soft: #dcf6f6;
    --amber: #f5a524;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px -12px rgba(0, 40, 40, .18);
    --shadow-lg: 0 30px 60px -20px rgba(0, 40, 40, .35);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
body { font-size: 16px; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Boutons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .7em 1.3em; border-radius: 999px;
    font-weight: 600; font-size: .92rem; border: 2px solid transparent;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    cursor: pointer; text-decoration: none !important;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(0, 191, 191, .7); }
.btn-primary:hover { background: #2ed3d3; }
/* Bouton secondaire de la maquette : pastille blanche */
.btn-ghost { background: #fff; color: var(--navy-900); }
.btn-ghost:hover { background: #e6f7f7; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--accent); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }

/* En-tête ---------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0, 46, 46, .94);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.15rem; text-decoration: none !important; }
.brand span { font-weight: 500; letter-spacing: -.01em; }
.brand strong { font-weight: 800; color: var(--accent); margin-left: 2px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: #c9dcdc; font-weight: 500; font-size: .96rem; text-decoration: none; padding: 6px 0; position: relative; white-space: nowrap; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: #fff; }
.main-nav ul a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        background: var(--navy-900); padding: 20px 16px 28px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul a { display: block; padding: 10px 0; font-size: 1.05rem; }
    .main-nav ul a[aria-current="page"]::after { display: none; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero ------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(760px 520px at 72% 38%, rgba(0, 191, 191, .38), transparent 65%),
        radial-gradient(600px 400px at 10% 100%, rgba(0, 120, 120, .25), transparent 60%),
        var(--hero);
    color: #c9dcdc;
    padding: 64px 0 88px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 400; color: #fff; line-height: 1.35; margin-bottom: 1.1em; }
.hero-lead { font-size: 1rem; max-width: 38em; margin-bottom: 2.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: min(340px, 80%); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } html { scroll-behavior: auto; } }

.eyebrow {
    display: inline-flex; align-items: center;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12);
    padding: 7px 14px; border-radius: 10px; margin-bottom: 24px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding: 0; list-style: none; font-size: .92rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.page-hero { padding: 72px 0 76px; }
.page-hero .hero-lead { margin-bottom: 0; }

@media (max-width: 880px) {
    .hero { padding: 64px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-visual img { width: min(150px, 45%); }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #c9dcdc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: #8eaaaa; }
.kicker { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); margin-bottom: 10px; display: block; }
.section-dark .kicker { color: var(--accent); }

@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Grilles de cartes ------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: rgba(0, 191, 191, .45); box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { margin-bottom: 0; color: var(--muted); }
.card-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; }

.section-dark .card { background: var(--navy-800); border-color: rgba(255, 255, 255, .08); }
.section-dark .card p { color: #8eaaaa; }
.section-dark .card-icon { background: rgba(0, 191, 191, .12); color: var(--accent); }

/* Liste de fonctionnalités ---------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23007f7f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Bloc split texte / visuel --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse .split-visual { order: -1; }
.split-visual {
    background: linear-gradient(145deg, var(--navy-800), var(--navy-900));
    border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg);
    display: grid; place-items: center; min-height: 320px;
}
@media (max-width: 880px) {
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse .split-visual { order: 0; }
    .split + .split { margin-top: 64px; }
}

/* Code / terminal -------------------------------------------------------- */
.code-window { width: 100%; background: #001212; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.code-window-bar { display: flex; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a4a4a; }
.code-window-bar i:nth-child(1) { background: #ef4444; }
.code-window-bar i:nth-child(2) { background: #f5a524; }
.code-window-bar i:nth-child(3) { background: #22c55e; }
.code-window pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: .82rem; line-height: 1.75; color: #c9dcdc; overflow-x: auto; }
.code-window .k { color: #c084fc; }
.code-window .f { color: #38bdf8; }
.code-window .s { color: #86efac; }
.code-window .c { color: #5f7878; }

/* Étapes ----------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    position: absolute; top: 0; left: 0;
    font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--accent);
    border: 1px solid rgba(0, 191, 191, .4); border-radius: 10px; padding: 6px 10px;
}
.step p { color: #8eaaaa; margin: 0; }

/* Terminaux -------------------------------------------------------------- */
.device-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.device-list li {
    font-family: var(--mono); font-size: .85rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
}

/* Chiffres / points forts ----------------------------------------------- */
.stat { border-left: 3px solid var(--accent); padding-left: 18px; }
.stat strong { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.2; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Réalisations ----------------------------------------------------------- */
.case { display: flex; flex-direction: column; }
.case-visual { border-radius: 14px; background: var(--navy-900); aspect-ratio: 16 / 10; margin-bottom: 22px; display: grid; place-items: center; overflow: hidden; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
.case-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; font-family: var(--mono); }

.case-detail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 12px; }
.case-detail h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.case-detail p { color: var(--text); font-size: .98rem; }
@media (max-width: 880px) { .case-detail { grid-template-columns: 1fr; } }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
    cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); font-size: 1.08rem;
    display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* CTA -------------------------------------------------------------------- */
.cta {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
    border-radius: 28px; padding: 64px; color: #c9dcdc;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 191, .35), transparent 70%);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 34em; }
.cta > * { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta { padding: 40px 24px; border-radius: 20px; } }

/* Formulaire ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form { padding: 24px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 191, 191, .15); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.field-error input, .field-error select, .field-error textarea { border-color: #dc2626; }
.error-text { color: #dc2626; font-size: .85rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-aside .card + .card { margin-top: 20px; }

/* Texte long (mentions légales) ----------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }

/* Pied de page ----------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #8eaaaa; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-text { margin-top: 16px; max-width: 26em; }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #8eaaaa; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 24px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Animation d'apparition ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Qui suis-je ------------------------------------------------------------ */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.about-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.about-role { font-family: var(--mono); font-size: .9rem; color: var(--accent); margin-top: -.4em; }
.about .hero-actions { margin-top: 28px; }
@media (max-width: 880px) {
    .about { grid-template-columns: 1fr; gap: 36px; }
    .about-photo { max-width: 260px; }
}

/* Schémas ---------------------------------------------------------------- */
.schema { margin: 0 0 40px; }
.schema img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.section .grid + .schema { margin: 40px 0 0; }

/* Photos : voile commun aux couleurs du site ---------------------------- */
.case-visual.photo { position: relative; margin: -30px -30px 22px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 16 / 10; }
.case-visual.photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0, 191, 191, .18), rgba(0, 30, 30, .35));
    mix-blend-mode: multiply;
}
.card:has(.case-visual.photo) { overflow: hidden; }
.split-visual.photo-frame { position: relative; padding: 0; overflow: hidden; min-height: 0; }
.split-visual.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.split-visual.photo-frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0, 191, 191, .18), rgba(0, 30, 30, .35));
    mix-blend-mode: multiply;
}

/* Encadré d'information -------------------------------------------------- */
.notice { border: 1px solid rgba(0, 191, 191, .45); background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.notice p { margin: 0; color: var(--ink); }

/* Bouton retour en haut -------------------------------------------------- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: var(--navy-900);
    box-shadow: 0 8px 20px -8px rgba(0, 191, 191, .8);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #2ed3d3; text-decoration: none; }
.back-to-top svg { width: 22px; height: 22px; }
main:focus { outline: none; }

/* Pastilles d'usages ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 18px 10px 14px; font-weight: 600; color: var(--ink); font-size: .98rem;
}
.chips svg { width: 22px; height: 22px; color: var(--accent-dark); flex-shrink: 0; }

/* Coordonnées du pied de page -------------------------------------------- */
.footer-address { font-style: normal; line-height: 1.7; margin-bottom: 14px; color: #c9dcdc; }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: #8eaaaa; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Maquette graphique (octobre 2026)
   ========================================================================== */

/* Titres de section centrés, sans sur-titre */
.section-title { text-align: center; max-width: 820px; margin: 0 auto 48px; }

/* Cadre photo à bordure lumineuse (en-tête, qui suis-je) */
.frame-glow {
    position: relative; border-radius: 44px; padding: 8px;
    border: 2px solid rgba(46, 211, 211, .75);
    box-shadow: 0 0 40px -6px rgba(0, 191, 191, .55), inset 0 0 24px -10px rgba(0, 191, 191, .5);
}
.frame-glow img, .frame-glow .frame-placeholder { display: block; width: 100%; border-radius: 36px; }
.frame-placeholder {
    aspect-ratio: 4 / 5; display: grid; place-items: center; gap: 12px;
    background: rgba(255, 255, 255, .05); color: #8eaaaa; font-size: .85rem; text-align: center;
}
.frame-placeholder img { width: 46%; border-radius: 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-visual .frame-glow { width: min(360px, 100%); }

/* Pastille ronde turquoise pour les icônes */
.icon-circle {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; margin: 0 auto 16px;
}
.icon-circle svg { width: 24px; height: 24px; }

/* Cartes centrées (piliers, prestations) */
.card { border-radius: 26px; border-color: #e3f3f3; box-shadow: 0 6px 24px -14px rgba(0, 60, 60, .25); }
.card-center { text-align: center; }
.card-center .card-label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.card-center h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.card-center p { font-size: .9rem; }
.card-service h3 { text-align: center; font-size: 1rem; }
.card-service p { font-size: .9rem; }
.card-service .card-link { font-size: .88rem; }
/* Dernière carte seule sur sa ligne : centrée, à la largeur d'une colonne */
.grid-2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
@media (max-width: 640px) { .grid-2 > .card:last-child:nth-child(odd) { width: 100%; } }

/* Qui suis-je */
.about-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.about-role { font-family: var(--font); font-weight: 700; color: #fff; font-size: .92rem; margin-top: 0; }
.about-signature { color: #8eaaaa; font-size: .9rem; }
.section-dark#qui-suis-je {
    background: radial-gradient(600px 420px at 18% 50%, rgba(0, 150, 150, .35), transparent 65%), var(--navy-900);
}

/* Liste discrète des équipements sous le schéma */
.equipment-line { text-align: center; color: var(--muted); font-size: .92rem; margin: -20px 0 40px; }

/* Bloc contact final */
.cta-center { flex-direction: column; text-align: center; justify-content: center; padding: 56px 48px; }
.cta-center p { max-width: 44em; margin-inline: auto; }
.cta-center .btn { margin-top: 8px; }

/* Pied de page : filigrane du picto et icônes de contact */
.site-footer { position: relative; overflow: hidden;
    background: radial-gradient(700px 400px at 10% 20%, rgba(0, 120, 120, .25), transparent 65%), var(--navy-900); }
.site-footer::after {
    content: ""; position: absolute; right: 6%; top: 30px; width: 300px; height: 300px;
    background: url("../img/logo-picto.png") center / contain no-repeat; opacity: .06; filter: grayscale(1) brightness(2);
    pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-links .with-icon { display: flex; align-items: center; gap: 10px; }
.footer-links .with-icon svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.footer-bottom { text-align: center; }

/* Pages intérieures harmonisées avec la maquette ------------------------- */
.kicker { font-family: var(--font); font-weight: 700; font-size: .76rem; letter-spacing: .1em; }
.card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; }
.card-icon svg { width: 24px; height: 24px; }
.section-dark .card-icon { background: var(--accent); color: #fff; }
.split-visual, .schema img { border-radius: 26px; }
.split-visual { background: radial-gradient(360px 260px at 50% 40%, rgba(0, 191, 191, .18), transparent 70%), linear-gradient(145deg, var(--navy-800), var(--navy-900)); }
.section-dark { background: radial-gradient(700px 420px at 15% 30%, rgba(0, 150, 150, .3), transparent 65%), var(--navy-900); }
.step::before { font-family: var(--font); font-weight: 700; }
.stat strong { font-size: 1.2rem; font-weight: 700; }
.device-list li { font-family: var(--font); font-weight: 500; border-radius: 999px; padding: 8px 16px; }
.tags li { font-family: var(--font); }
.case-meta { font-family: var(--font); font-weight: 500; font-size: .85rem; }
.form { border-radius: 26px; }
.contact-aside .card h3 { font-size: 1rem; }
@media (max-width: 1000px) { .cta::after { display: none; } }
@media (max-width: 880px) {
    .hero-visual { order: 2; }
    .hero-visual .frame-glow { width: min(240px, 70%); border-radius: 32px; }
    .hero-visual .frame-glow .frame-placeholder { border-radius: 26px; }
    .about-photo { max-width: 240px; margin-inline: auto; }
}
.device-list li.featured { background: var(--accent); border-color: var(--accent); color: var(--navy-900); font-weight: 700; }

/* ==========================================================================
   Assets du graphiste et typographie de la notice
   ========================================================================== */

/* Largeur de contenu de la maquette (~1270 px sur un écran de 1920 px) */
.container { width: min(1270px, 100% - 32px); }

/* Typographie (notice) : corps Poppins 16 px, cartes Poppins 21 px gras, boutons Poppins 14 px gras.
   Titres en Inter ExtraBold : équivalent libre de Bw Modelica, choisi par le graphiste. */
:root { --font-title: "Inter", "Poppins", system-ui, sans-serif; }
h1, h2, .section-title { font-family: var(--font-title); font-weight: 800; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.45rem); line-height: 1.05; }
.section-title { font-size: clamp(2rem, 3.4vw, 3.3rem); }
.card-center h3, .card-service h3 { font-size: clamp(1.1rem, 1.6vw, 1.31rem); font-weight: 700; }
.card-center p, .card-service p { font-size: 1rem; }
.btn { font-size: .875rem; font-weight: 700; }
.eyebrow { font-size: clamp(.8rem, 1.1vw, 1rem); font-weight: 700; text-transform: none; letter-spacing: 0; }
.main-nav ul a { font-size: 1.05rem; font-weight: 400; }
.main-nav ul a[aria-current="page"] { font-weight: 700; }

/* Icônes PNG */
.btn-icon { width: auto; height: 20px; flex-shrink: 0; }
.card-png-icon { display: block; width: 56px; height: 56px; margin: 0 auto 16px; }

/* En-tête de l'accueil : fond du graphiste */
.hero { background: url("../img/fonds/hero.webp") right center / cover no-repeat, var(--hero); }
.hero-photo { width: min(400px, 100%); height: auto; margin-inline: auto; }

/* Qui suis-je : fond du graphiste, portrait avec cadre intégré */
.section-dark#qui-suis-je { background: url("../img/fonds/qui-suis-je.webp") left center / cover no-repeat, #001414; }
.about-photo img { width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }

/* Schéma : image complète (cadre et coins intégrés) */
.schema img { border-radius: 0; box-shadow: none; }

/* Bloc contact : fond du graphiste (coins arrondis et téléphone intégrés) */
.cta { background: url("../img/fonds/cta.webp") center / 100% 100% no-repeat; border-radius: 28px; }
.cta::after { display: none; }

/* Pied de page : fond du graphiste avec le picto en relief */
.site-footer { background: url("../img/fonds/footer.webp") right center / cover no-repeat, #001414; }
.site-footer::after { display: none; }

@media (max-width: 880px) {
    .hero-photo { width: min(260px, 75%); }
    .site-footer { background-position: 80% center; }
}
/* Proportions du fond (1280x452) respectées sur grand écran ; recadré sur petit écran */
@media (min-width: 1001px) { .cta-center { aspect-ratio: 1280 / 452; padding-block: 40px; } }
@media (max-width: 1000px) { .cta { background-size: cover; background-color: #002e2e; } }

/* Titres des en-têtes entièrement blancs : le turquoise se fondait dans le halo du fond */
.hero h1 em { color: #fff; }

/* Message "en cours de construction" (page Réalisations) */
.under-construction { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid #e3f3f3; border-radius: 26px; padding: 48px 32px; box-shadow: 0 6px 24px -14px rgba(0, 60, 60, .25); }
.under-construction h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.under-construction p { color: var(--muted); margin: 0; }
