/* FROGERS — Identité visuelle */

:root {
    color-scheme: light;
    --bleu-marine: #172943;
    --bleu-frogers: #2563eb;
    --bleu-vert: #14b8a6;
    --violet-rgb: 139, 92, 246;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #172033;
    font-family: Arial, sans-serif;
    text-align: center;
}

.site-header {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(ellipse at 86% 74%, rgba(var(--violet-rgb), 0.18), transparent 34%),
        linear-gradient(120deg, #14243d 0%, #22365f 56%, #174451 100%);
}

.site-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 28px;
    background: linear-gradient(180deg, transparent, #fff);
    content: "";
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 48px));
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-brand {
    flex: 0 0 auto;
    margin: 0;
    line-height: 0;
}

.header-brand a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px);
    color: #fff;
    text-decoration: none;
}

.header-brand a:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 4px;
}

.logo-frogers {
    display: block;
    width: 180px;
    flex: 0 0 180px;
    height: auto;
}

.header-brand span {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    white-space: nowrap;
}

#menu-principal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}

#menu-principal a {
    color: #edf4ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 160ms ease;
}

#menu-principal a:hover {
    color: #5eead4;
}

#menu-toggle {
    display: none;
}

.hero-content {
    position: relative;
    isolation: isolate;
    width: min(1160px, calc(100% - 48px));
    box-sizing: border-box;
    margin: 0 auto;
    padding: 76px 0 88px;
    text-align: left;
}

@media (min-width: 701px) {
    .hero-content {
        min-height: 620px;
    }

    .hero-content .slogan {
        max-width: 900px;
    }

}

.hero-content::before {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.hero-content::before {
    top: 50%;
    right: -24px;
    width: 480px;
    aspect-ratio: 1;
    transform: translateY(-50%);
    background:
        radial-gradient(ellipse 34% 42% at 62% 48%, rgba(20, 184, 166, 0.34) 0%, rgba(20, 184, 166, 0.17) 42%, transparent 100%),
        radial-gradient(ellipse 32% 42% at 64% 52%, rgba(37, 99, 235, 0.16) 0%, rgba(var(--violet-rgb), 0.12) 48%, transparent 100%);
}

.slogan {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.presentation {
    max-width: 690px;
    margin: 22px 0 0;
    color: #d7e3f3;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.actions a {
    display: inline-flex;
    width: 300px;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(110deg, var(--bleu-frogers), var(--bleu-vert));
    color: white;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 160ms ease, filter 160ms ease;
}

.actions a:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.actions a:focus-visible,
#menu-principal a:focus-visible,
#menu-toggle:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 4px;
}

#services article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "number"
        "title"
        "description";
    align-items: center;
    row-gap: 14px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid #dce3ed;
    text-align: left;
}

#services article.service-featured {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    grid-template-areas: "copy image";
}

#services article.service-automation {
    grid-template-areas: "image copy";
}

#services .service-number,
#methode .method-number {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
}

#services .service-number {
    grid-area: number;
    justify-self: center;
    padding-top: 0;
    text-align: center;
}

#services article h3 {
    grid-area: title;
    text-align: center;
}

#services article p {
    grid-area: description;
    text-align: left;
}

#services .service-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
}

#services .service-featured .service-number {
    margin-bottom: 12px;
    align-self: center;
}

#services .service-featured .service-copy {
    align-items: center;
    text-align: center;
}

#services .service-featured p {
    text-align: center;
}

#services .service-featured h3 {
    margin-bottom: 20px;
}

@media (min-width: 1000px) {
    #services article:first-of-type .service-number {
        transform: translateY(-50px);
    }
}

.service-visual {
    grid-area: image;
    margin: 0;
    aspect-ratio: 1672 / 941;
}

.service-visual img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 12px 28px rgba(23, 41, 67, 0.14);
}

