/* GoogleCloud.fr — shared site stylesheet
   Design tokens follow Google Cloud's palette; layout uses CSS grid,
   custom properties, fluid type (clamp), and scroll-driven reveal
   animations with graceful fallbacks. No JS framework required. */

:root {
    --blue: #1a73e8;
    --blue-dark: #174ea6;
    --green: #188038;
    --yellow: #f9ab00;
    --red: #d93025;
    --ink: #202124;
    --muted: #5f6368;
    --surface: #ffffff;
    --bg: #f8f9fa;
    --border: #dadce0;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(60, 64, 67, .1), 0 2px 6px rgba(60, 64, 67, .08);
    --shadow-lift: 0 4px 12px rgba(60, 64, 67, .15), 0 12px 28px rgba(60, 64, 67, .12);
    --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Header: always-visible horizontal tab navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 64px;
}

.brand img {
    width: 172px;
    height: auto;
}

.site-nav {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-nav a {
    display: block;
    padding: 1.1rem 1.25rem .85rem;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.site-nav a:hover {
    color: var(--ink);
    background: rgba(26, 115, 232, .06);
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(135deg, #0b3d91 0%, var(--blue-dark) 45%, var(--blue) 100%);
    color: #fff;
    padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero p {
    max-width: 62ch;
    margin: 0 0 2rem;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, .92);
}

.hero .actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Compact hero used by inner pages */
.hero.hero-compact {
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero.hero-compact p {
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: #fff;
    color: var(--blue-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lift);
}

.btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .6);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.btn-blue {
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-blue:hover {
    background: var(--blue-dark);
    box-shadow: var(--shadow-lift);
}

/* ---------- Sections ---------- */

main {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 .5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto 3rem;
}

/* ---------- Story cards (home page, alternating media/text) ---------- */

.story {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}

.story + .story {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.story:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.story:nth-of-type(even) .story-media {
    order: 2;
}

.story-media {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.story-media img {
    border-radius: calc(var(--radius) - 6px);
    margin-inline: auto;
}

.story h3 {
    margin: 0 0 .75rem;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.3;
    font-weight: 700;
}

.story ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    display: grid;
    gap: .45rem;
}

.story ul li::marker {
    color: var(--blue);
}

/* ---------- Service cards ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.service-card img {
    border-radius: calc(var(--radius) - 6px);
    max-height: 260px;
    object-fit: contain;
    margin-inline: auto;
}

.service-card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.service-card h3::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: .6rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

/* Featured service: spans the grid, media beside text */
.service-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.service-card-featured img {
    max-height: none;
    width: 100%;
    object-fit: contain;
}

.service-card-featured p + p {
    margin-top: .85rem;
}

/* ---------- Team cards ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.team-card a {
    color: inherit;
}

.team-card a:hover {
    text-decoration: none;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .3s ease;
}

.team-card:hover img {
    transform: scale(1.04);
}

.team-card figcaption {
    padding: 1rem 1.25rem 1.25rem;
}

.team-card .name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
}

.team-card .role {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    margin-top: .15rem;
}

/* ---------- Contact / partner strip ---------- */

.contact-strip {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-strip h2 {
    margin: 0 0 .35rem;
    font-size: 1.35rem;
}

.contact-strip p {
    margin: 0;
    color: var(--muted);
}

/* ---------- Promotions form ---------- */

.promo-card {
    max-width: 560px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    gap: 1.1rem;
}

.promo-card label {
    font-weight: 600;
    font-size: .9rem;
    display: grid;
    gap: .35rem;
}

.promo-card input {
    font: inherit;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
}

.promo-card input:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .2);
}

.promo-card .hint {
    color: var(--muted);
    font-weight: 400;
    font-size: .8rem;
}

#put_response {
    max-width: 560px;
    margin: 1.5rem auto 0;
    font-size: .9rem;
    word-break: break-word;
}

#put_response .log-ok {
    color: var(--green);
}

#put_response .log-err {
    color: var(--red);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .85);
    padding-block: 2.5rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: #8ab4f8;
}

.site-footer .footer-nav {
    display: flex;
    gap: 1.25rem;
}

.site-footer small {
    color: rgba(255, 255, 255, .6);
}

.partner-badge {
    background: #fff;
    border-radius: 10px;
    padding: .4rem .6rem;
    display: inline-block;
}

/* ---------- Scroll-driven reveal (progressive enhancement) ---------- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .story, .service-card, .team-card {
            animation: rise-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .story {
        grid-template-columns: 1fr;
    }

    .story:nth-of-type(even) .story-media {
        order: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-featured {
        grid-template-columns: 1fr;
    }

    .header-inner {
        justify-content: center;
        padding-block: .5rem 0;
    }

    .site-nav a {
        padding: .75rem 1rem .6rem;
    }
}
