/* Réinitialisation et variables globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vertical-offset: 0%; /* Décalage de la page */
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

@font-face {
    font-family: 'Agency FB';
    src: url('/fonts/Agency_FB_V2.woff2') format('woff2'),
         url('/fonts/Agency_FB_V2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Agency FB';
    src: url('/fonts/AgencyFB-Bold.woff2') format('woff2'),
         url('/fonts/AgencyFB-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Agency FB', sans-serif;
    font-weight: normal; /* Explicitement normal */
    background-color: #111;
    color: #e0e0e0;
    line-height: 1.2; /* Hauteur de toutes les lignes de la page */
    overflow-x: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding-bottom: 60px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px; /* Ecart entre les sections dans la barre de navigation */
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    height: 100%;
    align-items: center;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.4em; /* Taille de police du navigateur */
    line-height: 1;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a:focus {
    color: #80E6FF;
    outline: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px; /* Même hauteur que la navbar */
    background-color: rgba(0, 0, 0, 0.9); /* Même fond que la navbar */
    text-align: center;
    padding: 12px;
    z-index: 100;
    display: flex; /* Alignement cohérent avec la navbar */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease; /* Même transition que la navbar */
}

.footer span {
    font-size: 1.2em; /* Taille pour "Tous droits réservés" */
    display: inline; /* Alignement sur la même ligne */
    margin-right: 0.5em; /* Espacement entre "Tous droits réservés" et les liens */
}

.footer a {
    color: #e0e0e0; /* Même couleur de base que la navbar */
    text-decoration: underline; /* Souligné par défaut pour "Mentions légales" et "CGV" */
    font-size: 1.2em; /* Même taille que "Tous droits réservés" */
    line-height: 1;
    position: relative;
    transition: color 0.3s ease; /* Même transition que la navbar */
    margin: 0 0.3em; /* Espacement entre les liens et le séparateur */
}

.footer a:hover,
.footer a:focus {
    color: #80E6FF; /* Même couleur au survol que la navbar */
    outline: none;
}

/* Styles généraux pour mentions-legales.php et cgv.php */
.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
}

.container h1 {
    font-size: 1.5em;
    margin-top: 80px;
    margin-bottom: 30px;
    text-align: left;
}

.container h2 {
    font-size: 1.3em;
    margin: 30px 0 10px;
    text-align: left;
}

.container ul {
    list-style-type: disc; /* Affiche les puces (disc = cercle rempli) */
    padding-left: 0; /* Supprime le padding-left pour aligner la liste avec le reste */
    margin-left: 20px; /* Décale les puces vers la droite en utilisant une marge */
    margin-bottom: 10px; /* Marge en bas pour espacer les listes */
}

.container ul li {
    margin-bottom: 5px; /* Espace entre les éléments de la liste */
    text-align: left; /* S'assure que le texte dans les <li> est aligné à gauche */
    margin-left: 15px; /* Ajuste le texte pour qu'il s'aligne avec les autres paragraphes */
}

.container p {
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: left;
}

.container a {
    color: #e0e0e0;
    text-decoration: underline;
    transition: color 0.3s;
}

.container a:hover {
    color: #ffffff;
}

/* Styles spécifiques à index.php */
.brand {
    background: linear-gradient(to right, #a0a0a0, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-shadow: 0px 0px 40px rgba(255, 255, 255, 0.699);
    display: inline;
}

.highlight-1 {
    color: #66D9FF;
    transition: color 0.3s;
}

.highlight-1:hover {
    color: #80E6FF;
}

.highlight-2 {
    color: #26A69A;
    transition: color 0.3s;
}

.highlight-2:hover {
    color: #4DB6AC;
}

#modeling .domains-list span[data-popup] {
    cursor: pointer;
}

section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0; /* Supprime le padding-top */
    box-sizing: border-box;
    margin-top: var(--nav-height); /* Ajoute une marge pour éviter le chevauchement */
}

section * {
    text-align: center;
}

/* PAGE D'ACCUEIL */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-bg.jpg') no-repeat center/cover, #111;
    padding: 40px;
    transform: translateY(var(--vertical-offset));
}

.hero h1 {
    font-size: 4em; /* Titre principal du site : SG 3D Studio en surbrillance */
    margin-bottom: 0.2em;
}

.hero .welcome-text {
    font-size: 1.4em; /* 2em */
    width: 70%;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.hero .domains-title {
    font-size: 1.9em; /* 2.5em */
    margin-bottom: 15px;
}

.hero .domain-item {
    font-size: 1.4em; /* 2em */
    margin-bottom: 15px;
}

.hero .domain-item a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hero .domain-item a:hover {
    text-decoration: underline;
    text-decoration-color: #80E6FF;
    text-decoration-thickness: 0.5px;
}

.hero .closing-text {
    font-size: 1.4em; /* 2em */
    margin-bottom: 30px;
}

.cta {
    display: inline-block;
    padding: 10px 20px; /* 15px 30px */
    background: linear-gradient(to right, #b8b8b8, #d9d9d9);
    color: #000;
    text-decoration: none;
    font-size: 1.2em; /* 1.2em */
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* TOUTES LES PAGES */
#metalwork, #modeling, #about, #contact, #portfolio {
    background-color: #111;
    padding: 60px 40px;
}

#metalwork h2, #modeling h2, #about h2, #contact h2, #portfolio h2 {
    font-size: 1.8em; /* 2.6em */
    margin-bottom: 20px;
    color: #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    display: inline-block;
}

#metalwork p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
#modeling p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
#contact p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
#portfolio p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p) {
    font-size: 1.4em;
    max-width: 1000px;
    margin: 0 auto 20px;
}

