* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
   font-family: "quiet-sans", sans-serif;
   font-style:normal;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-block;
}

.logo img {
    height: 20px;
    width: auto;
    max-width: 100%;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

nav a:hover {
    color: #ddd;
}

.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger span {
    background: #fff;
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 8px;
}

.burger span:nth-child(3) {
    top: 16px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

.subscribe-mobile {
  display: none;
}

.subscribe-btn {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.subscribe-btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .subscribe-mobile {
    display: block;
  }
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

section .container {
    padding: 5rem 0;
}

section h2 {
    font-size: 3rem;
    line-height: 3.3rem;
    margin-bottom: 1rem;
    font-family: "typeka",sans-serif;
	text-transform: uppercase;
}

#bio {
    background: #000;
    color:#fff;
}

#lettre {
    background: #e4e3de;
}

#livres {
     background: #000;
	color:#fff;
}

#medias {
    background: #e4e3de;
}

#bio p, #livres p, #lettre p, #catalogue p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#catalogue {
  background: #333;
  color: #fff;
  /* margin-top: 2rem; */
  /* padding-bottom: 4rem; */
}

.catalog-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 2rem;
}

.catalog-button {
  background-color: #a63723;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #fff;
  text-decoration-line: none;
  border-radius: 0.375rem;
}

.catalog-summary {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

#catalog-heading {
  margin-bottom: 5rem;
}

section a {
    color:#000;
     transition: color 0.3s;
}

.font-rouge {
	color:#a63723;
}

.font-gris {
	color:#666666;
}

.font-gris-fonce {
	color:#333;
}

.font-noir {
	color:#000;
}

.font-f-typeca {
	font-family: "typeka",sans-serif;
}

.semi-gras {
	font-weight:600;
}

.gras {
	font-weight:700;
}

.capitale {
text-transform :uppercase;
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    justify-content: center;
    margin: 0.8rem 0 2rem 0;
}

.social-icons a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #007bff;
}

.social-icons-menu {
    display: none;
    flex-direction: row;
    gap: 1.2rem;
    margin-top: 40px;
    justify-content: center;
}

.social-icons-menu a {
	color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons-menu a:hover {
    color: #ddd;
}

footer {
    background: #333;
    color: #fff;
    width: 100%;
}

footer .footer-links {
    background: #444;
    padding: 1rem 0;
    width: 100%;
}

footer .footer-links .container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

footer .footer-links a:hover {
    color: #ddd;
}

footer .copyright {
    text-align: center;
    padding: 1rem 0;
}

footer .copyright p {
    margin: 0;
}

.panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    padding: 2rem;
    transition: right 0.5s ease-in-out;
    overflow-y: auto;
}

.panel.active {
    right: 0;
}

.panel-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.panel-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
	font-weight: bold;
}

.panel-content h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.panel-content p {
    margin-bottom: 1rem;
}

.panel-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.panel .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}


/* SECTION CATALOGUE */

#catalogue .container {
    width: 100%;
}

#catalogue .livres-columns {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

#catalogue .col {
    flex: 0 0 auto;
    max-width: 530px;
    text-align: center;
}

#catalogue .col.droite {
    text-align:left;
}

@media (max-width: 768px) {

	#catalogue {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

	#catalogue .livres-columns {
        flex-direction: column;
        gap: 2rem;
    }

    #catalogue .col {
        max-width: 100%;
    }

    .image-xavier {
        width: 70%;
    }

}



/* SECTION LIVRES */


#livres {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#livres .container {
    width: 100%;
}

#livres .livres-columns {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

#livres .col {
    flex: 0 0 auto;
    max-width: 530px;
    text-align: center;
}

#livres .col.droite {
    text-align:left;
}

#livres h2 {
    margin-bottom:0;
}

#livres .texte-commande {
   font-size:1.3em;
    line-height:1.2;
}