#services {
    box-sizing: border-box;
    padding: 76px max(24px, calc((100% - 1160px) / 2)) 70px;
    background:
        radial-gradient(ellipse at 92% 8%, rgba(139, 92, 246, 0.045), transparent 35%),
        #f7f9fc;
}

#services h2,
#methode h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

#services h2 {
    max-width: 1160px;
    margin: 0 auto 34px;
    color: var(--bleu-marine);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.035em;
}

#services h2::before,
#services h2::after,
#methode h2::before,
#methode h2::after {
    flex: 0 1 min(280px, 30vw);
    width: min(280px, 30vw);
    max-width: min(280px, 30vw);
    height: 1px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.45), rgba(20, 184, 166, 0.28), transparent);
    content: "";
}

#services h2::before,
#methode h2::before {
    transform: scaleX(-1);
}

#services article:last-child {
    border-bottom: 1px solid #dce3ed;
}

#services .service-number {
    color: var(--bleu-frogers);
}

#services article:nth-of-type(2) .service-number {
    color: #0e9488;
}

#services article:nth-of-type(3) .service-number {
    color: #7354bd;
}

#services article h3 {
    margin: 0;
    color: var(--bleu-marine);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

#services article p {
    max-width: 520px;
    margin: 0;
    color: #586579;
    font-size: 1rem;
    line-height: 1.7;
}

/* F07 — Présentation de la méthode FROGERS */
#methode {
    box-sizing: border-box;
    padding: 42px max(24px, calc((100% - 1160px) / 2)) 92px;
    background: #fff;
    text-align: left;
}

#methode h2 {
    max-width: 1160px;
    margin: 0 0 42px;
    color: var(--bleu-marine);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.035em;
    text-align: left;
}

#methode article {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    column-gap: 22px;
    row-gap: 12px;
    max-width: none;
    min-height: 210px;
    box-sizing: border-box;
    margin: 0;
    padding: 26px 28px 30px 0;
    border: 0;
    border-top: 1px solid #dce3ed;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

#methode {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 58px;
}

#methode h2 {
    grid-column: 1 / -1;
}

#methode .method-number {
    grid-row: 1 / span 2;
    color: var(--bleu-frogers);
}

#methode article:nth-of-type(2) .method-number {
    color: #0e9488;
}

#methode article:nth-of-type(3) .method-number {
    color: #7354bd;
}

#methode article:nth-of-type(4) .method-number {
    color: var(--bleu-frogers);
}

#methode article h3 {
    margin: 2px 0 0;
    color: var(--bleu-marine);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.32;
    letter-spacing: -0.025em;
}

#methode .method-title-prefix {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#methode article {
    position: relative;
}

#methode article p {
    grid-column: 2;
    max-width: 480px;
    margin: 0;
    color: #586579;
    font-size: 1rem;
    line-height: 1.7;
}

/* F08 — Section Contact FROGERS */
#contact {
    box-sizing: border-box;
    padding: 78px max(24px, calc((100% - 1160px) / 2)) 84px;
    color: #fff;
    background: linear-gradient(180deg, #22365f 0%, #1b3153 48%, #14243d 100%);
}

#contact .contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 96px;
    max-width: 1160px;
    margin: 0 auto;
}

#contact h2 {
    margin: 0 0 24px;
    color: #8de5dc;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

#contact h3 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

#contact .contact-message > p {
    max-width: 600px;
    margin: 22px 0 0;
    color: #d7e3f3;
    font-size: 1.05rem;
    line-height: 1.75;
}

@media (min-width: 701px) {
    #contact .contact-message {
        text-align: left;
    }
}

#contact .contact-details {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

#contact a {
    color: #fff;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration-color: rgba(94, 234, 212, 0.55);
    text-underline-offset: 5px;
}

#contact a:hover {
    color: #8de5dc;
}

#contact .contact-details p {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

