/* ================================
   ACCUEIL · version 2
   Chargé après style.css, seulement sur la page d'accueil.
   Mêmes couleurs que le reste du site (logo : cyan #00a8e1, bleu foncé #003d5c).
   ================================ */

:root {
    --navy: #003d5c;
    --navy-deep: #022c43;
    --ink: #0f2433;
    --muted: #55687a;
    --sky: #e8f4f8;
    --line: #e3ecf2;
}

body {
    font-family: 'Plus Jakarta Sans', var(--font-main);
    color: var(--ink);
}

h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- Barre de navigation ---------- */
.navbar {
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
}
.navbar.scrolled { box-shadow: 0 6px 20px rgba(0, 61, 92, 0.08); }
.nav-links a { color: var(--ink); }
.btn-rdv {
    background: var(--navy);
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
}
.btn-rdv:hover { background: var(--primary-color); }

/* ---------- Boutons ---------- */
.h-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.h-button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.h-button:active { transform: scale(0.97); }
.h-button--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); }
.h-button--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #ffffff; }
.h-button--light { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.h-button--light:hover { background: var(--sky); border-color: var(--sky); }
.h-button--full { width: 100%; }

/* ---------- Titres de section ---------- */
.h-head {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 3rem;
}
.h-head h2 {
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
}
.h-head p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 46ch;
    justify-self: end;
}