.image-brigitte {
    max-width: 100%;
    width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-brigitte {
  transition: opacity 0.4s ease;
  opacity: 1;
}
.image-brigitte.fade-out {
  opacity: 0;
}

.book-buttons {
display: flex;
  margin-top: 2rem;
  justify-content: left;
  flex-wrap: nowrap;
}

.book-btn {
 display: block;
  flex: 0 0 auto;
  min-width: 120px;
  margin: 0 5px;
  padding: 8px;
  border: 1px solid #fff;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: "quiet-sans", sans-serif;
  font-size: 1.1em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.book-btn:hover {
  background-color: #fff;
    color:#000;
}

/* Par défaut (desktop) */
.mobile-break {
  display: block;
}

@media (max-width: 480px) {
   .book-buttons {
    flex-wrap: nowrap;
  }

  .book-btn {
    flex: 1;
    width: auto;
    max-width: none;
    white-space: nowrap;
  }

  #livres .col.gauche img {
	  float:left;
  }
}

@media (max-width: 768px) {

	#livres {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

	#livres .livres-columns {
        flex-direction: column;
        gap: 2rem;
    }

    #livres .col {
        max-width: 100%;
    }

    .image-brigitte {
        width: 70%;
    }

	 .mobile-break {
    display: block;
  }

}

@media (max-width: 1024px) and (min-width:768px){
	#livres .col {
    flex: 0 0 auto;
    max-width: 350px; /* largeur fixe ou max */
    text-align: center;
}
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {

	.container {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    header {
        margin-bottom: 0;
    }

    .logo img {
        height: 16px;
    }

    section {
        padding-top: 48px; /* Ajoute un padding pour compenser la hauteur du header */
    }

    .burger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: #333;
        padding: 4rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    nav a {
        font-size: 1.2rem;
    }

    .social-icons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
        transform: none;
        display: flex;
    }

    .social-icons-menu {
        display: flex;
    }

    section .container {
        padding: 2.5rem 0;
    }

    footer .footer-links {
        gap: 1rem;
        padding: 0.75rem 0;
    }

    footer .footer-links .container {
        gap: 1rem;
        justify-content: center;
    }

    footer .copyright {
        padding: 0.75rem 0;
    }


  section h2 {
    font-size: 2rem;
    line-height: 2.4rem;
  }
}

@media (max-width: 480px) {
    .logo img {
        height: 12px;
    }

    section {
        padding-top: 44px; /* Ajuste le padding pour la hauteur du header à ce breakpoint */
    }

	section .container {
    padding: 1rem 0;
  }

    nav a {
        font-size: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    footer .footer-links .container {
        gap: 0.75rem;
        justify-content: center;
    }

    .panel {
        padding: 1rem;
    }

    .panel-content h2 {
        font-size: 1.5rem;
    }

    .panel-content h3 {
        font-size: 1.1rem;
    }

    .book-container {
        width: 250px;
        height: 350px;
    }

    .book {
        width: 180px;
        height: 270px;
    }
}


/* CARROUSEL - MEDIAS */

.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 2rem 0;
}

.swiper {
  width: 85%;
  display: flex;
  align-items: center; /* centre les flèches verticalement sur la swiper-wrapper */
  margin-bottom: -4rem;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thumbnail-wrapper,
.thumbnail-wrapper img,
.video-title {
  cursor: pointer;
}

.mb-325 {
  margin-bottom: 3.3rem;
}

.thumbnail-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.thumbnail-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4rem;
  line-height: 1.4;
}

/* Flèches fixées au centre de la zone image */
.swiper-button-prev,
.swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  z-index: 10;
  width: 30px;
  height: 30px;
  color: #000;
  background: none;
  border: none;
    color:#a53724 !important;
}

.swiper-button-prev {
  left: -40px;
}

.swiper-button-next {
  right: -40px;
}

/* Dots sous les titres */
.swiper-pagination {
  position: relative;
  transform: translateY(100%);
  margin-top: -20px;
  z-index: 1;
}

