/* ====================================
   MODERN STYLE - Système réutilisable
   ==================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #A9C122;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================================
   BOUTONS DE NAVIGATION
   ==================================== */
/* 
  Logo de base du menu27
====================================
*/
/* 
  Logo de base du menu27
====================================
*/

.menuBT
{
	position: fixed;
	top:10px;
	left : 10px;
	width: 60px;
	height: 60px;
	cursor: pointer;
	transition: all 0.5s;
	background: #292929;
	z-index:100;
 }
/* 
  Logo de base du menu
====================================
*/

.menuBT span,span:before,span:after 
{
  background: #ecf0f1;;
  position: absolute;
  height: 5px;
  width: 50px;
  border-radius: 4px;
  transition: all 0.5s;
}

.menuBT span:nth-child(1) {
  left: 5px;
  top: 14px;
}
.menuBT span:nth-child(2) {
  left: 5px;
  top: 27px;
}
.menuBT span:nth-child(3) {
  left: 5px;
  top: 40px;
}

/* 
  Logo activé du menu
====================================
*/
.menuBT.active span:nth-child(1)
{
  top: 27px;
  left: 13px;
  transform: rotate(180deg);
  width: 35px;
  background: #292929;
  z-index: 1;
}
.menuBT.active span:nth-child(3)
{
  top: 17px;
  left: 14px;
  transform: rotate(45deg);
  height: 25px;
  width: 25px;
  border-left: 5px solid #292929;
  border-bottom: 5px solid #292929;
  background: none;
 } 
  
.menuBT.active span:nth-child(2)
{
  top: 5px;
  left: 5px;
  width: 50px;
  height: 50px;
  border: 5px solid #ecf0f1;
  border-radius: 50%;
}

.ColoSchemeDesigner3BT
{
	position: fixed;
	top:10px;
	left : 150px;
	width: 60px;
	height: 60px;
	cursor: pointer;
	transition: all 0.5s;
	background: #292929;
	z-index:100;
	background-image: url('../images/ColorScheme_Button.jpg');
 }

/* 
  Logo de base du fullscreen
====================================
*/

.fullscreenBT
{
	position: fixed;
	top:10px;
	left : 80px;
	width: 60px;
	height: 60px;
	cursor: pointer;
	transition: all 0.5s;
	background: #292929;
	z-index:100;
 }
/* 
  Logo de base du fullscreen
====================================
*/

