/*
 * Pages marketing statiques (Thymeleaf) — base, header et footer communs.
 * Reproduction au pixel près du rendu Polymer : landing-header.html, home-footer.html,
 * pop-theme-style.html, font-awesome-style.html. Vérification : tests/marketing-static.
 *
 * Seuils de l'ancien iron-grid (calculés en JS côté Polymer) traduits en media queries :
 *   xs ≤ 800px · s 801–904px · m 905–1240px · l 1241–1600px · xl ≥ 1601px
 */

/* Inter : fichier complet en repli (texte hors latin), puis sous-ensemble latin + symboles
   (≈ 129 Ko au lieu de 349 Ko). Pour un caractère couvert par les deux, le navigateur prend la
   dernière règle : le fichier complet n'est téléchargé que si un caractère hors plage apparaît.
   Plages : static/font/inter/README.md. */
@font-face {
    font-family: 'Inter';
    src: url('/font/inter/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    /* Caractères réellement présents dans Inter : les emojis vont directement à la police système. */
    unicode-range: U+0, U+20-7E, U+A0-AC, U+AE-148, U+14A-1C3, U+1C5-254, U+256-27B, U+27E-284, U+286-290, U+292-2A4, U+2A6-304, U+306-30A, U+30C, U+30F, U+313, U+315, U+31B, U+323, U+326-328, U+32C, U+337-338, U+342-343, U+346-36F, U+374-376, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3D7, U+3DC-3DD, U+3F0-3F6, U+3F9-3FA, U+3FC-479, U+480-49D, U+4A0-4FF, U+52F, U+E3F, U+1D00, U+1D0D, U+1D1B, U+1D43, U+1D47-1D49, U+1D4D, U+1D4F-1D50, U+1D52, U+1D56-1D58, U+1D5B, U+1D62-1D65, U+1D9C, U+1DA0, U+1DBB, U+1DBF-1DF5, U+1DFC-1E9B, U+1E9D-1F15, U+1F18-1F1D, U+1F20-1F45, U+1F48-1F4D, U+1F50-1F57, U+1F59, U+1F5B, U+1F5D, U+1F5F-1F7D, U+1F80-1FB4, U+1FB6-1FC4, U+1FC6-1FD3, U+1FD6-1FDB, U+1FDD-1FEF, U+1FF2-1FF4, U+1FF6-1FFE, U+2000-200B, U+2010-2027, U+202F-2055, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20A0-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20BF, U+20DB-20DE, U+20E8, U+20F0, U+2100-2101, U+2103, U+2105-2106, U+2109, U+2113, U+2116-2117, U+211E-2122, U+2126, U+212A-212B, U+212E, U+2132, U+213B, U+214D, U+2150-217F, U+2183-2186, U+2189, U+2190-2199, U+21A9-21AA, U+21B0-21B1, U+21B3-21B5, U+21BA-21BB, U+21D0, U+21D2, U+21D4, U+21DE-21DF, U+21E4-21E5, U+21E7, U+21EA, U+2202, U+2205-2206, U+220F, U+2211-2212, U+221A, U+221E, U+222B, U+2236, U+2248, U+2260, U+2264-2265, U+2295-2298, U+2303-2305, U+2318, U+2325-2327, U+232B, U+2380, U+2387, U+238B, U+23CE-23CF, U+2423, U+2460-2468, U+24B6-24CF, U+24EA, U+25A0-25A2, U+25AA, U+25B2-25B3, U+25B6-25B7, U+25BA-25BD, U+25C0-25C1, U+25C4-25C7, U+25CA-25CB, U+25CF, U+25E6, U+25EF, U+2600, U+2605-2606, U+263C, U+2661, U+2665, U+26A0, U+2713, U+2717, U+2756, U+2764, U+2780-2788, U+27EF, U+27F5-27FA, U+2913, U+2A38, U+2B06, U+2B12-2B13, U+2B1C, U+2B24, U+2C7C, U+2C7F, U+2DFF, U+2E18, U+A69F, U+A7FF, U+A92E, U+E000, U+E002-E05E, U+E06A-E0BD, U+E0C8-E0CC, U+E0DC-E0E6, U+E0F3-E0F5, U+E106, U+E109-E10A, U+E10C-E10F, U+E111-E113, U+E117-E118, U+E121-E122, U+E124, U+E12A-E15E, U+E163, U+E1C3, U+E1D2-E1DF, U+E1E1-E2DC, U+EE01-EE07, U+EE09-EE0A, U+EE0C-EE12, U+EE14, U+EE17, U+EE1D-EE45, U+EE47-EE84, U+EE87-EED6, U+EED8-EEE1, U+F6C3, U+FEFF, U+1F12F-1F149, U+1F16A-1F16B, U+1F850, U+1F852;
}

@font-face {
    font-family: 'Inter';
    src: url('/font/inter/Inter-Latin-VariableFont_opsz,wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-017F, U+0192, U+0218-021B, U+0237, U+02BB-02BC, U+02C6-02C7, U+02D8-02DD, U+0300-0308, U+030A-030C, U+0327-0328, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2200-22FF, U+2300-23FF, U+25A0-25FF, U+2600-26FF, U+2700-27BF, U+27F0-27FF, U+FB01-FB02, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Meslo';
    src: url('/font/attributeBold/attribute.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'FontAwesome';
    src: url('/component/shared/font-awesome/font-awesome-light.woff');
    font-weight: normal;
    font-style: normal;
}

/* Thème « pop » (pop-theme-style.html) : variables de thème avec leurs valeurs pop. */
:root {
    --writecontrol-primary-color: #fd907f;
    --writecontrol-secondary-color: #FF6E78;
    --writecontrol-primary-text-color: #5f5f5f;
    --writecontrol-secondary-text-color: #19146E;
    --writecontrol-tertiary-text-color: #50146E;
    --writecontrol-primary-background-color: #ffffff;
    --writecontrol-disabled-secondary-color: #B6B4B6;
    --writecontrol-secondary-background-color: #f4f4f5;
    --writecontrol-tertiary-background-color: #FFE9E5;
    --writecontrol-block-separator-color: #E9E7E8;
    --writecontrol-shadow-box-color: rgba(10, 0, 185, 0.10);
    --writecontrol-cta-background-gradient-start: #fd907f;
    --writecontrol-cta-background-gradient-end: #FF6E78;
    --writecontrol-cta-color: #ffffff;
    --writecontrol-header-menu-text-color: #19146E;
    --writecontrol-title-font-family: 'Meslo', sans-serif;
    --writecontrol-font-family: 'Inter', sans-serif;
}

/* Empêche le rebond du document de déplacer le header aux limites de défilement. */
html {
    overscroll-behavior-y: none;
}

html,
body {
    margin: 0;
    width: 100%;
    background-color: var(--writecontrol-primary-background-color, #ffffff);
}

body {
    font-family: var(--writecontrol-font-family, 'Inter', sans-serif);
    font-size: 16px;
    color: #484B59;
}

a:-webkit-any-link {
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* ===================== Header (landing-header.html) ===================== */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: block;
    font-family: 'Inter', sans-serif;
    color: var(--bleu);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --bleu: #1A156E;
    --bleu-logo: #19146E;
    --corail: #FF797A;
    --corail-soft: #FF917D;
    --corail-50: #FFF3F1;
    --corail-100: #FFE5E1;
    --bleu-soft: #B6BBFC;
    --bleu-soft-2: #8990F0;
    --bleu-50: #F3F4FF;
    transition: margin-bottom 0.3s ease;
}

.landing-header.menu-open { z-index: 1040; }
.landing-header.shrunk { margin-bottom: 20px; }

.landing-header * { box-sizing: border-box; }
.landing-header a { color: inherit; }

.nav {
    position: relative;
    z-index: 0;
    box-sizing: border-box;
    height: 92px;
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 24px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.25s ease, border-color 0.25s ease, height 0.3s ease, padding 0.3s ease;
}

.nav.scrolled,
.nav.landing {
    background: #FFF3F1;
    border-bottom-color: var(--corail-100);
}

.nav.landing:not(.scrolled) {
    border-bottom-color: transparent;
}

.nav-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: -1;
    background-image: linear-gradient(174.46deg, #FF917D 29.1%, #FF6E78 90.45%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0;
    transition: opacity 0.25s ease, bottom 0.3s ease;
    pointer-events: none;
}

.landing-header.shrunk .nav-bg { bottom: -21px; }
.nav.landing .nav-bg { opacity: 1; }
.nav.landing.scrolled .nav-bg {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 42px;
    flex: 1 0 0;
    min-width: 0;
}

.nav .logo {
    width: 107.4px;
    height: 34px;
    display: block;
    transition: width 0.3s ease, height 0.3s ease;
}

.landing-header.shrunk .nav {
    height: 72px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.landing-header.shrunk .nav .logo {
    width: 88.4px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
}

.nav-links a {
    color: rgba(26, 21, 110, 0.75) !important;
    text-decoration: none;
    font-weight: 400;
}

.nav-links a:hover { text-decoration: underline; }

.nav-drop {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-drop > .nav-drop-label { cursor: default; }

.nav-drop-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    min-width: 210px;
    background: #FFFFFF;
    border: 1px solid var(--corail-100);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(26, 21, 110, 0.12);
    z-index: 30;
}

/* Preserve hover while the pointer crosses the visual gap below the label. */
.nav-drop-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: flex; }

.nav-drop-menu a { font-size: 15px; }

.menu-action { cursor: pointer; }

.nav-mobile .nav-mobile-group {
    font-size: 13px;
    font-weight: 500;
    color: rgba(26, 21, 110, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.nav-right .login-link {
    color: var(--bleu);
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
}

.nav-right .login-link:hover { text-decoration: underline; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border: 1px solid var(--corail);
    border-radius: 40px;
    color: var(--bleu-logo) !important;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    background: linear-gradient(168.29deg, #FCFAF9 4%, #FFEBE5 152%);
    cursor: pointer;
    text-decoration: none;
    transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn-outline:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 121, 122, 0.25);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform 150ms ease;
}

.btn-outline:hover .btn-arrow { transform: translateX(2px); }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--bleu);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--corail-100);
    box-shadow: 0 16px 24px rgba(26, 21, 110, 0.10);
    box-sizing: border-box;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
    padding: 12px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--bleu);
    text-decoration: none;
    border-radius: 8px;
}

.nav-mobile a:hover { background: var(--bleu-50); }

.nav-mobile .login-link {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--corail-100);
    border-radius: 0;
    font-weight: 500;
}

.nav-mobile .btn-outline {
    justify-content: center;
    margin-top: 8px;
}

/* Sélecteur de langue (language-menu-button.html, réglages du header). */
.lang-menu {
    position: relative;
    height: 44px;
    z-index: 12;
}

.oval-lang {
    border-radius: 25px;
    box-sizing: border-box;
    height: 44px;
    width: 44px;
    border: 1px solid var(--corail);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 2px;
    /* 3px dans language-menu-button.html, remis à 0 par le mixin --language-menu-oval du header. */
    padding: 0;
    margin: 0;
    color: var(--bleu);
    cursor: pointer;
    background: #FFFFFF;
    text-transform: uppercase;
    transition: background-color 150ms ease, color 150ms ease;
}

.oval-lang:hover {
    background: var(--corail);
    color: #FFFFFF;
}

.lang-menu-list {
    display: none;
    position: absolute;
    top: 45px;
    left: -4px;
    flex-direction: column;
    /* Position mesurée sur le paper-menu-button Polymer (vertical-offset 45 + marges internes). */
    padding-top: 8px;
}

.lang-menu-list .oval-lang { margin: 0 4px 6px 4px; }

.lang-menu.open .lang-menu-list { display: flex; }

@media (max-width: 1199px) {
    .nav { padding: 16px 24px; height: 76px; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .landing-header.shrunk .nav { height: 56px; padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 640px) {
    .nav { padding: 12px 16px; height: 68px; }
    .landing-header.shrunk .nav { height: 48px; padding-top: 4px; padding-bottom: 4px; }
    .nav-right { gap: 10px; }
    .nav-right .login-link { display: none; }
    .nav-right .btn-outline { display: none; }
}

@media (min-width: 1200px) and (max-width: 1279px) {
    .nav { padding: 20px 24px; }
    .nav-left { gap: 16px; }
    .nav-links { gap: 10px; font-size: 15px; }
    .nav-right { gap: 10px; }
    .nav-right .btn-outline { padding: 8px 14px; }
}

@media (min-width: 1200px) {
    .nav-burger { display: none; }
    .nav-mobile.open { display: none; }
}

/* ===================== Footer (home-footer.html) ===================== */

.home-footer {
    color: var(--writecontrol-secondary-text-color, #19146E);
    display: block;
    background-color: var(--writecontrol-primary-background-color, #ffffff);
    padding: 73px 0 80px 0;
    text-align: left;
}

.footer-parent {
    display: flex;
    width: 100%;
    min-height: 235px;
    align-items: start;
    margin: auto;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 25%;
    padding-top: 24px;
    padding-left: 24px;
}

@media (max-width: 800px) {
    .footer-col { width: 50%; }
}

.home-footer a {
    text-decoration: none;
    color: inherit;
}

.home-footer a:hover { text-decoration: underline; }

.title-column {
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.sub-link {
    font-size: 18px;
    padding-top: 20px;
}

.trademark {
    color: var(--writecontrol-disabled-secondary-color, #B6B4B6);
    font-size: 12px;
    width: 100%;
    display: block;
    text-align: center;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    padding-top: 30px;
}

.footer-logo {
    padding-left: 12px;
    width: 110px;
}

.footer-social-icons {
    width: 350px;
    display: block;
    margin: 0 auto;
    padding-top: 100px;
    text-align: left;
}

.social-icons {
    padding: 0;
    list-style: none;
    margin-top: 10px;
}

.social-icons li {
    vertical-align: top;
    display: inline;
    height: 100px;
}

.social-icons a {
    color: var(--writecontrol-secondary-text-color, #19146E);
    text-decoration: none;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: .5s;
}

.fa-facebook:before { content: "\f09a"; }
.fa-twitter:before { content: "\f099"; }
.fa-youtube:before { content: "\f167"; }
.fa-instagram:before { content: "\f16d"; }

.fa-facebook { padding: 10px 14px; }
.fa-instagram, .fa-twitter, .fa-youtube { padding: 10px 12px; }

/* Couleurs de marque des réseaux : identité fixe, hors thème (exception CLAUDE.md). */
.fa-facebook:hover { background-color: #3d5b99; color: white; }
.fa-instagram:hover { background-color: #e4405f; color: white; }
.fa-twitter:hover { background-color: #00aced; color: white; }
.fa-youtube:hover { background-color: #e64a41; color: white; }

.tiktok-icon svg {
    padding: 10px 12px;
    vertical-align: middle;
    box-sizing: content-box;
    transition: .5s;
}

.tiktok-icon:hover svg {
    background-color: #000000;
    color: #ffffff;
    fill: #ffffff;
}
