@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main { padding-top: 0; }

body {
  padding-top: var(--header-h);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  font-family: system-ui, sans-serif;
  min-height: 100vh;

  display: flex;
  flex-direction: column;   /* <- key */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    transition: top 0.3s; /* Animation de transition */
}

:root { --header-h: 190px; } /* adjust once */

body {
  padding-top: var(--header-h);
}

/* MOBILE: your header becomes relative, so remove the offset */
@media (max-width: 768px) {
  body { padding-top: 0; }
}

header.hidden {
    top: -300px; /* Ajustez la valeur selon la hauteur de votre header */
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
	margin-top: 15px;
}

.logo {
    height: 150px;
    margin: 0 100px;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/jewelry2.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    /* margin-top: 120px; */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.6rem;
    max-width: 600px;
    margin: 0 auto;
}

/* General Section Styles */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    background-color: #fff;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    background-color: #f9f9f9;
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    flex-basis: calc(25% - 20px);
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 3rem;
    color: #d90101;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Make a "feature" card behave like a link without changing the design */
.feature-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Optional: hover effect */
.feature-link:hover{
  transform: translateY(-2px);
}


/* Ring Section */
.ring {
    background-color: #fff;
}

.ring .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne à gauche */
    flex-wrap: wrap;
    gap: 10px; /* Optionnel, pour espacer légèrement */
}

.ring-image {
    max-width: 40%;
    height: auto;
    margin: 0; /* Supprime toute marge */
}

.ring-main {
    max-width: 50%;
    margin: 0; /* Supprime toute marge */
    padding: 0; /* Supprime tout padding */
}

.ring-main h2 {
    text-align: left;
    margin: 0 0 10px; /* Ajuste la marge inférieure */
}

.ring-main p {
    margin: 0; /* Supprime toute marge pour le paragraphe */
}

.ring-features {
    list-style: none;
}

.ring-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}

.ring-features li:before {
    content: '•';
    color: #d90101;
    position: absolute;
    left: 0;
}

.ring-text {
    font-style: italic;
    color: #d90101;
    margin-top: 20px;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #f9f9f9;
}

.reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.reason {
    flex-basis: calc(50% - 20px);
    background-color: #fff;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reason:hover {
    transform: translateY(-10px);
}

.reason i {
    font-size: 2.5rem;
    color: #d90101;
    margin-bottom: 20px;
}

.reason h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Prototype Journey Section */
.prototype-journey {
    background-color: #fff;
}

.journey-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.journey-step {
    flex-basis: calc(25% - 20px);
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-step img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.journey-step img:hover {
    transform: scale(1.1);
}

.journey-step p {
    font-weight: bold;
    margin-top: auto;
}

/* Video Section */
.video {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    margin-bottom: 100px;
}

/* Carousel Section */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 80px auto;
    text-align: center;
    background-color: #fff;
    padding-left: 250px; 
	padding-right: 250px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    object-fit: cover;
    height: 400px; 
    flex: 0 0 100%;
}

.carousel h1 {
    font-size: 1.8rem;
    margin-bottom: 60px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 2rem;
    border: none;
    padding: 10px;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #d90101;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
	margin-bottom:40px;
}

.contact-button:hover {
    background-color: #b80000;
}


/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.map, .address-info, .contact-info {
    flex-basis: calc(33.333% - 20px);
    margin-bottom: 20px;
}

.map iframe {
    width: 100%;
    height: 200px;
    border: 0;
}

.address-info h3, .contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.social-links {
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
}

.social-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}
.social-link:hover p{
	text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* MOBILE */
@media (max-width: 768px) {
    header {
        position: relative;
    }

    .logo {
        height: 80px;
        margin: 0 20px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .hero {
        margin-top: 0;
    }

    .feature, .reason {
        flex-basis: 100%;
    }

    .ring .container {
        flex-direction: column;
    }

    .ring-image, .ring-main {
        max-width: 100%;
    }
    .journey-container {
        flex-direction: column; 
    }

    .journey-step {
        flex-basis: calc(50% - 20px);
    }

    .footer-content > div {
        flex-basis: 100%;
    }
	
	.video{
		height: 150px;
		padding: 20px;
	}

    .carousel {
        margin: 20px auto; 
        padding: 10px;
    }

    .carousel-image {
        height: 250px;
        object-fit: cover; 
    }

    .prev, .next {
        font-size: 1.5rem;
        padding: 8px;
    }
	.container h2 {
		font-size: 1.5rem;
        margin-bottom: 30px; 
		
	}

    .carousel h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

label { display:block; margin-top:10px; }
input, textarea { width:100%; padding:6px; }
.hp { display:none; visibility:hidden; height:0; overflow:hidden; }
.msg { margin-top:10px; color:#c00; }


/* RJC Keep each bullet on a single line */
.rjc-provisions li {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .rjc-provisions li {
    white-space: normal;
  }
}
.hero-title { margin: 0; }
.hero-title span { display: block; }

.hero-kicker{
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  line-height: 1.1;
}

.hero-main{
  font-size: clamp(2.4rem, 12vw, 5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Optional: reduce spacing on small screens */
@media (max-width: 480px){
  .hero-main{ letter-spacing: 0.02em; }
}
/* RJC logo block */
.rjc-logo-wrap{
  display: flex;
  justify-content: center;
}

.rjc-logo{
  max-width: 520px;
  width: 100%;
  height: auto;

  /* “card” look that matches your clean sections */
  background: #fff;
  border-radius: 12px;
  padding: 12px;

  /* subtle separation from page background */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* modal css for rjc core policy */
.feature--clickable { cursor: pointer; }
.feature--clickable:focus { outline: 2px solid currentColor; outline-offset: 4px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

.modal-overlay.is-open { display: flex; }

.modal-panel {
  width: min(900px, 100%);
  max-height: 85vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.modal-header, .modal-footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modal-footer {
  border-bottom: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 { margin: 0; font-size: 1.2rem; }

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 1rem 1.25rem;
  overflow: auto;
}

.policy-sections { margin: 0; padding-left: 1.25rem; }
.policy-sections > li { margin: 1rem 0; }
.policy-sections h3 { margin: 0 0 0.5rem 0; font-size: 1.05rem; }
.policy-sections ol { margin: 0; padding-left: 1.25rem; }
.policy-sections ol li { margin: 0.25rem 0; }

.modal-btn {
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.03);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
}

/* Display PDF in popup */
/* Make the PDF viewer take the full row if its parent is a CSS grid */
.pdf-viewer {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
}

.pdf-viewer iframe {
  width: 100%;
  height: min(80vh, 900px);
  border: 0;
}

#policyViewer {
  grid-column: 1 / -1;
  width: 100%;
}
#policyViewer iframe {
  width: 100%;
  height: min(85vh, 1000px);
  border: 0;
}

/* optional: buttons on one line for certificate PDF*/
.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}