.swiper-pagination-bullet {
  background: #000 !important;
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  border-radius: 50%;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #a53724 !important;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: white;
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* LETTRE */

#lettre {
  background: #e4e3de;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#lettre .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Flex aligné comme dans #livres */
#lettre .lettre-columns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  flex-direction: row;
}

#lettre .col {
  flex: 0 0 auto;
  max-width: 530px;
  text-align: left;
}

/* image */
.image-lettre {
  max-width: 100%;
  width: 350px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* bottom block */
#lettre .lettre-bottom {
  max-width: 720px;
  margin: 3rem 0 0;
  text-align: left;
  align-self: center;
}

#lettre .lettre-bottom p {
  font-size: 1.2em;
  line-height: 1.3;
  color: #666;
}

#lettre .lettre-bottom span {
  color: #000;
  display: inline-block;
  margin-bottom: 10px;
}

#lettre h2 {
  margin-bottom: 0;
}

.lettre-sous-titre {
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

/* Responsive mobile : image AU-DESSUS du texte */

@media (max-width: 768px) {

  #lettre {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    display: block;
  }

  #lettre .container {
    display: block;
    padding: 0 1.2rem;
  }

  #lettre .lettre-columns {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  #lettre .col {
    max-width: 100%;
    text-align: center;
  }

  .image-lettre {
    width: 70%;
  }

  #lettre .lettre-bottom {
    max-width: 100%;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    margin-top: 2rem;
  }
}


/* FORMULAIRE LA LETTRE */

form {

}

.offer-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.offer-btn {
  flex: 1;
  margin: 0 5px;
  padding: 12px;
  border: 1px solid #666;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: "quiet-sans", sans-serif;
  font-size:1.1em;
   color:#333;
}

.offer-btn:hover {
  background-color: #666;
    color:#fff;
}

.offer-btn.selected {
  background: #666;
  color: white;
  border-color: #666;
}

.checkbox {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

#cgv-checkbox {
  margin-right: 10px;

}

#subscription-form label {
    font-weight:bold;
}

#submit-btn, .submit-btn {
  width: 100%;
  padding: 12px;
  background: #a63723;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

#submit-btn:hover:not(:disabled) {
  background-color: #883121;
}

#submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* SECTION BIO */

#bio h2 {
    margin-bottom:0;
}

#bio {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#bio .container {
    width: 100%;
}

#bio .livres-columns {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

#bio .col {
    flex: 0 0 auto;
    max-width: 530px;
    text-align: center;
}

#bio .col.droite {
    text-align:left;
}

#bio .bio-txt p {
	 font-size:1.2em;
    line-height:1.3;
}

.image-xavier {
    max-width: 100%;
    width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {

	#bio {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

	#bio .livres-columns {
        flex-direction: column;
        gap: 2rem;
    }

    #bio .col {
        max-width: 100%;
    }

    .image-xavier {
        width: 70%;
    }

}

/* SECTION HERO */

#hero {
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#hero .container {
  width: 100%;
  padding: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.hero-icons {
  display: flex;
  justify-content: flex-start;
  gap: 1.2rem;
    margin-top:-10px;
    margin-bottom:10px
}

.hero-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.hero-icons a:hover {
  color: #a63723;
}

.hero-image {
  max-width: 100%;
  width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    display: block;
    text-align: center;
  }

  .hero-wrapper {
    align-items: center;
  }

  .hero-icons {
    justify-content: flex-end;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero-icons a {
    font-size: 1.3rem;
  }

  .hero-image {
    width: 90%;
  }
}



/* Indicateur de focus visuel pour les utilisateurs au clavier */
.user-is-tabbing a:focus,
.user-is-tabbing button:focus,
.user-is-tabbing [tabindex="0"]:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Visibilité du focus sur les éléments interactifs */
a:focus,
button:focus,
[tabindex="0"]:focus {
    outline: none; /* Par défaut, pas de outline sauf avec .user-is-tabbing */
}

/* Masquer les éléments (accessibles) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
