* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root {
    --primary: #776c57;
    --accent: #a3977e;
    --surface: #f4f4f4;
    --surface-hover: #e4e4e4;
    --border: #bbbbbb;
    --gray: #999999;
    --darkgray: #333333;
    --darkgray-2: #666666;
    --navy: #192d45;
    --error: #e74c3c;
    --success: #2ecc71;

    --gutter-x: 1.5rem;

    /* Radio size */
    --r-size: 2.3rem;

    --spacer: 15px;
}

html {
    font-size: 16px;
}


body {
    background-color: white;
    color: black;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body.has-overlay {
    overflow-y: hidden;
}

body.about,
body.copied,
body.original {
    color: #666666;
}

section {
    margin: 2rem 0;
}

hr {
    margin: 1rem 0;
    color: var(--border);
}

/* UTILS */

/* Width */
.w-fit {
    width: fit-content !important;
}

.w-50 {
    width: 50% !important;
}

.w-80 {
    width: 80% !important;
}

.max-w-full {
    max-width: 100% !important;
}

/* Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-white {
    color: white !important;
}

.text-navy {
    color: var(--navy) !important;
}

.text-darkgray {
    color: var(--darkgray) !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.bg-surface-hover {
    transition: background-color .2s ease ;
}

.bg-surface-hover:hover {
    background-color: var(--surface-hover) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Fonts */
.font-light {
    font-weight: 300 !important;
}

.font-regular {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* Text */
.text-center {
    text-align: center !important;
}

.inline-block {
    display: inline-block !important;
}

.block {
    display: block;
}

/* Flex */
.flex-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-start {
    justify-content: start !important;
}

.justify-center {
    justify-content: center !important;
}

.items-start {
    align-items: start;
}

.items-baseline {
    align-items: baseline !important;
}

.items-center {
    align-items: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-2 {
    gap: 8px !important;
}

.gap-3 {
    gap: 16px !important;
}

.gap-4 {
    gap: 24px !important;
}

.gap-5 {
    gap: 48px !important;
}

/* END UTILS */


/* Text */
.title-1 {
    color: var(--primary);
    font-size: 28px; /* Taille de base mobile */
    font-weight: 600;
    line-height: 1.2;
    margin: 0.5em 0;
}

.title-2 {
    color: var(--primary);
    font-size: 20px; /* Taille de base mobile */
    font-weight: 600;
    line-height: 1.25;
    margin: 0.4em 0;
}

.p {
    color: var(--darkgray);
    font-size: 15px; /* Taille de base mobile */
    font-weight: 300;
    line-height: 1.6;
    margin: 0.3em 0;
}

.p-small {
    color: var(--gray);
    font-size: 13px; /* Taille de base mobile */
    font-weight: 300;
    line-height: 1.8;
    margin: 0.2em 0;
}

/* Tablettes (768px et +) */
@media (min-width: 768px) {
    .title-1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .title-2 {
        font-size: 18px;
    }

    .p {
        font-size: 16px;
    }

    .p-small {
        font-size: 14px;
    }
}

/* Petits écrans desktop (992px et +) */
@media (min-width: 992px) {
    .title-1 {
        font-size: 28px;
        line-height: 1.35;
    }

    .title-2 {
        font-size: 20px;
    }

    .p {
        font-size: 16px;
        line-height: 1.65;
    }
}

/* Grands écrans (1400px et +) */
@media (min-width: 1400px) {
    .title-1 {
        font-size: 30px;
        line-height: 1.4;
    }

    .title-2 {
        font-size: 24px;
    }

    .p {
        font-size: 18px;
    }

    .p-small {
        font-size: 15px;
    }
}

/* Écrans très larges (1920px et +) */
@media (min-width: 1920px) {
    .title-1 {
        font-size: 40px;
    }

    .title-2 {
        font-size: 28px;
    }
}


.link {
    border-bottom: 1px solid;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in;
}

.link-primary {
    color: var(--primary);
}

.link-primary:hover {
    color: var(--accent);
}


/* Button */
.btn {
    padding: 0.4375em 2em;
    border: unset;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    transition: all 0.25s ease-in;
}

.btn-primary {
    color: white;
    background-color: #878787;
}

.btn-primary:focus {
    outline-width: 2px;
    outline-color: var(--gray);
}

.btn-primary:hover {
    background-color: var(--primary);
}

.btn-secondary {
    color: white;
    background-color: #000000;
}

.btn-secondary:focus {
    outline-width: 2px;
    outline-color: var(--gray);
}

.btn-secondary:hover {
    background-color: #1f1400;
}

.btn-transparent {
    background-color: transparent;
    border-color: transparent;
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-inline,
.form-inline-inverse {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 16px;
}

.form-inline-inverse {
    flex-direction: row-reverse;
}

.form-label {
    margin-bottom: 8px;
    display: inline-block;
}

.form-inline .form-label,
.form-inline-inverse .form-label {
    margin-bottom: 0;
}

.form-control {
    padding: 0.4rem 0.6rem;
    border: 1px solid #cccccc;
    border-radius: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
}
.form-control:focus {
    outline-width: 2px;
    outline-color: var(--gray);
}

textarea.form-control {
    height: 17rem;
}

.form-control::placeholder {
    color: var(--darkgray-2);
}

.radio {
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    position: relative;
    width: var(--r-size);
    height: var(--r-size);
    line-height: var(--r-size);
}

.radio::before,
.radio::after {
    content: '';
    display: block;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio::before {
    width: calc(var(--r-size) * 0.7);
    height: calc(var(--r-size) * 0.7);
    border: 1px solid var(--border);
}

.radio::after {
    width: calc(var(--r-size) * 0.4);
    height: calc(var(--r-size) * 0.4);
}

.radio:checked::after {
    background-color: var(--primary);
}


.file-upload {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.file-upload__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666666;
    font-size: 1rem;
    font-weight: 300;
}

.file-upload__btn:hover {
    color: var(--primary);
}

.file-upload__icon svg {
    width: 5rem;
    height: 5rem;
    fill: #a0a0a0;
    transition: fill 0.2s ease-in;
}

.file-upload__btn:hover .file-upload__icon svg {
    fill: var(--primary);
}

.file-upload .file-preview {
    width: 50%;
}

.file-upload .file-preview__thumbnail {
    width: 100%;
}

.form-error {
    margin-top: 0.25rem;
    color: var(--error);
    font-size: 0.825rem;
    font-weight: 500;
}

.form-error ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

.has-error.form-group .form-control {
    border-color: var(--error);
}

.has-error.form-group .form-control::placeholder {
    color: var(--error);
}

.file-upload+.form-error ul {
    align-items: center;
}


/* Links */
a {
    text-decoration: none;
}


/* LAYOUT */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--gutter-x)*.5);
    padding-right: calc(var(--gutter-x)*.5);
}

@media (min-width: 576px) {
    .container {
        width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 720px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        width: 1320px;
    }
}

/* Cols */

.col-3-2-1 {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
}

@media (min-width: 992px) {
    .col-lg-1-auto {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 115px;
    }
    
}

.profile-control {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.profile-control::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
}

.profile-btn {
    border: transparent;
    background-color: transparent;
    color: white;
}

.profile-content {
    background-color: white;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    display: none;
    visibility: hidden;
    pointer-events: none;
    width: max-content;
    position: absolute;
    top: calc(0.75rem * -1);
    left: 0;
    transform: translateY(var(--top-header-height));
}

.profile-control:hover .profile-content {
    display: block;
    visibility: visible;
    pointer-events: all;
}

.top-header .profile-content a {
    padding: 16px;
    color: var(--darkgray);
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.top-header .profile-content a:first-child {
    padding-bottom: 8px;
}

.top-header .profile-content a:last-child {
    padding-top: 8px;
}

/* Banner */
.banner {
    margin: 0;
    margin-bottom: 8px;
    padding: 7rem 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

@media (min-width: 1400px) {
    .banner {
        padding: 8rem 0;
    }
}

.banner-empty {
    margin-bottom: 40px;
    background-color: var(--surface);
    height: 48px;
}

/* Base mobile-first */
.banner-title-1,
.banner-title-2,
.banner-title-3 {
    margin: 0 0 0.7rem;
    line-height: 1.2;
}

.banner-title-1 {
    color: black;
    font-size: 28px; /* Réduit pour mobile */
    font-weight: 300; /* Augmenté pour meilleure lisibilité */
    line-height: 1.15;
}

.banner-title-2 {
    color: white;
    font-size: 24px; /* Réduction mobile importante pour l'uppercase */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Améliore la lisibilité */
}

.banner-title-3 {
    color: var(--darkgray-2);
    font-size: 18px; /* Taille mobile adaptée */
    font-weight: 400; /* Renforcé pour contraste */
    line-height: 1.4;
}

/* Tablettes (≥768px) */
@media (min-width: 768px) {
    .banner-title-1 {
        font-size: 32px;
        line-height: 1.1;
    }
    
    .banner-title-2 {
        font-size: 28px;
        letter-spacing: 0.75px;
    }
    
    .banner-title-3 {
        font-size: 20px;
    }
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
    .banner-title-1 {
        font-size: 36px;
        font-weight: 250; /* Transition progressive */
    }
    
    .banner-title-2 {
        font-size: 32px;
    }
    
    .banner-title-3 {
        font-size: 22px;
        line-height: 1.35;
    }
}

/* Grands écrans (≥1400px) */
@media (min-width: 1400px) {
    .banner-title-1 {
        font-size: 44px; /* Taille originale */
        font-weight: 200; /* Style original */
        line-height: 1.1;
    }
    
    .banner-title-2 {
        font-size: 40px; /* Taille originale */
        letter-spacing: 1px;
    }
    
    .banner-title-3 {
        font-size: 25px; /* Taille originale */
        line-height: 1.3;
        font-weight: 300; /* Style original */
    }
}

/* Gestion des très petits écrans (optionnel) */
@media (max-width: 360px) {
    .banner-title-1 {
        font-size: 24px;
    }
    
    .banner-title-2 {
        font-size: 20px;
    }
    
    .banner-title-3 {
        font-size: 16px;
    }
}

@media (min-width: 1400px) {
    .banner-title-1 {
        font-size: 56px;
    }

    .banner-title-2 {
        font-size: 48px;
    }

    .banner-title-3 {
        font-size: 30px;
    }
}

.about .banner {
    background-image: url("../images/about/banner-a41f8bc84c9b1b9cc579815d7fd214d2.jpg");
}

.terms .banner {
    background-image: url("../images/about/banner-a41f8bc84c9b1b9cc579815d7fd214d2.jpg");
}

.terms .sub-section {
    margin: 2rem 0;
}

.original .banner {
    background-image: url("../images/original/banner-6f75b21067e20b4f0c0d036e528dbf74.jpg");
}

.copied .banner {
    background-image: url("../images/copied/banner-2144f03245c600977db848cd1294fd2b.jpg");
}

.img-to-copy .banner {
    background-image: url("../images/tocopy/banner-d48f781f59a8d213f0b1afc70352e3fb.jpg");
}

.contact .banner {
    background-image: url("../images/contact/banner-6c9a001f96110b71a83bf70ddfb29d6f.jpg");
}



/* HEADER */
header {
    background-color: white;
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 998;
}

header.fixed {
    position: fixed;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.top-header {
    padding: 0.75rem 0;
    background-color: var(--primary);
    height: var(--top-header-height);
}

.top-header .container {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 3rem;
}

.top-header a {
    color: white;
}

.top-header .top-menu .icon,
.sidebar a .icon {
    margin-right: 0.75rem;
}

.main-header {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

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

.burger-btn {
    color: var(--primary);
    font-size: 38px;
}

.main-header nav ul,
.main-header nav .has-child ul {
    list-style-type: none;
}

.main-header nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1400px) {
    .main-header nav ul {
        gap: 56px;
    }
}

.main-header nav li {
    font-size: clamp(18px);
}

@media (max-width: 1200px) {
    .main-header nav li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-header nav li {
        font-size: 14px;
    }
}

.main-header nav .has-child ul {
    padding: .75rem;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: none;
}

.main-header nav .has-child:hover ul {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    z-index: 5;
}

.main-header nav li {
    font-weight: 600;
    position: relative;
}

.main-header nav .has-child ul li:not(:first-child):not(:last-child) {
    margin: 0.5rem 0;
    text-wrap: nowrap;
}

.main-header nav li a {
    color: var(--primary);
    transition: color .2s ease-in;
}

.main-header nav li:hover>a {
    color: var(--accent);
}

.main-header nav li.active>a {
    color: var(--accent);
}

.top-header,
header nav {
    display: none;
}

@media (max-width: 1199.98px) {
    .main-header .container {
        padding-left: 3.125rem;
        padding-right: 3.125rem;
    }

    header .logo img {
        width: auto;
        max-height: 3.125rem;
    }
}

@media (min-width: 1200px) {
    header {
        position: static;
    }

    header.fixed .logo img {
        max-width: 120px;
    }

    header .top-header {
        transition: all 0.4s ease-in-out;
    }

    header.fixed .top-header {
        padding: 0;
        height: 0 !important;
        visibility: hidden;
    }

    .top-header,
    header nav {
        display: block;
    }

    header .logo img {
        margin-left: 36px;
        max-width: 145px;
        transition: all .4s ease;
    }

    .burger-btn {
        display: none;
    }
}

@media (min-width: 1400px) {
    header .logo img {
        max-width: 168px;
    }
}


/* SIDEBAR */
.sidebar {
    padding: 2rem calc(var(--gutter-x));
    background-color: var(--primary);
    color: white;
    font-size: 1.4rem;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .25s ease-in;
}

.sidebar.open {
    visibility: visible;
    pointer-events: all;
    transform: translateX(0);
}

.sidebar .close-btn {
    font-size: 1.2em;
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 2;
}

.sidebar .logo img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 50%;
}

.sidebar ul {
    font-weight: 500;
    list-style-type: none;
}

.sidebar li {
    font-size: 1em;
}

.sidebar li.has-child>ul {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
}

.sidebar li.has-child>ul li {
    font-size: 0.8em;
}

.sidebar li:not(:first-child):not(:last-child) {
    margin: 0.8rem 0;
}

.sidebar .bottom {
    font-weight: 600;
    display: flex;
    justify-content: space-around;
    gap: 2.5rem;
}

.sidebar a {
    color: white;
}

.d-block {
    display: block;
}

@media (min-width: 768px) {
    .sidebar {
        width: 75vw;
    }
}

@media (min-width: 992px) {
    .sidebar {
        width: 50vw;
    }
}

@media (min-width: 1200px) {
    .sidebar {
        display: none;
    }
}

.feature-box {
    margin: 2rem 0;
    text-align: center;
}

.feature-box__icon img {
    height: 2.5rem;
}

.payment-option {
    width: 20%;
    min-width: 150px;
}

.payment-option:nth-child(2) {
    width: 10%;
    min-width: 75px;
}

.payment-option:nth-child(3) {
    width: 10%;
    min-width: 75px;
}

@media (min-width: 768px) {
    .features__container .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .feature-box {
        margin: 0;
    }

    .feature-box__icon img {
        height: 3.5rem;
    }
}

@media (min-width: 1400px) {
    .features__container .container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 3rem;
    }

    .feature-box__icon img {
        height: 5rem;
    }
}


.gallery-items {
    padding-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 48px;
}

@media (min-width: 768px) {
    .gallery-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* @media (min-width: 1200px) {
    .gallery-items {
        grid-template-columns: repeat(3, 1fr);
    }
} */

@media (min-width: 1400px) {
    .gallery-items {
        grid-template-columns: repeat(4, 1fr);
    }
}




/* old rules 11.07.25.

.footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-color: var(--primary);
    text-align: center;
}

.footer,
.footer a {
    color: white;
    transition: color 0.2s ease-in;
}

.footer a:hover {
    color: var(--accent);
}

.footer .copyright {
    font-size: 0.875rem;
    font-weight: 400;
}

.footer .social-links {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: none;
    gap: 2.5rem;
}

.footer .social-links li {
    font-size: 2.6rem;
}

.footer .social-links li:last-child {
    font-size: 2.1rem;
}

.mr-1 {
    margin: 1rem 0 1rem 1rem;
}
*/


/* --- FOOTER STYLES START -------------------------------------------------------------------------- */
footer.footer {
    padding: 3rem 1.5rem;
    background-color: var(--primary);
    color: white;
}

footer.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease-in;
    text-decoration: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; 
    margin-bottom: 2.5rem;
}

.footer-column {
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column p {
    margin: 0 0 0.5rem 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom .social-links {
    list-style-type: none;
    padding: 0;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.footer-bottom .social-links li {
    font-size: 2.2rem;
}

.footer-bottom .copyright {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 820px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* --- FOOTER STYLES END ---------------------------------------------------------------------------- */

/* --- TEXT STYLES START ---------------------------------------------------------------------------- */
.text-content {
    text-align: left; 
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

.text-content h1,
.text-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-content p,
.text-content ol,
.text-content ul {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.text-content ol,
.text-content ul {
    padding-left: 40px;
}

.form-section {
    border-top: 1px solid #ddd;
    margin-top: 3rem;
    text-align: center;
}
/* --- TEXT STYLES END ---------------------------------------------------------------------------- */