/* PAGE METALLERIE */
#metalwork .tagline {
    font-size: 1.5em; /* 2.1em */
    margin-bottom: 0.5em;
}

.activity-column {
    max-width: 1000px;
    margin: 0 auto 5px; /* 20px */
    padding: 10px; /* 20px */
    background: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    text-align: center;
    width: 98%;
    box-sizing: border-box;
}

.activity-column h3 {
    font-size: 1.7em; /* 2em */
    margin-bottom: 5px; /* 10px */
}

.activity-column p {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.section-text {
    line-height: 1.2;
    margin-bottom: 5px;
}

/* PAGE MODELISATION */
#modeling .intro-text {
    font-size: 1.6em; /* 2em */
    margin-bottom: 15px;
}

#modeling #portfolio .intro-text.tight-spacing {
    margin-bottom: 0px;
}

#modeling .intro-segment {
    font-size: 1.6em; /* 2em */
    margin-bottom: 10px;
}

#modeling .propose-text {
    font-size: 1.6em; /* 2.2em */
    margin-bottom: 15px;
}

#modeling .services-text {
    font-size: 1.4em; /* 2em */
    margin-bottom: 30px;
}

#modeling .domains-list {
    color: #e0e0e0;
    font-size: 1.1em; /* 1.5em */
}

#about .about-text {
    font-size: 1.4em; /* 1.5em */
    max-width: 1000px;
    margin: 0 auto 15px;
}

.tight-spacing {
    margin-bottom: 0px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto 20px;
}

input, textarea {
    padding: 5px;
    font-size: 1em;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #222;
    color: #e0e0e0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="file"] {
    padding: 5px;
}

textarea {
    height: 100px;
    resize: vertical;
}

#contact .success-message, #contact .error-message {
    display: none;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 1.2em;
    color: #ffffff;
}

#contact .success-message {
    background: rgba(0, 150, 0, 0.8);
}

#contact .error-message {
    background: rgba(150, 0, 0, 0.8);
}

.social-links {
    margin: 5px 0;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    font-size: 1.5em;
    text-decoration: underline;
    text-decoration-color: #66D9FF;
    text-decoration-thickness: 0.5px;
    color: #66D9FF;
    transition: color 0.3s, text-decoration-color 0.3s;
}

.social-links a:hover {
    color: #80E6FF;
    text-decoration-color: #80E6FF;
}

.contact-info {
    font-size: 1.0em;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 5px;
}

#contact .transform-text {
    font-size: 1.6em;
    margin-bottom: 20px;
}

#contact .contact-text {
    font-size: 1.4em;
    max-width: 800px;
    margin-bottom: 15px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #141414;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    color: #e0e0e0;
    text-align: center;
    cursor: pointer;
}

.popup p {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
}

.close-popup:hover {
    color: #ffffff;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    cursor: pointer;
}

.gallery-modeling, .gallery-renders, .gallery-videos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-modeling .modeling-item, .gallery-renders .render-item, .gallery-videos .video-item {
    max-width: 300px;
    text-align: center;
}

.gallery-modeling img, .gallery-renders img, .gallery-videos img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-modeling img:hover, .gallery-renders img:hover, .gallery-videos img:hover {
    transform: scale(1.05);
}

.modeling-item p:not(.software-used), .render-item p:not(.software-used), .video-item p:not(.software-used) {
    margin: 5px 0 0;
    font-size: 1.1em;
}

