:root {
    --main-blue: #0C445C;
    --accent-yellow: #FFA71A;
    --white: #FFFFFF;
    --background: #F5F8FA;
}

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

html, body {
    overscroll-behavior: none;
}

body {
    background: var(--background);
    color: var(--main-blue);
    font-family: 'AtypText', 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    text-align: center;
}

/* ----------- Fond double image sur l'accueil ----------- */
.accueil-background {
    position: relative;
    background:
        url('../images/fond-du-site.png') no-repeat center top scroll;
    background-size: cover;
    background-blend-mode: normal;
    z-index: 0;
}
.accueil-background::before {
    content: "";
    position: fixed;
    z-index: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background:
        url('../images/fond-scroll.png') no-repeat center center fixed;
    background-size: 110%;
    opacity: 0.5;
}

/* ----------- Maintenance ----------- */
.maintenance-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(12,68,92,0.08);
    padding: 48px 32px 36px 32px;
    max-width: 420px;
    text-align: center;
    position: relative;
}
.maintenance-logo {
    width: 140px;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 8px rgba(12,68,92,0.10));
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.maintenance-video {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 0;
    margin: 0 auto 22px auto;
    box-shadow: none;
    display: block;
    background: transparent;
    object-fit: contain;
    outline: none;
}
.maintenance-footer {
    margin-top: 40px;
    font-size: 0.95em;
    color: #888;
}
.login-button {
    background: linear-gradient(90deg, #FFA71A 0%, #FFD580 100%);
    color: #0C445C;
    font-weight: 700;
    border: none;
    margin-top: 18px;
    box-shadow: 0 2px 16px rgba(255,167,26,0.08);
    transition: background 0.18s, color 0.18s, transform 0.15s;
}
.login-button:hover, .login-button:focus {
    background: linear-gradient(90deg, #FFD580 0%, #FFA71A 100%);
    color: #0C445C;
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(255,167,26,0.16);
}

/* ----------- Menu principal & Dropdown ----------- */
nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(12,68,92,0.07);
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-menu-container {
    display: flex;
    align-items: center;
}
.logo-menu {
    height: 44px;
}
.dropdown {
    position: relative;
    display: inline-block;
    min-width: 90px;
}
.dropbtn {
    background: none;
    color: var(--main-blue);
    font-weight: 700;
    font-size: 1.13em;
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.2s;
}
.dropbtn:hover, .dropbtn:focus {
    background: rgba(12,68,92,0.08);
    color: var(--accent-yellow);
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    min-width: 200px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(12,68,92,0.08);
    border-radius: 12px;
    overflow-x: auto;
    z-index: 200;
    text-align: left;
    padding: 6px 0;
}
.dropdown-content a {
    color: var(--main-blue);
    padding: 12px 28px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    text-align: left;
    white-space: nowrap;
    min-width: 140px;
    max-width: 90vw;
    box-sizing: border-box;
}
.dropdown-content a:hover {
    background: rgba(12,68,92,0.08);
    color: var(--accent-yellow);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* ----------- Section d'accueil ----------- */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding-top: 40px;
    text-align: center;
}
#logo-apple-style {
    transition:
        transform 0.9s cubic-bezier(.25,.46,.45,.94),
        filter 0.9s cubic-bezier(.25,.46,.45,.94);
    will-change: transform, filter;
    max-width: 320px;
    width: 60vw;
    height: auto;
    margin-bottom: 32px;
    user-select: none;
    pointer-events: none;
}
.hero-title {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--main-blue);
}
.hero-avant {
    position: relative;
    z-index: 2;
}
.hero-desc {
    font-size: 1.25em;
    font-weight: 400;
    color: #444;
    max-width: 600px;
    margin: 0 auto 32px auto;
}
.accent {
    color: var(--accent-yellow);
    font-weight: 600;
}

/* ----------- Cadre glass autour du texte ----------- */
.white-glass-box {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(12,68,92,0.13), 0 1.5px 8px rgba(12,68,92,0.10);
    padding: 28px 32px;
    margin: 22px 0 32px 0;
    font-size: 1.22em;
    color: #222;
    text-align: center;
    max-width: 96vw;
    line-height: 1.6;
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.5);
}

/* ----------- Boutons transparents glass ----------- */
.button, .contact-btn {
    background: rgba(255,255,255,0.25);
    color: #0C445C;
    padding: 14px 38px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.08em;
    cursor: pointer;
    transition:
        background 0.3s cubic-bezier(.4,0,.2,1),
        box-shadow 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.18s cubic-bezier(.4,0,.2,1),
        border 0.2s;
    text-decoration: none;
    display: inline-block;
    opacity: 0.97;
    box-shadow: 0 2px 16px rgba(12,68,92,0.08);
    margin: 8px 0;
    backdrop-filter: blur(6px);
}
.button:hover, .contact-btn:hover,
.button:focus, .contact-btn:focus {
    background: rgba(255,255,255,0.45);
    color: #0C445C;
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 28px rgba(12,68,92,0.15);
    transform: translateY(-2px) scale(1.03);
    opacity: 1;
}
.icon-drive {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 10px;
}

