/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.5.15,
* Autoprefixer: v10.5.0
* Browsers: last 4 version
*/

/* =========================================================
   Aurélien Talbot — feuille de style
   ========================================================= */

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

body {
  background-color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  color: #17160f;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
         font-weight: 800;
  line-height: 1;
  font-family: "Syne", sans-serif;
  color: #17160f;
}

a { color: inherit; }

/* Focus clavier visible (accessibilité) */
a:focus-visible {
  outline: 2px solid #17160f;
  outline-offset: 3px;
  border-radius: 2px;
}

blockquote {
    margin: 0;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
}

p {
    font-size: 16px;
    font-weight: 300;
    color: #57564d;
}

img {
    width: 100%;
     max-width: 100%;
     height: auto;
}

.grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-2 {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
.grid-2 {
    -ms-grid-columns: 1fr 4rem 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}
    p {
  /*  font-size: 1.5rem; */
  line-height: 1.5;
  font-size: 18px;
    font-weight: 300;
}
}

hr {
    border: none;
    height: 1px;
    background-color: #e4e2d8;
    margin: 20px 0;
}



@media screen and (min-width: 768px) {
  .section-padding {
  padding: 4rem 0;
}
}


.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.9rem;
    text-decoration: none;
    color: #17160f;
    padding: 0.75rem 1.25rem;
    border: 1px solid #17160f;
    transition: background-color 0.3s ease, color 0.3s ease;
  margin: 1rem 0 ;
}

.btn-more:hover {
    background-color: #17160f;
    color: #ffffff;
}


/* -------- En-tête / navigation --------------------------- */
.site-nav {
  border-bottom: 1px solid #e4e2d8;
}

.site-nav__brand {
        font-weight: 800;
  line-height: 1;
  font-family: "Syne", sans-serif;
  color: #17160f;
}

header a { text-decoration: none; }

.site-nav__links {
  list-style: none;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}

