/*
Theme Name: SAE501
Template: twentytwentyone
Author: CALE
Version: 1.0
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #030303;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #f8f9fa;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active,
.current-menu-item>.nav-link,
.current_page_item>.nav-link {
    color: #9ef573;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.btn-contact {
    background: #9ef573;
    color: #0f0f0f;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-contact:hover {
    background: #f3f4f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 0;
}

.hero-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    max-width: 550px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.hero-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #9ef573;
    color: #0f0f0f;
}

.btn-primary:hover .btn-secondary:hover {
    background: #0f0f0f;
    color: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #f8f9fa;
    color: #0f0f0f;
    border: 2px solid #0f0f0f;
}

a.btn-primary,
a.btn-secondary,
a.btn-discover {
    text-decoration: none;
}

/* Team */
.team {
    background-color: #0f0f0f;
    padding: 100px 0;
    color: #f8f9fa;
}

.team-title {
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.3;
}

.team-subtitle {
    font-size: 16px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.8;
    opacity: 0.9;
}

.team-members {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-row-top {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
}

.member-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    background-color: #fff;
}

.member-name {
    font-size: 18px;
    font-weight: 400;
}

/* Projects */
.projects {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.projects h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.projects-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
    font-weight: 500;
}

.projects-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* Services */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-top,
.services-bottom {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.services-top>div,
.services-bottom>div {
    flex: 1;
}

.service-card {
    height: 384px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    color: #f8f9fa;
}

.service-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #9ef573;
    color: #111;
    border: none;
    border-radius: 4px;
    white-space: nowrap;
    width: fit-content;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-discover:hover {
    background: #f3f4f6;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Immersive */
.immersive {
    background: #0f0f0f;
    color: #f8f9fa;
    padding: 80px 0;
}

.immersive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .immersive-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.immersive-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.immersive-image {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 24px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.immersive-button-wrapper {
    display: flex;
    justify-content: flex-start;
}

.immersive-card .btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #9ef573;
    color: #111;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.immersive-card .btn-primary:hover {
    background: #f3f4f6;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Social (Accueil) */
.social {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.social h2 {
    font-size: 28px;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.social-item {
    text-align: center;
}

.social-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.social-item p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Social (Agence / Contact / Service) */
.social-agence {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
    margin-bottom: 100px;
}

.contact-cta {
    font-size: 42px;
    font-weight: 300;
    color: #0f0f0f;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 70px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col--about {
    max-width: 520px;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col--contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-address,
.footer-phone,
.footer-email {
    font-size: 14px;
    color: #f8f9fa;
    text-decoration: none;
}

.footer-phone:hover,
.footer-email:hover {
    text-decoration: underline;
}

.footer-col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-logo {
    height: 46px;
    width: auto;
}

.footer-custom {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.footer-bottom {
    padding: 26px 0 34px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.footer-links a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: #f8f9fa;
}

.footer-hours {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    text-align: right;
}

/* Agency / Service / Contact hero */
.agency-description {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.agency-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.agency-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-text-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 50px 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.agency-text-box h1 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 600;
}

.agency-text-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.agency-cale {
    padding: 120px 0;
    text-align: center;
    background: #0f0f0f;
}

.agency-cale img {
    height: 100%;
    width: 50%;
}

/* Alternating sections (why-us) */
.why-us {
    padding: 70px 0;
    background: #fff;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-text h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 32px;
    line-height: 1.3;
    color: #0f0f0f;
}

.why-us-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.why-us-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
}

/* Contact form */
.contact-block {
    padding: 80px 0;
    background: #0f0f0f;
}

.contact-block h2 {
    font-size: 42px;
    margin-bottom: 50px;
    color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Bouton CF7 */
.wpcf7 input[type="submit"] {
    background-color: #9AFF6A;
    /* ton vert */
    color: #000;
    border: none;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Hover */
.wpcf7 input[type="submit"]:hover {
    background-color: #7be85a;
    /* vert un peu plus foncé */
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #f8f9fa;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #f8f9fa;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #9aed34;
}

.checkbox-label span {
    user-select: none;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #0f0f0fa2;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9aed34;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-accept {
    margin-bottom: 40px;
}

.checkbox-accept .checkbox-label {
    align-items: flex-start;
}

.checkbox-accept .checkbox-label span {
    line-height: 1.6;
    padding-top: 2px;
}

.btn-submit {
    background: #9aed34;
    color: #0f0f0f;
    border: none;
    padding: 16px 60px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    background: #9aed34;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .team-row-top {
        gap: 48px;
    }

    .member-photo {
        width: 220px;
        height: 220px;
    }

    .social-grid {
        gap: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col--brand {
        align-items: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-hours {
        text-align: left;
    }
}

@media (max-width: 768px) {

    /* Header mobile: grid 2 lignes */
    .header .container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo contact"
            "nav nav";
        align-items: center;
        gap: 14px;
    }

    .header .container>a:first-child {
        grid-area: logo;
        justify-self: start;
    }

    .header .container>a:last-child {
        grid-area: contact;
        justify-self: end;
    }

    .nav {
        grid-area: nav;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    /* Hero mobile */
    .hero {
        min-height: 500px;
        height: auto;
    }

    .hero-overlay {
        padding: 24px 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 22px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        gap: 12px;
    }

    /* Team */
    .team {
        padding: 70px 0;
    }

    .team-title {
        font-size: 32px;
    }

    .team-subtitle {
        margin-bottom: 48px;
    }

    .team-row-top {
        flex-wrap: wrap;
        gap: 28px;
    }

    .member-photo {
        width: 180px;
        height: 180px;
        margin-bottom: 10px;
    }

    /* Services */
    .services-top,
    .services-bottom {
        flex-direction: column;
    }

    .service-card {
        height: 340px;
    }

    .service-content {
        padding: 20px;
    }

    /* Immersive */
    .immersive {
        padding: 70px 0;
    }

    .immersive-grid {
        gap: 18px;
        margin: 24px 0;
    }

    .immersive-button-wrapper {
        justify-content: flex-start;
    }

    .immersive-card .btn-primary {
        width: fit-content;
        align-self: flex-start;
    }

    /* Agency blocks */
    .agency-description {
        height: auto;
        min-height: 60vh;
    }

    .agency-text-box {
        padding: 28px 22px;
    }

    .agency-text-box h2 {
        font-size: 32px;
    }

    .agency-cale {
        padding: 70px 0;
    }

    .agency-cale img {
        width: 90%;
        height: auto;
    }

    /* why-us: 1 colonne + texte puis image */
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-us-text {
        order: 1;
    }

    .why-us-image {
        order: 2;
        height: 300px;
    }

    .why-us-text h2 {
        font-size: 32px;
    }

    /* Contact form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkbox-group {
        gap: 12px;
    }

    /* Social agence mobile */
    .contact-cta {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 32px;
    }

    .social-grid {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .social-item img,
    .social-item svg {
        width: 40px;
        height: 40px;
    }

    .social-item p {
        font-size: 12px;
    }

    /* Buttons mobile */
    .btn-primary {
        width: fit-content;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .logo {
        height: 34px;
    }

    .btn-contact {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 4px;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-link {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .member-photo {
        width: 150px;
        height: 150px;
    }

    .service-card {
        height: 320px;
    }
}