/* ==========================================================
   SPACIOUS – styles ajoutés en 2026 (chargé après main.css)
   Contient : accessibilité, accroche animée sans JavaScript, équipe à 2 personnes,
   services, approche, nouveaux projets, formulaire, pages projet et légale, pied de page.
   ========================================================== */

/* ---------- Accessibilité ---------- */
a.skip {
    position: absolute;
    left: -999em;
    top: 0;
    z-index: 10000;
    background: #000;
    color: #fff;
    padding: 10px 16px;
}

a.skip:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

#slide1-home a:focus-visible,
#back-button-container a:focus-visible {
    outline-color: #fff;
}

/* Contrastes un peu renforcés (lisibilité) */
#main-navigation a,
.position,
.phone a,
.email a,
#contact-container section {
    color: #595959;
}

#main-navigation a:hover,
.email a:hover,
.phone a:hover {
    color: #000;
}

#description {
    opacity: 1;
    color: #5a5a5a;
}

#footer-container h3,
#footer-container a {
    opacity: 0.7;
}

#footer-container a:hover {
    opacity: 1;
}

address {
    font-style: normal;
}

/* ---------- Page d'accueil : écran d'entrée ---------- */
#slide0-welcome,
#slide1-home {
    min-height: 100vh;
    min-height: 100svh;
}

#slide0-welcome {
    display: block;
}

.welcome-title,
.welcome-place {
    text-align: center;
    color: #000;
    opacity: 0.55;
    text-transform: uppercase;
    font-family: open-sans-bold, sans-serif;
    letter-spacing: 0.25em;
    margin: 0 auto;
    padding: 0 5%;
}

.welcome-title {
    font-size: 0.95em;
    line-height: 1.6;
}

.welcome-place {
    font-family: open-sans, sans-serif;
    font-size: 0.85em;
    margin-top: 6px;
}

/* ---------- Accroche : rotation sans JavaScript ---------- */
#slogan-container {
    padding-top: 12%;
}

#slogan-container .kicker {
    color: #fff;
    font-family: open-sans-bold, sans-serif;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    line-height: 1.6;
    padding-right: 7%;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

#slogan-container .fade {
    display: grid;
}

#slogan-container .fade p {
    grid-area: 1 / 1;
    opacity: 0;
    margin: 6% auto 20%;
    padding-top: 6%;
    animation: sloganCycle 12s infinite;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

#slogan-container .fade p:nth-child(2) {
    animation-delay: 4s;
}

#slogan-container .fade p:nth-child(3) {
    animation-delay: 8s;
}

@keyframes sloganCycle {
    0% { opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 1; }
    36% { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #slogan-container .fade {
        display: block;
    }

    #slogan-container .fade p {
        opacity: 1;
        animation: none;
        margin: 6% auto;
        padding-top: 0;
    }

    #gallery-container img.top,
    #gallery-container img.top-delay3s,
    #gallery-container img.top-delay5s {
        animation: none;
        opacity: 0;
    }
}

/* ---------- Équipe (2 personnes) ---------- */
#esther,
#sebastien {
    max-width: 30%;
    margin-left: 1%;
    margin-right: 1%;
}

@media screen and (max-width: 95em) {
    #esther,
    #sebastien {
        max-width: 32%;
    }
}

@media screen and (max-width: 65em) {
    #esther,
    #sebastien {
        max-width: 40%;
    }
}

@media screen and (max-width: 35em) {
    #esther,
    #sebastien {
        max-width: 48%;
        margin-left: 0.5%;
        margin-right: 0.5%;
    }

    .name-style {
        font-size: 0.7em;
    }

    .title-style {
        font-size: 0.55em;
    }
}

@media screen and (max-width: 25em) {
    .name-style {
        font-size: 0.6em;
    }

    .title-style {
        font-size: 0.5em;
    }
}

/* ---------- Blocs "Services" et "Notre approche" ---------- */
.info-block {
    max-width: 1100px;
    margin: 70px auto 0;
    padding: 0 5%;
    color: #444;
    text-align: center;
}