/* ---------- Accueil ---------- */
.intro {
    background: var(--navy);
    color: #ffffff;
    text-align: center;
    padding: 170px 0 80px;
}
.intro__title {
    font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.intro__text {
    max-width: 640px;
    margin: 1.75rem auto 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}
.intro__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.25rem;
}
.intro__login {
    display: inline-block;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 600;
}
.intro__login:hover { color: #ffffff; }

.intro__clients {
    margin-top: 4.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.intro__clients p {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}
.intro__clients ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 1.5rem;
}
.intro__clients a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.intro__clients a:hover { opacity: 1; transform: translateY(-2px); }
.intro__clients img { height: 44px; width: auto; border-radius: 10px; }
.intro__clients img.logo-wide { height: 64px; border-radius: 0; }
.intro__clients img.logo-tall { height: 84px; border-radius: 0; }
.intro__clients img.logo-icon { background: #ffffff; padding: 6px; }

/* ---------- Services ---------- */
.trades { padding: 110px 0; background: #ffffff; }
.trades__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}
.trade {
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 24px;
}
.trade h3 { font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
.trade__tag { font-weight: 700; color: var(--primary-light); margin-bottom: 0.6rem; }
.trade__text { margin-top: 0.8rem; font-size: 1.05rem; line-height: 1.6; max-width: 46ch; }
.trade__list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin: 1.6rem 0 0;
}
.trade__list li { position: relative; padding-left: 1.1rem; }
.trade__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}
.trade__example { margin-top: auto; padding-top: 1.75rem; font-size: 0.95rem; font-weight: 600; }
.trade__example a { color: inherit; text-underline-offset: 0.2em; }

/* Projets donnés en exemple dans la carte « Développement sur mesure » */
.trade__projects { display: grid; gap: 10px; margin-top: auto; padding-top: 2rem; }
.trade__projects > p { font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.trade__projects a,
.trade__projects .trade__project {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.trade__projects a:hover { background: rgba(255, 255, 255, 0.14); }
.trade__projects img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; flex: none; }
.trade__projects img.trade__logo-wide { width: 78px; border-radius: 0; }
.trade__projects img.trade__logo-icon { background: #ffffff; padding: 4px; }
.trade__projects a > span:not(.trade__arrow),
.trade__projects .trade__project > span { display: grid; flex: 1; line-height: 1.35; }
.trade__projects strong { font-weight: 700; }
.trade__projects a > span span,
.trade__projects .trade__project > span span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.trade__arrow { font-weight: 700; color: var(--primary-light); }

.trade--dev { grid-row: span 2; background: var(--navy); color: #ffffff; }
.trade--dev .trade__text { color: rgba(255, 255, 255, 0.82); }
.trade--dev .trade__list { grid-template-columns: 1fr; font-size: 1.1rem; gap: 0.8rem; }
.trade--ai { background: var(--sky); color: var(--navy); }
.trade--ai .trade__text { color: var(--ink); }
.trade--ai .trade__list { gap: 0.45rem; font-size: 0.95rem; margin-top: 1.25rem; }
.trade--ads { background: var(--primary-color); color: #ffffff; }

/* ---------- Clients ---------- */
.clients { padding: 110px 0; background: var(--bg-light); }
.review {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem 3.5rem;
    padding: 48px;
    border-radius: 24px;
    background: #ffffff;
}
.review blockquote { display: contents; }
.review__big {
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy);
}
.review__full { color: var(--muted); line-height: 1.7; }
.review figcaption {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.review figcaption img { height: 44px; width: auto; }
.review figcaption > span { display: grid; }
.review figcaption strong { color: var(--navy); }
.review figcaption span span { color: var(--muted); font-size: 0.95rem; }

.client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.client {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
a.client:hover { border-color: var(--primary-color); transform: translateY(-3px); }
.client__logo { display: flex; align-items: center; height: 56px; margin-bottom: 0.9rem; }
.client__logo img { height: 48px; width: auto; border-radius: 12px; }
.client__logo--wide img { height: 46px; border-radius: 0; }
.client__logo--dark {
    justify-content: center;
    width: 56px;
    border-radius: 12px;
    background: var(--navy);
}
.client__logo--dark img { height: 46px; border-radius: 0; }
.client__name { font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.client__kind { font-size: 0.9rem; font-weight: 700; color: var(--primary-dark); }
.client__text { margin-top: 0.4rem; color: var(--muted); font-size: 0.97rem; line-height: 1.6; flex: 1; }
.client__link { margin-top: 1rem; font-size: 0.92rem; font-weight: 700; color: var(--navy); }

/* Quatre réalisations : deux par ligne */
.client-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 768px) { .client-grid--two { grid-template-columns: 1fr; } }

/* ---------- Comment ça marche ---------- */
.steps-band { padding: 110px 0; background: #ffffff; }
.timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}
.timeline li { position: relative; }
.timeline li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 60px;
    right: -1.5rem;
    height: 2px;
    background: var(--sky);
}
.timeline__dot {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
}
.timeline h3 { margin: 1.1rem 0 0.4rem; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.timeline p { color: var(--muted); line-height: 1.6; }

/* ---------- Devis ---------- */
.quote-band { padding: 110px 0; background: var(--bg-light); }
.quote-band__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}
.quote-band__info {
    position: sticky;
    top: 100px;
    padding: 44px;
    border-radius: 24px;
    background: var(--navy);
    color: #ffffff;
}
.quote-band__info h2 { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.quote-band__info > p { margin-top: 1rem; color: rgba(255, 255, 255, 0.8); line-height: 1.6; }
.quote-band__points { list-style: none; display: grid; gap: 0.7rem; margin: 1.75rem 0 2rem; }
.quote-band__points li { position: relative; padding-left: 1.75rem; font-weight: 600; }
.quote-band__points li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-color); font-weight: 800; }
.quote-band__mail { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.75); }
.quote-band__mail a { color: #ffffff; font-weight: 700; }

.quote-band .devis-form {
    max-width: none;
    margin: 0;
    padding: 40px;
    border-radius: 24px;
    box-shadow: none;
    border: 1px solid var(--line);
}
.quote-band .form-row { gap: 1.25rem; }
.quote-band .form-group { margin-bottom: 1.25rem; }
.quote-band .form-group label { color: var(--navy); font-size: 0.95rem; }
.quote-band .form-group input,
.quote-band .form-group select,
.quote-band .form-group textarea {
    font-family: inherit;
    border-width: 1.5px;
    border-color: #d6e2ea;
    padding: 0.85rem 1rem;
}
.quote-band .devis-form button { padding: 0; font-size: 1.05rem; margin-top: 0.5rem; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
    .client-grid { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .timeline li::after { display: none; }
    .quote-band__grid { grid-template-columns: 1fr; }
    .quote-band__info { position: static; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 768px) {
    .intro { padding: 130px 0 56px; }
    .intro__text { font-size: 1.05rem; }
    .intro__actions .h-button { width: 100%; }
    .intro__clients { margin-top: 3rem; }
    .intro__clients ul { gap: 1.25rem 2rem; }
    .intro__clients img.logo-wide { height: 42px; }
    .intro__clients img.logo-tall { height: 54px; }

    .h-head { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 2rem; }
    .h-head p { justify-self: start; }

    .trades, .clients, .steps-band, .quote-band { padding: 72px 0; }
    .trades__grid { grid-template-columns: 1fr; }
    .trade { padding: 28px; }
    .trade--dev { grid-row: auto; }
    .trade--dev .trade__list { grid-template-columns: 1fr; }

    .review { grid-template-columns: 1fr; padding: 28px; }
    .client-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }

    .quote-band__info, .quote-band .devis-form { padding: 28px; }
    .quote-band .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ================================
   ANIMATIONS (actives seulement avec js/home.js)
   ================================ */

/* Halo cyan qui respire derrière le titre et suit la souris */
.intro { position: relative; overflow: hidden; isolation: isolate; }
.intro::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: var(--gx, 50%);
    top: var(--gy, 30%);
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 168, 225, 0.32), rgba(0, 168, 225, 0) 70%);
    transition: left 1.2s ease-out, top 1.2s ease-out;
    animation: glow 9s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes glow {
    from { opacity: 0.7; scale: 0.9; }
    to { opacity: 1; scale: 1.1; }
}

/* Titre : chaque ligne monte depuis sous son cadre */
.intro__line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.intro__line > span { display: inline-block; }
.motion .intro__line > span {
    transform: translateY(105%);
    animation: line-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.15s + var(--i) * 0.14s);
}
@keyframes line-up { to { transform: none; } }

/* Apparition au défilement */
.motion .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0ms);
}
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .intro .reveal { transition-delay: calc(0.55s + var(--d, 0ms)); }

/* Les cartes de service : légère montée au survol, la liste glisse */
.trade { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease; }
.motion .trade.reveal { transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
@media (hover: hover) {
    .trade:hover { transform: translateY(-6px); }
    .trade__list li { transition: transform 0.25s ease; }
    .trade:hover .trade__list li { transform: translateX(4px); }
    .trade__projects a:hover .trade__arrow { transform: translate(3px, -3px); }
}
.trade__arrow { display: inline-block; transition: transform 0.2s ease; }

/* La frise se trace, les pastilles s'allument une à une */
.motion .timeline li:not(:last-child)::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.motion .timeline.is-in li::after { transform: scaleX(1); }
.motion .timeline.is-in li:nth-child(1)::after { transition-delay: 0.2s; }
.motion .timeline.is-in li:nth-child(2)::after { transition-delay: 0.5s; }
.motion .timeline.is-in li:nth-child(3)::after { transition-delay: 0.8s; }
.motion .timeline__dot { scale: 0.4; transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.motion .timeline li.is-in .timeline__dot { scale: 1; transition-delay: calc(var(--d, 0ms) + 0.15s); }

/* Cartes clients : le logo bouge un peu au survol */
.client__logo img { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
a.client:hover .client__logo img { transform: scale(1.08) rotate(-3deg); }
.client__link { transition: color 0.2s ease; }
a.client:hover .client__link { color: var(--primary-color); }

/* Boutons : retour plus net */
.h-button { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease; }
.h-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 168, 225, 0.28); }
.h-button--ghost:hover, .h-button--light:hover { box-shadow: none; }
.h-button:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
    .intro::before { animation: none; transition: none; }
}

/* Deux témoignages côte à côte */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reviews .review { display: flex; flex-direction: column; gap: 1.25rem; padding: 40px; }
.reviews .review blockquote { display: flex; flex-direction: column; gap: 1rem; }
.reviews .review__big { font-size: clamp(1.35rem, 1.05rem + 0.9vw, 1.75rem); }
.reviews .review figcaption { margin-top: auto; }
.review__icon { height: 44px; width: 44px; }
.review__link {
    margin-left: auto;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.review__link:hover { transform: translate(3px, -3px); }
@media (max-width: 900px) {
    .reviews { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .reviews .review { padding: 28px; }
    .client-grid { grid-template-columns: 1fr; }
}

/* ================================
   BANDEAU COOKIES · même style que le reste de l'accueil
   Carte flottante en bas à gauche, à l'écart de la bulle du chatbot.
   ================================ */
.cookie-consent {
    top: auto;
    right: auto;
    left: 24px;
    bottom: 24px;
    width: min(520px, calc(100% - 48px));
    padding: 22px 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(0, 30, 50, 0.28);
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.cookie-consent.show { transform: none; opacity: 1; }
.cookie-consent-content {
    max-width: none;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}
.cookie-consent-text { align-items: flex-start; gap: 14px; }
.cookie-consent-icon { width: 36px; height: 36px; padding: 4px; }
.cookie-consent-text p { font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
.cookie-consent-text a { color: var(--navy); text-underline-offset: 0.2em; }
.cookie-consent-actions { justify-content: flex-end; gap: 10px; }
.cookie-btn {
    min-height: 44px;
    padding: 0 1.4rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-btn-accept { background: var(--primary-color); color: #ffffff; }
.cookie-btn-accept:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: none; }
.cookie-btn-decline { color: var(--navy); border: 2px solid #d6e2ea; }
.cookie-btn-decline:hover { background: var(--sky); border-color: var(--sky); }
.cookie-consent-icon { border: 1px solid var(--line); }
.cookie-btn:active { transform: scale(0.97); }

@media (max-width: 768px) {
    .cookie-consent {
        left: 16px;
        bottom: 88px;
        width: calc(100% - 32px);
        padding: 20px;
    }
    .cookie-consent-text { flex-direction: row; text-align: left; }
}
