body {
  margin: 0;
  font-family: Arial;
  background: #f5f5f5;
}


/* HEADER GLOBAL */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 40px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #d32f2f;
}

/* ZONES */
.header-left {
  justify-self: start;
}

.header-right {
  justify-self: end;
}

/* LOGOS */
.logo {
  height: 65px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* MENU */
.main-nav {
  display: flex;
  gap: 30px;
}

/* LIENS */
.main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

/* ICONES */
.main-nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: 0.3s;
}

/* HOVER */
.main-nav a:hover {
  background: rgba(211, 47, 47, 0.08);
  color: #d32f2f;
}

/* ANIMATION */
.main-nav a:hover svg {
  transform: scale(1.15);
  stroke: #d32f2f;
}

/* ACTIF */
.main-nav a.active {
  background: #d32f2f;
  color: white;
}

.main-nav a.active svg {
  stroke: white;
}

/* EFFET LOGO DROIT */
.header-right .logo {
  opacity: 0.75;
  filter: grayscale(20%);
}

/* LIGNE BAS SUBTILE */
.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  transform: translateX(-50%);
}


/* logo gauche */
.logo {
  width: 300px;
}

/* logo droite */
.logo-right {
  transform: scaleX(1); /* effet miroir optionnel */
}

.search {
  width: 40%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

.btn {
  background: #b72c2e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 18px;
}

.btn-outline {
  background: white;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 20px;
}

/* HERO */
.hero {
  height: 450px;
  background: url('images/npnb.png') center/cover;
  position: relative;
}

.hero-ss {
  height: 450px;
  /*background: url('images/npnb.png') center/cover; */
  position: relative;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;

  height: 100%;
  width: 100%;

  background: rgba(0,0,0,0.3);
  color: white;

  display: flex;
  flex-direction: column;

  justify-content: flex-start;

  padding-top: 5px;
  padding-left: 80px;

  box-sizing: border-box;

}
/*
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.4);
  color: white;
  padding: 80px;
}
*/
.overlay h1 {
    font-size: 50px;
  margin: 0;
}


* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

@media (max-width: 768px) {

  .header {
    flex-direction: column;
    gap: 10px;
  }

  .search {
    width: 100%;
  }

}


#book {
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: 10px;
}

.viewer-container {
  overflow: hidden; /* 🔥 empêche scrollbars */
  position: relative;
}

.controls {
  position: relative;
  z-index: 10; /* 🔥 reste au-dessus du zoom */
}

#book {
  margin: auto;
  transition: transform 0.3s ease;
}


/* SECTION EDITO */
.edito {
  padding: 80px 20px;
 /* background: linear-gradient(to bottom, #ffffff, #f8f8f8);*/
  display: flex;
  justify-content: center;
}

.edito-container {
  max-width: 900px;
  text-align: center;
}

/* TITRE */
.edito-title {
  font-size: 36px;
  color: #d32f2f;
  margin-bottom: 20px;
}