.block-title {
    font-family: open-sans-bold, sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #595959;
    margin: 0 0 14px;
    line-height: 1.5;
}

.block-intro {
    font-family: open-sans, sans-serif;
    font-weight: normal;
    font-size: 1.1em;
    color: #5a5a5a;
    margin: 0 auto 36px;
    max-width: 40em;
}

.service-list,
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 36px 40px;
    text-align: left;
}

.service-list {
    grid-template-columns: repeat(3, 1fr);
}

.step-list {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
}

.service-list li,
.step-list li {
    border-top: 1px solid #d9d9d9;
    padding-top: 18px;
}

.service-list h4,
.step-list h4 {
    font-family: open-sans-bold, sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.5;
}

.service-list p,
.step-list p {
    font-family: open-sans, sans-serif;
    font-weight: normal;
    font-size: 1em;
    color: #555;
    line-height: 1.55;
    margin: 0;
}

.step-num {
    display: block;
    font-family: open-sans, sans-serif;
    font-size: 2em;
    color: #b5b5b5;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

#approach {
    margin-bottom: 70px;
}

@media screen and (max-width: 65em) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 35em) {
    .info-block {
        margin-top: 50px;
    }

    .service-list,
    .step-list {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* ---------- Galerie : nouveaux projets (grille) + Instagram ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6%;
    margin: 0.6% 0.25% 1%;
    white-space: normal;
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eee;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover img,
.project-card:focus-visible img {
    transform: scale(1.04);
}

.project-card-title {
    position: absolute;
    left: 12px;
    bottom: 10px;
    color: #fff;
    font-family: open-sans-bold, sans-serif;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 50em) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.instagram-cta {
    text-align: center;
    margin: 36px 5% 0;
    font-family: "Source Sans Pro", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.95em;
}

.instagram-cta a {
    color: #595959;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
    padding-bottom: 3px;
}

.instagram-cta a:hover {
    color: #000;
    border-color: #000;
}

.instagram-cta span {
    font-family: open-sans-bold, sans-serif;
    letter-spacing: 0.1em;
    text-transform: none;
}

/* ---------- Formulaire de contact ---------- */
#contact-form-container {
    max-width: 640px;
    margin: 20px auto 0;
    padding: 0 5%;
    color: #444;
}

#contact-form-container .block-title {
    text-align: center;
    letter-spacing: 0.15em;
    font-size: 0.95em;
    margin-bottom: 28px;
}

#contact-form .field {
    margin-bottom: 22px;
}

#contact-form label {
    display: block;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #595959;
    margin-bottom: 4px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea {
    width: 100%;
    font-family: open-sans, sans-serif;
    font-size: 1em;
    color: #222;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #999;
    border-radius: 0;
    padding: 10px 0;
}

#contact-form textarea {
    border: 1px solid #999;
    padding: 10px;
    min-height: 140px;
}

#contact-form select {
    background: #fff;
}

#contact-form .consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

#contact-form .consent input {
    margin-top: 3px;
    flex: none;
}

#contact-form .consent a {
    color: #333;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button[type="submit"],
.button {
    display: inline-block;
    cursor: pointer;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    font-family: open-sans-bold, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 36px;
    transition: background 0.4s, color 0.4s;
}

button[type="submit"]:hover,
.button:hover {
    background: #fff;
    color: #000;
}

#contact-form p {
    text-align: center;
    margin-top: 28px;
}

.form-msg {
    text-align: center;
    padding: 14px 16px;
    margin: 0 0 24px;
    font-family: open-sans, sans-serif;
    font-size: 1em;
    border: 1px solid;
}

.form-ok {
    color: #1f5f2e;
    background: #eef7f0;
    border-color: #9fcaa8;
}

.form-err {
    color: #8a1f1f;
    background: #fbefef;
    border-color: #e0a8a8;
}