/* ----------- Cofondateurs ----------- */
.cofounders-section {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 38px 0 18px 0;
}
.cofounder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
}
.cofounder-card:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 24px rgba(12,68,92,0.14);
}
.cofounder-avant,
.cofounder-avant2 {
    position: relative;
    z-index: 2;
}
.cofounder-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 16px rgba(12,68,92,0.10);
    border: 3px solid rgba(255,255,255,0.7);
    background: #fff;
    transition: box-shadow 0.2s, border 0.2s;
}
.cofounder-label {
    margin-top: 14px;
    color: #FFA71A;
    font-weight: 600;
    font-size: 1.07em;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(255,255,255,0.12);
}
/* Overlay */
.cofounder-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 18, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cofounder-overlay-content {
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    padding: 38px 32px 32px 32px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(12,68,92,0.14);
    position: relative;
    text-align: center;
}
.cofounder-overlay-close {
    position: absolute;
    top: 18px;
    right: 26px;
    font-size: 2.2em;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.18s;
}
.cofounder-overlay-close:hover { color: var(--main-blue); }
#cofounder-overlay-text {
    color: var(--main-blue);
    font-size: 1.13em;
    margin-top: 18px;
    white-space: pre-line;
}
@media (max-width: 600px) {
    .cofounders-section { gap: 18px; }
    .cofounder-photo { width: 90px; height: 90px; }
    .cofounder-overlay-content { padding: 22px 6vw 22px 6vw; }
}

/* ----------- Main content ----------- */
.main-content {
    max-width: 800px;
    margin: 48px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(12,68,92,0.07);
    padding: 40px 24px 32px 24px;
}

/* ----------- Portfolio / Book ----------- */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    margin-top: 36px;
}
.portfolio-row {
    display: flex;
    gap: 28px;
    justify-content: center;
}
.center-row {
    justify-content: center;
}
.portfolio-item {
    background: var(--background);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(12,68,92,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    width: 220px;
    max-width: 90vw;
}
.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.2s;
}
.portfolio-item:hover, .portfolio-item:focus {
    box-shadow: 0 8px 32px rgba(12,68,92,0.13);
    transform: translateY(-6px) scale(1.03);
}
.portfolio-item:hover img {
    transform: scale(1.04);
}

/* ----------- Lightbox ----------- */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 18, 28, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
    outline: none;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(12,68,92,0.22);
    background: #fff;
    padding: 8px;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.8em;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    font-weight: bold;
    transition: color 0.2s;
    user-select: none;
}
.lightbox-close:hover { color: var(--accent-yellow); }
body.no-scroll {
    overflow: hidden;
}
@media (max-width: 700px) {
    .portfolio-row { flex-direction: column; align-items: center; gap: 18px; }
    .lightbox-img { max-width: 98vw; max-height: 60vh; padding: 2px; }
    .lightbox-close { top: 12px; right: 18px; font-size: 2em; }
}

/* ----------- Contact / Formulaires ----------- */
.contact-form {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.contact-form label {
    font-weight: 600;
    color: var(--main-blue);
}
.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1.2px solid #c6d5e1;
    font-size: 1em;
    font-family: inherit;
    background: #f8fafc;
    color: #222;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--main-blue);
    outline: none;
}
.no-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ----------- FAQ ----------- */
dl {
    text-align: left;
    margin: 36px auto 0 auto;
    max-width: 600px;
}
dt {
    font-weight: 700;
    color: var(--main-blue);
    margin-top: 18px;
}
dd {
    margin: 0 0 12px 0;
    color: #444;
    font-size: 1.08em;
}

/* ----------- Témoignages ----------- */
.testimonial {
    background: var(--background);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(12,68,92,0.06);
    margin: 26px auto;
    max-width: 520px;
    padding: 28px 22px 18px 22px;
    font-style: italic;
}
.testimonial blockquote {
    margin: 0;
    padding: 0;
}
.testimonial footer {
    font-style: normal;
    color: var(--main-blue);
    font-weight: 600;
    margin-top: 12px;
    text-align: right;
}

/* ----------- Section Instagram Apple-like ----------- */
.insta-section {
    max-width: 900px;
    margin: 64px auto 0 auto;
    padding: 48px 24px 36px 24px;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center;
}
.insta-title-blur {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 18px 36px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--main-blue);
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(12,68,92,0.08);
}
/* Supprime TOTALEMENT tout contour, fond, ombre, bordure autour du widget Instagram */
.embedsocial-hashtag,
.embedsocial-hashtag > div,
.embedsocial-hashtag * {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}
.es-widget-branding {
    display: none !important;
}

/* ----------- Footer ----------- */
.footer {
    margin-top: 48px;
    text-align: center;
    font-size: 0.98em;
    color: #888;
    padding: 18px 0;
    background: none;
}

/* ----------- Responsive ----------- */
@media (max-width: 1100px) {
    .main-content, .insta-section { max-width: 98vw; }
}
@media (max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 4vw;
    }
    .main-content, .insta-section { padding: 16px 3vw; }
    .hero-title { font-size: 1.5em; }
    .hero-desc { font-size: 1em; }
    #logo-apple-style { max-width: 180px; }
    .dropdown-content {
        min-width: 120px;
        font-size: 1em;
        right: 0;
        left: auto;
    }
}
