/* === PIERRECASINO – Stone Architecture Editorial Platform === */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #2A211C;
  background-color: #FAF8F3;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: #A66A3F;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2F3437;
}

/* --- Layout Containers --- */
.entete-interieur,
.pied-interieur,
.section-interieur {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.entete {
  background: #FAF8F3;
  border-bottom: 1px solid #ECE9E3;
  position: sticky;
  top: 0;
  z-index: 100;
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.entete-logo svg {
  display: block;
}

.entete-bascule {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.entete-bascule-ligne {
  display: block;
  width: 24px;
  height: 2px;
  background: #2F3437;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.entete-nav-liste {
  display: flex;
  list-style: none;
  gap: 32px;
}

.entete-nav-liste a {
  color: #2F3437;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.entete-nav-liste a:hover {
  border-bottom-color: #A66A3F;
}

/* --- Main --- */
main {
  flex: 1;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alternee {
  background: #ECE9E3;
}

.section-titre {
  font-size: 2rem;
  font-weight: 400;
  color: #2F3437;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.section-sous-titre {
  font-size: 0.9rem;
  color: #A66A3F;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-texte {
  font-size: 1.05rem;
  color: #2A211C;
  max-width: 720px;
  margin-bottom: 20px;
}

.section-texte-large {
  max-width: 920px;
}

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  background: #FAF8F3;
}

.hero-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-titre {
  font-size: 3.2rem;
  font-weight: 400;
  color: #2F3437;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-sous-titre {
  font-size: 1.1rem;
  color: #A66A3F;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-texte {
  font-size: 1.1rem;
  color: #2A211C;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-secondaire {
  border-left: 3px solid #D9D0C1;
  padding-left: 32px;
}

.hero-secondaire p {
  font-size: 1rem;
  color: #2A211C;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* --- Buttons --- */
.bouton {
  display: inline-block;
  padding: 14px 36px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.bouton-principal {
  background: #2F3437;
  color: #FAF8F3;
}

.bouton-principal:hover {
  background: #A66A3F;
  color: #FAF8F3;
}

.bouton-secondaire {
  background: transparent;
  color: #2F3437;
  border: 1px solid #2F3437;
}

.bouton-secondaire:hover {
  background: #2F3437;
  color: #FAF8F3;
}

.bouton-compact {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* --- Platform Cards --- */
.cartes-plateformes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.carte-plateforme {
  background: #FAF8F3;
  border: 1px solid #ECE9E3;
  transition: box-shadow 0.3s ease;
}

.carte-plateforme:hover {
  box-shadow: 0 4px 20px rgba(47, 52, 55, 0.08);
}

.carte-plateforme-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #74716b;
  border-bottom: 1px solid #ECE9E3;
}

.carte-plateforme-corps {
  padding: 24px;
}

.carte-plateforme-titre {
  font-size: 1.2rem;
  font-weight: 400;
  color: #2F3437;
  margin-bottom: 12px;
}

.carte-plateforme-texte {
  font-size: 0.92rem;
  color: #2A211C;
  line-height: 1.7;
  margin-bottom: 16px;
}

.carte-plateforme-lien {
  font-size: 0.85rem;
  color: #A66A3F;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Footer --- */
.pied {
  background: #2F3437;
  color: #D9D0C1;
  padding: 64px 0 32px;
  margin-top: auto;
}

.pied a {
  color: #D9D0C1;
}

.pied a:hover {
  color: #A66A3F;
}

.pied-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.pied-titre {
  font-size: 1rem;
  font-weight: 400;
  color: #FAF8F3;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pied-texte {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #D9D0C1;
}

.pied-liens {
  list-style: none;
}

.pied-liens li {
  margin-bottom: 10px;
}

.pied-liens a {
  font-size: 0.9rem;
}

.pied-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pied-images a,
.pied-images img {
  display: block;
}

.pied-images img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  border-radius: 2px;
}

.pied-information {
  border-top: 1px solid rgba(217, 208, 193, 0.2);
  padding-top: 32px;
  margin-bottom: 24px;
}

.pied-information p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: rgba(217, 208, 193, 0.8);
}

.pied-information a {
  color: #A66A3F;
}

.pied-mineur {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(217, 208, 193, 0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(217, 208, 193, 0.6);
}

.pier_pied-18 a {
  display: inline-block;
  border: 2px solid #A66A3F;
  color: #A66A3F;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: bold;
}

/* --- Age Verification Popup --- */
.verification-age {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 52, 55, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.verification-age.visible {
  display: flex;
}

.verification-age-contenu {
  background: #FAF8F3;
  max-width: 480px;
  padding: 48px;
  text-align: center;
}

.verification-age-contenu h2 {
  font-size: 1.6rem;
  font-weight: 400;
  color: #2F3437;
  margin-bottom: 16px;
}

.verification-age-contenu p {
  font-size: 0.95rem;
  color: #2A211C;
  line-height: 1.7;
  margin-bottom: 28px;
}

.verification-age-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- Cookie Banner --- */
.banniere-cookies {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FAF8F3;
  border-top: 1px solid #ECE9E3;
  z-index: 999;
  padding: 16px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.banniere-cookies.visible {
  display: block;
}

.banniere-cookies-contenu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.banniere-cookies-contenu p {
  font-size: 0.85rem;
  color: #2A211C;
  line-height: 1.5;
  flex: 1;
}

.banniere-cookies-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Grille Éditoriale --- */
.grille-editoriale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.bloc-editorial h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: #2F3437;
  margin-bottom: 16px;
}

.bloc-editorial p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #2A211C;
}

/* --- Separators --- */
.separateur {
  width: 60px;
  height: 1px;
  background: #A66A3F;
  margin: 16px 0 24px;
}

/* --- FAQ --- */
.faq-liste {
  max-width: 800px;
}

.faq-element {
  border-bottom: 1px solid #ECE9E3;
  padding: 20px 0;
}

.faq-question {
  font-size: 1.1rem;
  color: #2F3437;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: Georgia, serif;
  padding: 4px 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: #A66A3F;
  transition: transform 0.2s ease;
}

.faq-question.ouverte::after {
  transform: rotate(45deg);
}

.faq-reponse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-reponse.ouverte {
  max-height: 300px;
  padding: 16px 0 0;
}

.faq-reponse p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #2A211C;
}

/* --- Contact Form --- */
.formulaire-contact {
  max-width: 640px;
}

.champ-groupe {
  margin-bottom: 20px;
}

.champ-groupe label {
  display: block;
  font-size: 0.9rem;
  color: #2F3437;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.champ-groupe input,
.champ-groupe textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  border: 1px solid #D9D0C1;
  background: #FAF8F3;
  color: #2A211C;
  transition: border-color 0.2s ease;
}

.champ-groupe input:focus,
.champ-groupe textarea:focus {
  outline: none;
  border-color: #A66A3F;
}

.champ-groupe textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Accordion / Details --- */
.details-info {
  margin-bottom: 16px;
}

.details-info summary {
  font-size: 1rem;
  color: #2F3437;
  cursor: pointer;
  padding: 8px 0;
}

.details-info[open] summary {
  color: #A66A3F;
}

/* --- Liste Ressources --- */
.liste-ressources {
  list-style: none;
  margin-top: 20px;
}

.liste-ressources li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.liste-ressources li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #A66A3F;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grille {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-secondaire {
    border-left: none;
    border-top: 3px solid #D9D0C1;
    padding-left: 0;
    padding-top: 24px;
  }
  .cartes-plateformes {
    grid-template-columns: repeat(2, 1fr);
  }
  .pied-grille {
    grid-template-columns: repeat(2, 1fr);
  }
  .grille-editoriale {
    grid-template-columns: 1fr;
  }
  .grille-trois {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .entete-bascule {
    display: block;
  }
  .entete-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FAF8F3;
    border-bottom: 1px solid #ECE9E3;
  }
  .entete-nav.visible {
    display: block;
  }
  .entete-nav-liste {
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
  }
  .entete-nav-liste a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #ECE9E3;
  }
  .hero {
    padding: 80px 0 60px;
  }
  .hero-titre {
    font-size: 2rem;
  }
  .cartes-plateformes {
    grid-template-columns: 1fr;
  }
  .pied-grille {
    grid-template-columns: 1fr;
  }
  .grille-trois {
    grid-template-columns: 1fr;
  }
  .verification-age-contenu {
    margin: 24px;
    padding: 32px 24px;
  }
  .verification-age-actions {
    flex-direction: column;
  }
  .banniere-cookies-contenu {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-titre {
    font-size: 1.8rem;
  }
  .section-titre {
    font-size: 1.5rem;
  }
  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .hero-titre {
    font-size: 1.5rem;
  }
  .pied-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Utility --- */
.texte-centre {
  text-align: center;
}

.marge-basse {
  margin-bottom: 48px;
}