/* TEXTE */
.edito-text {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* BOUTON */
.edito-btn {
  display: inline-block;
  background: #d32f2f;
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.edito-btn:hover {
  background: #b71c1c;
}
.edito {
  padding: 30px 20px 40px;
  display: flex;
  justify-content: center;
}

.edito-container {
  max-width: 850px;
  background: white;
  padding: 35px 40px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* header */
.edito-header {
  text-align: center;
  margin-bottom: 25px;
}

.edito-badge {
  display: inline-block;
  background: #ffe5e5;
  color: #d32f2f;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
}

.edito-title {
  font-size: 32px;
  margin-bottom: 5px;
}

.edito-subtitle {
  font-size: 16px;
  color: #777;
}

/* contenu */
.edito-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 18px;
}

/* intro plus visible */
.edito-content .intro {
  font-size: 18px;
  font-weight: 500;
}

/* bloc citation */
.edito-highlight {
  background: #f8f8f8;
  border-left: 4px solid #d32f2f;
  padding: 15px 18px;
  margin: 25px 0;
  font-style: italic;
}

/* signature */
.signature {
  margin-top: 25px;
  font-size: 15px;
  text-align: right;
  color: #222;
}
.signature-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 30px;
}

.signature-text {
  text-align: right;
  font-size: 15px;
  color: #222;
}

.signature-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* DIFFUSION */
.diffusion {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.diffusion-container {
  max-width: 900px;
  text-align: center;
}

.diffusion-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.diffusion-subtitle {
  color: #777;
  margin-bottom: 30px;
}

.diffusion-card {
  background: white;
  padding: 0; /* suppression espace interne */
  border-radius: 18px;
  overflow: hidden; /* coupe tout débordement */
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.diffusion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.diffusion-image {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  transition: 0.3s;
}

.diffusion-image:hover {
  transform: scale(1.02);
}

/*popup */
.popup-carte {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-image {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease;
}

.close-popup {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
#auth-area {
  white-space: nowrap;
}

#auth-area a {
  text-decoration: none;
  color: black;
}

#auth-area a:hover {
  text-decoration: underline;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* FOND */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

/* HEADER */
.header {
  text-align: center;
  padding: 20px;
}

.logo {
  height: 70px;
}

/* CONTAINER */
.login-container {
  max-width: 400px;
  margin: 60px auto;
  background: white;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

/* TITRE */
.login-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #777;
  margin-bottom: 25px;
}

.form-group select{

width:100%;

padding:14px;

border-radius:14px;

border:1px solid #ddd;

font-size:15px;

background:white;

cursor:pointer;

}

.form-group select:focus{

outline:none;

border-color:#d32f2f;

box-shadow:
0 0 0 4px rgba(211,47,47,.08);

}

/* INPUTS */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  font-weight: bold;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.input-group input:focus {
  border-color: #d32f2f;
  outline: none;
}

/* BOUTON */
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: #d32f2f;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn:hover {
  background: #b71c1c;
}

/* LIEN */
.register-link {
  margin-top: 20px;
  font-size: 14px;
}

.register-link a {
  color: #d32f2f;
  text-decoration: none;
  font-weight: bold;
}

/* ERREUR */
.error {
  color: red;
  font-size: 14px;
  display: none;
  margin-bottom: 10px;
}


@keyframes zoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {

  .header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .header-left,
  .header-right {
    justify-self: center;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 20px;
  }

  .logo {
    height: 55px;
  }

  /* HERO MOBILE */
  .overlay {
    justify-content: flex-start;
    align-items: flex-start;

    padding-top: 25px;
    padding-left: 20px;
    padding-right: 20px;

    text-align: left;
  }

  .overlay h1 {
    font-size: 18px; /* réduit */
    line-height: 0;
    margin-bottom: 10px;
  }

  .overlay p {
    font-size: 13px; /* réduit */
    line-height: 0;
    margin-bottom: 15px;
  }

  .hero {
    height: 240px;
    background: url('images/npnb.png') center center no-repeat;
    background-size: contain;
    background-color: #000; /* optionnel : évite bandes blanches */
    background-size: 100% auto;
  }

.hero .btn {
  padding: 7px 14px;
  font-size: 13px;
  display:none ;
}
}

/* =========================
   HEADER RESPONSIVE
========================= */

@media (max-width: 768px) {

  .header {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 12px 10px;
  }

  /* logos */
  .logo {
    width: 90px;
    height: auto;
  }

  .header-left,
  .header-right {
    display: flex;
    align-items: center;
  }

  /* menu */
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-wrap: nowrap;
  }

  /* liens */
  .main-nav a,
  #auth-area a {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 6px 8px;

    font-size: 11px;

    border-radius: 10px;
  }

  /* icônes */
  .main-nav svg {
    width: 16px;
    height: 16px;
  }

  /* texte */
  .main-nav span {
    white-space: nowrap;
  }

  /* auth */
  #auth-area {
    display: flex;
    align-items: center;
  }

  /* =========================
   DIFFUSION MOBILE
========================= */

.diffusion {
  padding: 30px 15px;
}

.diffusion-container {
  width: 100%;
}

.diffusion-title {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.diffusion-subtitle {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 20px;
  padding: 0 10px;
}

.diffusion-card {
  border-radius: 14px;
}

.diffusion-image {
  width: 100%;
  height: auto;
  display: block;
}
.popup-image {
  max-width: 95%;
  max-height: 80%;
}

.close-popup {
  top: 15px;
  right: 20px;
  font-size: 26px;
}

/* =========================
   EDITO MOBILE
========================= */

.edito {
  padding: 25px 15px;
}

.edito-container {
  padding: 25px 20px;
  border-radius: 14px;
}

/* badge */
.edito-badge {
  font-size: 11px;
  padding: 4px 10px;
}

/* titre */
.edito-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* sous titre */
.edito-subtitle {
  font-size: 14px;
  line-height: 1.4;
}

/* texte */
.edito-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* intro */
.edito-content .intro {
  font-size: 16px;
}

/* citation */
.edito-highlight {
  font-size: 14px;
  padding: 12px 14px;
  margin: 20px 0;
}

/* signature */
.signature-block {
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 12px;
}

.signature-text {
  text-align: center;
  font-size: 14px;
}

.signature-photo {
  width: 75px;
  height: 75px;
  border-radius: 10px;
}
}