.gallery-intro {
    font-size: 1.8em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

.gallery-modeling .software-used, .gallery-renders .software-used, .gallery-videos .software-used {
    color: #00FFFF;
    font-size: 1em;
    margin-top: 0px;
    font-style: italic;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    cursor: pointer;
}

.lightbox iframe {
    width: 80vw;
    height: 45vw;
    max-width: 1280px;
    max-height: 720px;
    border-radius: 10px;
}

.lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 2em;
    cursor: pointer;
    z-index: 1001;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .prev:hover, .lightbox .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.lightbox .close:hover {
    color: #e0e0e0;
}

/* Media Queries */
@media (max-width: 768px) {
    :root {
        --vertical-offset: 0%;
    }
    body {
        padding: 20px;
        padding-top: 60px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    p {
        font-size: 1em;
    }
    nav ul {
        gap: 20px;
    }
    nav ul li a {
        font-size: 1.2em;
    }
    .footer span {
        font-size: 1.2em;
    }
    .footer a {
        font-size: 1.2em;
    }
    .hero h1 {
        font-size: 4em;
    }
    .hero .welcome-text {
        font-size: 1.3em;
        width: 80%;
        margin-bottom: 20px;
    }
    .hero .domains-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .hero .domain-item {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .hero .closing-text {
        font-size: 1.3em;
        margin-bottom: 120px;
    }
    .cta {
        font-size: 1em;
        padding: 10px 20px;
    }
    #metalwork h2, #modeling h2, #about h2, #contact h2, #portfolio h2 {
        font-size: 2.3em;
    }
    #metalwork p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
    #modeling p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
    #contact p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
    #portfolio p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p) {
        font-size: 1.4em;
    }
    #metalwork .tagline {
        font-size: 1.6em;
    }
    .activity-column {
        max-width: 90%;
        padding: 10px;
        width: 90%;
        margin: 0 auto 5px;
    }
    .activity-column h3 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    .activity-column p {
        font-size: 1.2em;
        margin-bottom: 3px;
    }
    #modeling .intro-text {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    #modeling .intro-segment {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    #modeling .propose-text {
        font-size: 1.6em;
    }
    #modeling .services-text {
        font-size: 1.4em;
        margin-bottom: 25px;
    }
    #modeling .domains-list {
        font-size: 1.1em;
    }
    #about .about-text {
        font-size: 1.2em;
        margin: 0 auto 10px;
    }
    #contact form {
        max-width: 80%;
    }
    #contact .transform-text {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    #contact .contact-text {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    #contact .success-message, #contact .error-message {
        font-size: 1em;
    }
    .social-links a {
        margin: 0 10px;
        font-size: 1.6em;
    }
    .contact-info {
        font-size: 1em;
    }
    .contact-info p {
        margin-bottom: 2px;
    }
    .gallery-modeling img, .gallery-renders img, .gallery-videos img {
        max-width: 250px;
    }
    .modeling-item p:not(.software-used), .render-item p:not(.software-used), .video-item p:not(.software-used) {
        font-size: 1em;
    }
    .gallery-intro {
        font-size: 1.4em;
    }
    .gallery-modeling .software-used, .gallery-renders .software-used, .gallery-videos .software-used {
        font-size: 0.9em;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    :root {
        --vertical-offset: 0%;
    }
    body {
        padding: 10px 5px;
        padding-top: 60px;
    }
    h1 {
        font-size: 1.9em;
    }
    h2 {
        font-size: 1.15em;
    }
    p {
        font-size: 1em;
    }
    nav ul {
        gap: 10px;
        padding: 0 10px;
    }
    nav ul li a {
        font-size: 1em;
    }
    .footer span {
        font-size: 0.9em;
    }
    .footer a {
        font-size: 0.9em;
    }
    .hero h1 {
        font-size: 3em;
    }
    .hero .welcome-text {
        font-size: 1.05em;
        width: 100%;
        margin-bottom: 5px;
    }
    .hero .domains-title {
        font-size: 1.4em;
    }
    .hero .domain-item {
        font-size: 1.05em;
    }
    .hero .closing-text {
        font-size: 1.05em;
        margin-bottom: 20px;
    }
    .cta {
        font-size: 1em;
        padding: 10px 20px;
    }
    #metalwork h2, #modeling h2, #about h2, #contact h2, #portfolio h2 {
        font-size: 1.4em;
    }
    #metalwork p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
    #modeling p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
    #contact p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p),
    #portfolio p:not(.software-used):not(.modeling-item p):not(.render-item p):not(.video-item p) {
        font-size: 1.05em;
    }
    #metalwork .tagline {
        font-size: 1.3em;
    }
    .activity-column {
        max-width: 98%;
        padding: 5px;
        width: 98%;
        margin: 0 auto 5px;
    }
    .activity-column h3 {
        font-size: 1.2em;
        margin-bottom: 6px;
    }
    .activity-column p {
        font-size: 1.1em;
        margin-bottom: 2px;
    }
    #modeling .intro-text {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    #modeling .intro-segment {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    #modeling .propose-text {
        font-size: 1.2em;
    }
    #modeling .services-text {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    #modeling .domains-list {
        font-size: 1.0em;
    }
    #about .about-text {
        font-size: 1em;
        margin: 0 auto 8px;
    }
    #contact form {
        max-width: 90%;
    }
    #contact .transform-text {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    #contact .contact-text {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    #contact .success-message, #contact .error-message {
        font-size: 0.9em;
    }
    .social-links a {
        margin: 0 8px;
        font-size: 1.4em;
    }
    .contact-info {
        font-size: 1.1em;
    }
    .contact-info p {
        margin-bottom: 2px;
    }
    .gallery-modeling img, .gallery-renders img, .gallery-videos img {
        max-width: 200px;
    }
    .modeling-item p:not(.software-used), .render-item p:not(.software-used), .video-item p:not(.software-used) {
        font-size: 0.9em;
    }
    .gallery-intro {
        font-size: 1.1em;
    }
    .gallery-modeling .software-used, .gallery-renders .software-used, .gallery-videos .software-used {
        font-size: 0.8em;
        margin-top: 0px;
    }
}