/* ---------- Pied de page ---------- */
#footer-container .footer-meta {
    text-align: center;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.85em;
    color: #595959;
    padding-bottom: 28px;
}

#footer-container .footer-meta p {
    margin: 8px 0 0;
}

#footer-container .footer-meta a {
    color: #595959;
    opacity: 1;
}

#footer-container .footer-meta a:hover {
    color: #000;
}

.lang-switch {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    letter-spacing: 0.2em;
}

.lang-switch li {
    display: inline-block;
    margin: 0 8px;
}

.lang-switch [aria-current] {
    font-weight: 700;
    color: #000;
}

#footer-container ul.social {
    padding: 2% 0;
}

#footer-container ul.social li {
    padding-left: 3%;
    padding-right: 3%;
}

#site-footer {
    background: #fff;
}

/* ---------- Pages "projet" et "mentions légales" ---------- */
.page-gallery,
.page-legal {
    background: #fff;
    color: #333;
}

#back-button-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 16px;
    text-align: left;
}

#back-button-container h1 {
    color: #fff;
    font-family: open-sans-bold, sans-serif;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-align: center;
    line-height: 1.3;
}

#back-button-container .back-link {
    justify-self: start;
    font-size: 0.85em;
}

.project-info {
    max-width: 780px;
    margin: 36px auto 0;
    padding: 0 6%;
    text-align: center;
    color: #333;
}

.project-type {
    font-family: "Source Sans Pro", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85em;
    color: #595959;
    margin: 0 0 14px;
}

.project-desc {
    font-family: open-sans, sans-serif;
    font-weight: normal;
    font-size: 1.15em;
    line-height: 1.7;
    color: #333;
    margin: 0 0 8px;
}

.project-cta {
    margin: 44px 0 0;
    padding: 30px 0 0;
    border-top: 1px solid #ddd;
}

.project-cta h2 {
    font-family: open-sans-bold, sans-serif;
    font-size: 1em;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 8px;
}

.project-cta p {
    font-family: open-sans, sans-serif;
    font-weight: normal;
    margin: 0 0 18px;
    color: #555;
}

.project-links {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9em;
}

.project-links li {
    display: inline-block;
    margin: 6px 14px;
}

.project-links a,
.project-nav a,
.legal a {
    color: #333;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 36px 0 10px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-nav a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.project-nav a:hover {
    border-color: #333;
}

.page-gallery #footer-container,
.page-legal #footer-container {
    margin-top: 40px;
}

.legal {
    max-width: 760px;
    margin: 36px auto 0;
    padding: 0 6%;
    font-family: open-sans, sans-serif;
    font-weight: normal;
    line-height: 1.65;
    color: #333;
}

.legal h2 {
    font-family: open-sans-bold, sans-serif;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 36px 0 12px;
    color: #000;
}

.legal h3 {
    font-family: open-sans-bold, sans-serif;
    font-size: 0.9em;
    margin: 20px 0 4px;
    color: #333;
}

.legal p {
    font-weight: normal;
    margin: 0 0 8px;
}

.legal dl {
    margin: 0;
}

.legal dt {
    font-family: open-sans-bold, sans-serif;
    font-size: 0.9em;
    margin-top: 8px;
}

.legal dd {
    margin: 0;
}

@media print {
    #main-navigation,
    .fotorama__nav,
    form {
        display: none !important;
    }
}

/* ---------- Corrections mobile / pleine largeur ---------- */
body {
    width: 100%;
}

@media screen and (max-width: 50em) {
    #slogan-container .kicker {
        font-size: 0.7em;
        letter-spacing: 0.15em;
    }
}

@media screen and (max-width: 35em) {
    /* le logo ne doit pas passer sur le premier lien du menu */
    #main-navigation ul {
        padding-left: 52px;
    }

    #main-navigation ul li {
        margin: 0 1.5%;
    }
}

/* évite un léger défilement horizontal causé par la mosaïque sur petits écrans */
#gallery-container {
    overflow: hidden;
}