/* ==========================
   FOOTER
========================== */

.footer{

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fafafa
    );

  border-top:
    3px solid #d32f2f;

  margin-top:80px;

}

.footer-container{

  max-width:1200px;

  margin:auto;

  padding:
    60px 30px;

  display:grid;

  grid-template-columns:
    1.5fr
    1fr
    1fr;

  gap:60px;

}

.footer-col h3{

  color:#d32f2f;

  margin-bottom:18px;

}

.footer-col p{

  color:#666;

  line-height:1.6;

}

.footer-col a{

  display:block;

  color:#444;

  text-decoration:none;

  margin-bottom:12px;

  transition:0.25s;

}

.footer-col a:hover{

  color:#d32f2f;

  transform:
    translateX(4px);

}

.footer-logo{

  width:240px;

  margin-bottom:20px;

}

.footer-social{

  display:flex;

  gap:15px;

  margin-top:20px;

}

.footer-social a{

  width:42px;

  height:42px;

  border-radius:50%;

  background:#f3f3f3;

  display:flex;

  align-items:center;

  justify-content:center;

}

.footer-social a:hover{

  background:#d32f2f;

  color:white;

}

.footer-social svg{

  width:20px;

  height:20px;

}

.footer-bottom{

  text-align:center;

  padding:20px;

  color:#888;

  border-top:
    1px solid #eee;

}

/* MOBILE */

@media(max-width:768px){

.footer-container{

grid-template-columns:1fr;

text-align:center;

gap:40px;

}

.footer-logo{

margin:auto;

}

.footer-social{

justify-content:center;

}

}
.preview-container{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:15px;
}

.preview-item{
  position:relative;
}

.preview-item img{
  width:120px;
  height:120px;
  object-fit:cover;

  border-radius:12px;
  border:1px solid #ddd;
}

.remove-photo{
  position:absolute;

  top:-8px;
  right:-8px;

  width:24px;
  height:24px;

  border:none;

  border-radius:50%;

  background:#d32f2f;

  color:white;

  cursor:pointer;
}

/* MENUS DEROULANTS */

.dropdown{

position:relative;
display:inline-block;

}

.dropbtn{

background:none;
border:none;
cursor:pointer;

display:flex;
align-items:center;
gap:8px;

font-size:16px;
color:#333;

padding:10px;

}

.dropdown-content{

display:none;

position:absolute;

top:100%;
left:0;

min-width:240px;

background:white;

border-radius:16px;

box-shadow:
0 10px 30px rgba(0,0,0,.08);

overflow:hidden;

z-index:1000;

}

.dropdown-content a{

display:block;

padding:14px 20px;

text-decoration:none;

color:#333;

transition:.2s;

}

.dropdown-content a:hover{

background:#fafafa;
color:#d32f2f;

}

.dropdown:hover .dropdown-content{

display:block;

}

.mobile-menu-btn{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  color:#222;
}

.mobile-menu-btn svg{
  width:32px;
  height:32px;
}

@media(max-width:1000px){

  .header{
    grid-template-columns:auto 1fr auto;
    padding:15px 20px;
  }

  .header-left .logo,
  .header-right .logo{
    width:130px;
    height:auto;
  }

  .mobile-menu-btn{
    display:flex;
    justify-self:center;
    align-items:center;
    justify-content:center;
  }

  .main-nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    flex-direction:column;
    gap:0;
    padding:15px;
    border-bottom:3px solid #d32f2f;
    box-shadow:0 15px 35px rgba(0,0,0,.12);
    z-index:999;
  }

  .main-nav.open{
    display:flex;
  }

.main-nav a,
.dropbtn{

  width:100%;

  justify-content:flex-start;

  padding:18px 20px;

  border-radius:12px;

  font-size:22px;
  font-weight:600;

}

  .dropdown{
    width:100%;
  }

  .dropdown-content{
    position:static;
    display:none;
    box-shadow:none;
    background:#fafafa;
    margin:5px 0 10px;
    border-radius:14px;
  }

  .dropdown:hover .dropdown-content{
    display:none;
  }

  .dropdown.open .dropdown-content{
    display:block;
  }

  .main-nav a svg,
.dropbtn svg{

  width:28px;
  height:28px;

}

}