.fullscreenBT span,span:before,span:after 
{
  background: #ecf0f1;;
  position: absolute;
  left: 5px;
  top: 27px;
  height: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.fullscreenBT span:nth-child(1) {
  width: 20px;
  left: 10px;
  top: 18px;
  transform: rotate(45deg);
}
.fullscreenBT span:nth-child(2) {
  width: 20px;
  left: 30px;
  top: 18px;
  transform: rotate(-45deg);
}
.fullscreenBT span:nth-child(3) {
  width: 20px;
  left: 10px;
  top: 38px;
  transform: rotate(-45deg);
}
.fullscreenBT span:nth-child(4) {
  width: 20px;
  left: 30px;
  top: 38px;
  transform: rotate(45deg);
}
.fullscreenBT span:nth-child(5) {
  width: 10px;
  left: 13px;
  top: 12px;
}
.fullscreenBT span:nth-child(6) {
  width: 10px;
  left: 9px;
  top: 16px;
  transform: rotate(90deg);
}

.fullscreenBT span:nth-child(7) {
  width: 10px;
  left: 37px;
  top: 12px;
}
.fullscreenBT span:nth-child(8) {
  width: 10px;
  left: 41px;
  top: 16px;
  transform: rotate(90deg);
}
.fullscreenBT span:nth-child(9) {
  width: 10px;
  left: 13px;
  top: 44px;
}
.fullscreenBT span:nth-child(10) {
  width: 10px;
  left: 9px;
  top: 40px;
  transform: rotate(90deg);
}
.fullscreenBT span:nth-child(11) {
  width: 10px;
  left: 37px;
  top: 44px;
}
.fullscreenBT span:nth-child(12) {
  width: 10px;
  left: 41px;
  top: 40px;
  transform: rotate(90deg);
}

/* 
  Logo activé du fullscreen
====================================
*/

.fullscreenBT.active span:nth-child(1) {
  width: 20px;
  left: 10px;
  top: 18px;
  transform: rotate(45deg);
}
.fullscreenBT.active span:nth-child(2) {
  width: 20px;
  left: 30px;
  top: 18px;
  transform: rotate(-45deg);
}
.fullscreenBT.active span:nth-child(3) {
  width: 20px;
  left: 10px;
  top: 38px;
  transform: rotate(-45deg);
}
.fullscreenBT.active span:nth-child(4) {
  width: 20px;
  left: 30px;
  top: 38px;
  transform: rotate(45deg);
}
.fullscreenBT.active span:nth-child(5) {
  width: 10px;
  left: 21px;
  top: 21px;
  transform: rotate(-90deg);
}
.fullscreenBT.active span:nth-child(6) {
  width: 10px;
  left: 18px;
  top: 24px;
  transform: rotate(0deg);
}

.fullscreenBT.active span:nth-child(7) {
  width: 10px;
  left: 29px;
  top: 21px;
  transform: rotate(90deg);
}
.fullscreenBT.active span:nth-child(8) {
  width: 10px;
  left: 32px;
  top: 24px;
  transform: rotate(0deg);
}
.fullscreenBT.active span:nth-child(9) {
  width: 10px;
  left: 18px;
  top: 32px;
}
.fullscreenBT.active span:nth-child(10) {
  width: 10px;
  left: 21px;
  top: 35px;
  transform: rotate(90deg);
}
.fullscreenBT.active span:nth-child(11) {
  width: 10px;
  left: 32px;
  top: 32px;
}
.fullscreenBT.active span:nth-child(12) {
  width: 10px;
  left: 29px;
  top: 35px;
  transform: rotate(90deg);
}


/* ====================================
   CONTAINER PRINCIPAL
   ==================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    width: 100%;
}

/* ====================================
   EN-TÊTE
   ==================================== */

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(41, 41, 41, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

#titre {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bold;
    color: #A9C122;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#date {
    display: block;
    font-size: 1rem;
    font-style: italic;
    color: #8a9c1e;
    letter-spacing: 0.2em;
}

/* ====================================
   SECTIONS
   ==================================== */

.section {
    margin-bottom: 50px;
    background: rgba(41, 41, 41, 0.4);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(169, 193, 34, 0.2);
    transition: all 0.3s ease;
}

.section:hover {
    border-color: rgba(169, 193, 34, 0.4);
    box-shadow: 0 8px 25px rgba(169, 193, 34, 0.1);
}

#soustitre {
    display: block;
    font-size: 1.5rem;
    color: #A9C122;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(169, 193, 34, 0.3);
    text-transform: uppercase;
}

#texte {
    text-align: justify;
    color: #d4e157;
    font-size: 1rem;
    line-height: 1.8;
    margin: 15px 0;
}

/* ====================================
   IMAGES
   ==================================== */

#image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(169, 193, 34, 0.2);
}

#image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(169, 193, 34, 0.3);
    border-color: rgba(169, 193, 34, 0.5);
}

img {
    cursor: pointer;
}

/* ====================================
   GRILLES D'IMAGES
   ==================================== */

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(169, 193, 34, 0.2);
}

.image-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(169, 193, 34, 0.3);
    border-color: rgba(169, 193, 34, 0.5);
}

/* ====================================
   PANORAMA
   ==================================== */

#pano {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(169, 193, 34, 0.3);
    margin: 20px 0;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .container {
        padding: 80px 15px 20px;
    }

    .section {
        padding: 20px;
    }

    #soustitre {
        font-size: 1.2rem;
    }

    #texte {
        font-size: 0.95rem;
    }

    .menuBT, .fullscreenBT, .ColoSchemeDesigner3BT {
        transform: scale(0.833);  /* 50/60 = 0.833 */
        transform-origin: top left;
    }

    #pano {
        height: 400px;
    }

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

@media (max-width: 480px) {
    #pano {
        height: 300px;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }
.section:nth-child(9) { animation-delay: 0.9s; }
.section:nth-child(10) { animation-delay: 1s; }

/* ====================================
   COMPATIBILITÉ ANCIEN CODE
   ==================================== */

.Section1 {
    /* Wrapper pour compatibilité */
}

#explications {
    /* Container des sections */
}

#explication {
    /* Utilise .section à la place */
}
