
/* ======================================
   ATELIER COEUR CARRE
   Style ivoire, terre et rouge profond
====================================== */

/* 1. COULEURS */

:root {
  --ivoire: #f5f1e9;
  --sable: #e8dfd2;
  --beige: #eee6da;
  --brun: #49372c;
  --texte: #71665c;

  --rouge: #963f3b;
  --rouge-fonce: #702c2b;
  --rouge-clair: #c7887d;
}

/* 2. BASE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivoire);
  color: var(--brun);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 3. TYPOGRAPHIE */

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

h1,
h2 {
  color: var(--brun);
}

p {
  color: var(--texte);
}

/* 4. MENU */

.site-header {
  background-color: var(--ivoire);
  border-bottom: 1px solid #e3d8cb;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 35px;
  min-height: 75px;
  padding: 15px 20px;
}

.site-nav a {
  color: var(--brun);
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--rouge);
}

/* Petit accent rouge sur Contact */

.site-nav a:last-child {
  color: var(--rouge);
}

/* 5. ACCUEIL */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px;
  background-color: var(--ivoire);
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero .hero-location {
  margin: 0 0 65px;
  color: var(--rouge);
  font-size: 0.85rem;
  letter-spacing: 4px;
}

/* Petit trait rouge décoratif */

.hero .hero-location::after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  margin: 25px auto 0;
  background-color: var(--rouge);
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 25px;
}

.hero .hero-description {
  max-width: 600px;
  margin: 0 auto 35px;
  color: var(--texte);
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
}

/* 6. BOUTONS */

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--rouge);
  color: #fffaf3;
  border: 1px solid var(--rouge);
  border-radius: 2px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.btn:hover {
  background-color: var(--rouge-fonce);
  color: white;
  transform: translateY(-2px);
}

/* 7. SECTIONS */

.content-section {
  padding: 100px 20px;
  scroll-margin-top: 25px;
}

.content-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.section-number {
  color: var(--rouge);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.content-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 30px;
}

.content-section p {
  max-width: 750px;
  margin-bottom: 18px;
}

/* 8. L'ATELIER */

#atelier {
  background-color: var(--sable);
}

#atelier h2 {
  color: var(--brun);
}

#atelier .content-inner {
  border-left: 3px solid var(--rouge);
  padding-left: 30px;
}

/* 9. GALERIE */

#creations {
  background-color: var(--ivoire);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  margin-top: 45px;
}

.artwork {
  background-color: var(--beige);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.artwork:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px
    rgba(73, 55, 44, 0.12);
}

.artwork img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.artwork:hover img {
  transform: scale(1.03);
}

.artwork-info {
  padding: 25px;
  border-top: 3px solid var(--rouge);
}

.artwork-info h3 {
  color: var(--brun);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.artwork-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 10. DERRIERE LES CREATIONS */

#artiste {
  background-color: var(--beige);
}

#artiste h2 {
  color: var(--brun);
}

#artiste .content-inner {
  border-left: 3px solid var(--rouge);
  padding-left: 30px;
}

/* 11. CONTACT */

#contact {
  background-color: var(--brun);
  color: var(--ivoire);
  text-align: center;
}

#contact .section-number {
  color: #e3a79b;
}

#contact h2 {
  color: #fffaf3;
}

#contact p {
  color: #e1d5c8;
  margin-left: auto;
  margin-right: auto;
}

#contact .btn {
  background-color: var(--rouge);
  border-color: var(--rouge);
  color: white;
}

#contact .btn:hover {
  background-color: #b25750;
}

/* 12. PIED DE PAGE */

.site-footer {
  background-color: #342920;
  padding: 30px 20px;
  text-align: center;
}

.site-footer p {
  color: #e8dfd2;
  font-size: 0.85rem;
  margin: 0;
}

/* 13. RESPONSIVE TABLETTE */

@media (max-width: 800px) {

  .hero {
    min-height: 70vh;
    padding: 80px 20px;
  }

  .content-section {
    padding: 75px 20px;
  }

  .gallery-grid {
    gap: 22px;
  }

  .artwork img {
    height: 320px;
  }

}

/* 14. RESPONSIVE TELEPHONE */

@media (max-width: 600px) {

  .site-nav {
    gap: 14px 20px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero {
    padding: 70px 20px;
  }

  .hero .hero-location {
    margin-bottom: 45px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }

  .hero h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .content-section {
    padding: 65px 20px;
  }

  #atelier .content-inner,
  #artiste .content-inner {
    padding-left: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .artwork img {
    height: 300px;
  }

}

/* NOM DE L'ATELIER EN ROUGE */

.hero h1 {
  color: #963f3b;
}

/* TITRES DES CREATIONS */

.artwork-info h3 {
  font-size: 26px;
  color: #963f3b;
  margin-bottom: 10px;
}

.artwork-info p {
  font-size: 15px;
  line-height: 1.7;
}

/* PHOTO DES MAINS SUR L'ACCUEIL */

.hero-photo {
  width: 100%;
  max-width: 750px;
  margin: 10px auto 35px;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* AGRANDISSEMENT DES PHOTOS */

.zoomable {
  cursor: zoom-in;
}

.photo-zoom {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 12, 0.98);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 35px;
}

.photo-zoom.active {
  display: flex;
}

.photo-zoom img {
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.zoom-close {
  position: absolute;
  top: 15px;
  right: 25px;
  border: none;
  background: transparent;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

/* FLECHES DE LA GALERIE */

.zoom-prev,
.zoom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(150, 63, 59, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 25px;
  cursor: pointer;
  z-index: 2;
}

.zoom-prev {
  left: 15px;
}

.zoom-next {
  right: 15px;
}

.zoom-prev:hover,
.zoom-next:hover {
  background: #963f3b;
}

/* PHOTO DE MON ATELIER */

.atelier-photo {
  width: 100%;
  max-width: 650px;
  margin: 45px auto 20px;
}

.atelier-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* MENU SUR TELEPHONE */

@media (max-width: 600px) {

  .site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 10px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 8px 5px;
  }

}

/* AGRANDISSEMENT DES PHOTOS SUR TELEPHONE */

@media (max-width: 600px) {

  .photo-zoom {
    padding: 10px;
  }

  
.photo-zoom img {
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  object-fit: contain;
}


}