#contact .contact-details p > span {
    color: #8de5dc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(110deg, var(--bleu-frogers), var(--bleu-vert));
    box-shadow: 0 4px 14px rgba(23, 41, 67, 0.24);
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.back-to-top svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.back-to-top:focus-visible {
    outline: 3px solid #c4b5fd;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        width: calc(100% - 40px);
        column-gap: 8px;
        row-gap: 0;
        padding: 8px 0;
    }

    .header-brand {
        grid-column: 1;
        min-width: 0;
    }

    .logo-frogers {
        width: 80px;
        flex-basis: 80px;
    }

    .header-brand a {
        gap: 6px;
    }

    .header-brand span {
        font-size: 23px;
        letter-spacing: 0.12em;
    }

    #menu-toggle {
        display: block;
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: white;
        font-size: 23px;
        cursor: pointer;
    }

    #menu-principal {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 5;
        width: min(260px, calc(100vw - 40px));
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        background: #172943;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    }

    #menu-principal.ouvert {
        display: flex;
    }

    #menu-principal a {
        padding: 12px;
        border-radius: 6px;
    }

    #menu-principal a:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 700px) {
    .hero-content {
        width: calc(100% - 40px);
        padding: 58px 0 68px;
    }

    .hero-content::before,
    .hero-content::after {
        display: none;
    }

    .slogan {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .presentation {
        margin-top: 18px;
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 420px;
        gap: 12px;
        margin-top: 26px;
    }

    .actions a {
        width: 100%;
        padding-right: 8px;
        padding-left: 8px;
    }

    #services {
        padding: 56px 20px 60px;
    }

    #services h2,
    #methode h2 {
        gap: 16px;
    }

    #services h2 {
        margin-bottom: 24px;
        font-size: 2rem;
    }

    #services h2::before,
    #services h2::after,
    #methode h2::before,
    #methode h2::after {
        width: auto;
        max-width: none;
        flex: 1;
    }

    #services article {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "number"
            "title"
            "description";
        row-gap: 12px;
        padding: 22px 0;
    }

    #services article.service-featured {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "image";
        row-gap: 12px;
    }

    #services article.service-automation {
        grid-template-areas:
            "copy"
            "image";
    }

    .service-visual {
        margin-top: 0;
    }

    #services article h3 {
        font-size: 1.25rem;
    }

    #services article p {
        font-size: 0.95rem;
    }

    #methode {
        grid-template-columns: minmax(0, 1fr);
        padding: 58px 20px 66px;
    }

    #methode h2 {
        margin-bottom: 24px;
        font-size: 2rem;
    }

    #methode article {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 8px;
        min-height: 0;
        padding: 22px 0 24px;
    }

    #services .service-number,
    #methode .method-number {
        font-size: 2.35rem;
    }

    #methode article h3 {
        margin-top: 0;
        font-size: 1.25rem;
    }

    #methode article p {
        grid-column: 2;
        font-size: 0.95rem;
    }

    #contact {
        padding: 58px 20px 62px;
    }

    #contact .contact-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    #contact h2 {
        margin-bottom: 18px;
    }

    #contact h3 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    #contact .contact-message > p {
        margin-top: 16px;
        font-size: 1rem;
    }

    #contact .contact-details p {
        padding: 20px 0;
    }

    #contact a {
        font-size: 1.05rem;
    }
}

.legal-skip-link {
    position: absolute;
    z-index: 10;
    top: 8px;
    left: 8px;
    padding: 12px 16px;
    transform: translateY(-150%);
    border-radius: 6px;
    background: #fff;
    color: var(--bleu-marine);
    font-weight: 700;
}

.legal-skip-link:focus {
    transform: translateY(0);
}

.legal-header .hero-content {
    min-height: 0;
    padding-top: 52px;
    padding-bottom: 64px;
}

.legal-header .slogan {
    max-width: 900px;
}

.legal-main {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
    text-align: left;
}

.legal-updated {
    margin: 0 0 24px;
    color: #586579;
    font-size: 0.95rem;
}

.legal-section {
    position: relative;
    margin-top: 18px;
    padding: 30px clamp(22px, 3.4vw, 38px);
    border: 1px solid #e0e8f1;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #f7fbff 100%);
    box-shadow: 0 8px 24px rgba(23, 41, 67, 0.045);
}