.site-nav__links li a {
  font-size: 0.9rem;
  color: #57564d;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

@media screen and (min-width: 991px) {
  .site-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

/* -------- Hero ------------------------------------------- */



.hero h1 {
  font-weight: 800;
  line-height: .8;
  font-size: 2.5rem;
  margin: 0;
}

.hero p { color: #57564d; font-size: 20px; }

.hero .bottom-hero p { font-weight: 300; }

.hero p.hero-intro {
  font-size: 0.9rem;
  color: #57564d;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.hero-img {
    width: 100%;
    height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border: 1px solid #e4e2d8;
}

.hero-img img{
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}


@media screen and (min-width: 768px) {
.hero h1 { font-size: 3.5rem; }

.top-hero {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    /* border-bottom: 1px solid #e4e2d8; */
}

.hero-text{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
} 

.hero-img {
    border: none;
}

.hero .container{
    padding: 0 1rem;
} 
.hero p {font-size: 22px; }
} 

 @media screen and (min-width: 1200px) {
  .hero h1 { font-size: 5.5rem; }
}

@media screen and (min-width: 1400px) {
  .hero h1 { font-size: 6.5rem; }
} 


/* -------- presentation ---------------------------------- */

.subtitle span, .subtitle h2 {
    font-size: 0.9rem;
    color: #57564d;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    background-color: #fff;
    padding: 0 .5rem 0 0;
      font-weight: 400;
      display: inline-block;
}


  
.subtitle {
    position: relative;
}

.subtitle:before {
    position: absolute;
    height: 1px;
    background-color: #e4e2d8;
    content: '';
    top:50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    left:0;
    right:0;
    z-index: -1;
}

.a-propos .motto p{
      font-weight: 800;
  line-height: 1;
  font-size: 2.5rem;
  font-family: "Syne", sans-serif;
  color: #17160f;
}

@media screen and (min-width:768px) {
.presentation .container {
    padding: 0 1rem;
}

.presentation .subtitle {
      margin-top: -1.2rem;
}

}



/* -------- Pied de page ----------------------------------- */
.footer-content {
  border-top: 1px solid #e4e2d8;
  padding: 1rem 0;
}

footer a { text-decoration: none; }

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
}

footer ul li { margin: 0 0 0.3rem; }

footer p,
footer a {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: #57564d;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.socials-footer a { color: #17160f; }

@media screen and (min-width: 991px) {
  .top-footer,
  .top-footer .left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .top-footer { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
  .socials-footer { margin: 0 0 0 1rem; }
}


.header-page h1 {
    font-size: 2.5rem;
}


@media screen and (min-width: 768px) {
    .header-page h1 {
    font-size: 3rem;
}

}


.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb ul li {
    display: inline-block;
}

.breadcrumb a, .breadcrumb span {
      font-size: 0.9rem;
    color: #57564d;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}


/* Activation du défilement fluide pour toute la page */
html {
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #17160f; /* Bleu moderne */
  color: white;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* Transition pour l'apparition */
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

/* État visible (ajouté via JS) */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Effet au survol */
.back-to-top:hover {
  background-color: #17160f;
  -webkit-transform: translateY(-5px);
      -ms-transform: translateY(-5px);
          transform: translateY(-5px);
}

/* Accessibilité : focus visible */
.back-to-top:focus-visible {
  outline: 3px solid #57564d;
  outline-offset: 3px;
}

/* travaux */

.travaux__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.project-card {
  border: 1px solid #e4e2d8;
 /* margin: 1rem 0; */
  padding: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card a {
  text-decoration: none;
}

.project-card__meta {
      font-size: 0.9rem;
    color: #57564d;
    font-family: "JetBrains Mono", ui-monospace, monospace;
      font-weight: 400;
      display: block;
    margin: 0.5rem 0;
}

.project-card__title {
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #17160f;
    line-height: 1.1;
}
/*.project-card__description {
  font-size: 1rem;
}*/
.project-card__footer span {
        font-size: 0.9rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
      font-weight: 600;
}

.project-card__action .arrow {
    transition: transform 0.3s ease;
}

.project-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f9f9f8;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}



@media screen and (min-width: 768px) {
    .travaux__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Le 1er projet prend toute la largeur pour casser la monotonie de la grille */
    .project-card--featured {
        grid-column: 1 / -1;
    }

    .project-card--featured .project-card__link {
        flex-direction: row;
    }
  .project-card--featured .project-card__media {
        width: 55%;
        aspect-ratio: auto;
      
    }

    .project-card--featured .project-card__content {
        width: 45%;
        padding: 2.5rem;
    }
    .project-card--featured .project-card__title {
        font-size: 2.2rem;
    }

  .project-card:hover {
    border-color: #17160f;
}
}


/* single travaux */

.container-text-projet {
     max-width: 60rem;
    margin: 0 auto;
    padding: 1rem;
}

 .project-cover {
            width: 100%;
           /* aspect-ratio: 16 / 9;
            max-height: 70vh; */
            overflow: hidden;
            border: 1px solid #e4e2d8;
            background-color: #f9f9f8;
        /*    margin-bottom: 4rem; */
        }

        .project-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
        
        
        
        
         /* Grille de métadonnées enrichie (4 colonnes) */
        .project-details-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            background-color: #faf9f5;
            padding: 2rem;
            border: 1px solid #e4e2d8;
          /*  margin: 3rem 0; */
        }

        .project-detail-item__label {
            font-family: "JetBrains Mono", ui-monospace, monospace;
            font-size: 0.8rem;
            color: #57564d;
            display: block;
            margin-bottom: 0.25rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .project-detail-item__value {
            font-family: "Syne", sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: #17160f;
            margin: 0;
        }

        .project-detail-item__link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: "Syne", sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: #17160f;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .project-detail-item__link:hover {
            color: #57564d;
        }
        
        
        
        @media screen and (min-width: 768px) {
            h2 {
                font-size: 2.5rem;
            }
            h3 {
                font-size: 1.5rem;
            }
            .project-details-grid { grid-template-columns: repeat(2, 1fr); }
         
        }
        
        
        
        
        
         /* -------- Galerie d'images ------------------------------- */
        .project-gallery-grid {
           /* max-width: 80rem;
            margin: 4rem auto; 
            padding: 0 1rem;*/
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .gallery-item {
            border: 1px solid #e4e2d8;
            background-color: #f9f9f8;
            overflow: hidden;
        /*    aspect-ratio: 16 / 9; */
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Navigation bas de page */
        .project-nav {
            border-top: 1px solid #e4e2d8;
            padding: 3rem 0 1rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .project-nav__link {
            font-family: "JetBrains Mono", ui-monospace, monospace;
            font-size: 0.9rem;
            color: #17160f;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        /* Pied de page */
        .footer-content {
            border-top: 1px solid #e4e2d8;
            padding: 1rem 0;
        }
        
        
        
        
        @media screen and (min-width: 768px) {
     
            /* Disposition de la galerie sur desktop : 2 colonnes pour les images secondaires */
            .project-gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .gallery-item--full {
                grid-column: 1 / -1;
            }
        }