.legal-section::before {
    position: absolute;
    top: -1px;
    left: 28px;
    width: 72px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--bleu-frogers), var(--bleu-vert));
    content: "";
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--bleu-marine);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    line-height: 1.25;
}

.legal-section h2::before {
    width: 4px;
    height: 1.25em;
    flex: 0 0 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--bleu-frogers), var(--bleu-vert));
    content: "";
}

.legal-section p {
    max-width: 76ch;
    margin: 14px 0 0;
    color: #465469;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-section ul {
    max-width: 76ch;
    margin: 14px 0 0;
    padding-left: 1.35rem;
    color: #465469;
    line-height: 1.7;
}

.legal-section li {
    margin-top: 8px;
    padding-left: 4px;
}

.legal-section:first-of-type p {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e8eef5;
    border-radius: 7px;
    background: rgba(239, 246, 255, 0.58);
}

.legal-placeholder {
    color: #7c2d12;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.legal-section address {
    max-width: 76ch;
    margin-top: 12px;
    font-style: normal;
}

.legal-section a,
.site-footer a {
    color: var(--bleu-frogers);
    font-weight: 700;
    text-underline-offset: 3px;
}

.legal-section a:focus-visible,
.site-footer a:focus-visible,
.legal-skip-link:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 4px;
}

.site-footer {
    padding: 42px max(24px, calc((100% - 1160px) / 2)) 18px;
    background: #14243d;
    color: #d7e3f3;
}

.legal-page .site-footer {
    background:
        radial-gradient(ellipse 32rem 26rem at 0% 50%, rgba(20, 184, 166, 0.28), transparent 68%),
        radial-gradient(ellipse 32rem 26rem at 100% 50%, rgba(37, 99, 235, 0.3), transparent 68%),
        #22365f;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 48px);
    max-width: 1160px;
    margin: 0 auto;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-footer-brand h2 {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
}

.site-footer-brand {
    text-align: center;
}

.site-footer-brand > p {
    max-width: 38ch;
    margin: 0 auto;
    color: #d7e3f3;
    font-size: 0.95rem;
    line-height: 1.65;
}

.site-footer address {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 16px;
    font-size: 0.95rem;
    font-style: normal;
}

.site-footer-column ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: #e6effb;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration-color: rgba(141, 229, 220, 0.4);
    text-underline-offset: 4px;
    transition: color 160ms ease;
}

.site-footer a:hover {
    color: #8de5dc;
}

.site-footer-bottom {
    max-width: 1160px;
    margin: 30px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #c3d1e4;
    font-size: 0.85rem;
    line-height: 1.5;
}

.site-footer-bottom p {
    margin: 0;
}

@media (max-width: 700px) {
    .legal-header .hero-content {
        width: calc(100% - 40px);
        padding-top: 42px;
        padding-bottom: 52px;
    }

    .legal-main {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .legal-section {
        margin-top: 14px;
        padding: 24px 18px;
        border-radius: 10px;
    }

    .legal-section::before {
        left: 20px;
    }

    .legal-section h2 {
        gap: 10px;
        margin-bottom: 16px;
    }

    .legal-section:first-of-type p {
        padding: 9px 10px;
    }

    .site-footer {
        padding: 34px 20px 18px;
    }

    .legal-page .site-footer {
        background:
            radial-gradient(ellipse 24rem 20rem at 0% 14%, rgba(20, 184, 166, 0.24), transparent 68%),
            radial-gradient(ellipse 24rem 20rem at 100% 86%, rgba(37, 99, 235, 0.26), transparent 68%),
            #22365f;
    }

    .site-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .site-footer h2 {
        margin-bottom: 12px;
    }

    .site-footer address {
        margin-top: 12px;
    }

    .site-footer-bottom {
        margin-top: 26px;
        padding-top: 14px;
    }
}
