/* Import police Bebas Neue (identique au logo SmartBox Mobiles) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* --- Reset de base --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
transition: background 0.3s, color 0.3s;
}

a {
text-decoration: none;
color: inherit;
}

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

/*
THEME SOMBRE (par defaut)
*/
body {
background-color: #111111;
color: #e8e8e8;
}

/*
THEME CLAIR (actif quand body a la classe .clair)
*/

body.clair {
background-color: #f5f5f5;
color: #1a1a1a;
}

/*
CONTENEUR CENTRAL
*/

.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
}

/*
HEADER ET NAVIGATION
*/

header {
background-color: #1a1a1a;
border-bottom: 3px solid #D32F2F;
position: sticky;
top: 0;
z-index: 100;
transition: background 0.3s;
}

body.clair header {
background-color: #ffffff;
}

nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 0;
flex-wrap: wrap;
gap: 10px;
}

.logo {
font-family: 'Bebas Neue', Arial, sans-serif;
font-size: 1.4rem;
font-weight: normal;
color: #FFFFFF;
letter-spacing: 0.05em;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 0;
}

.menu-nav {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}

.menu-nav a {
padding: 6px 12px;
border-radius: 8px;
font-size: 0.95rem;
color: #e8e8e8;
transition: background 0.2s, color 0.2s;
}

body.clair .menu-nav a {
color: #1a1a1a;
}

.menu-nav a:hover {
background: linear-gradient(180deg, #8B1010 0%, #C41010 50%, #CC1111 100%);
color: white;
}

body.clair .btn-theme {
background-color: #e0e0e0;
color: #1a1a1a;
border-color: #ccc;
}

.btn-theme:hover {
background: linear-gradient(180deg, #8B1010 0%, #C41010 50%, #CC1111 100%);
color: white;
border-color: #CC1111;
}

/* Boutons principaux */
.btn-rouge {
background: linear-gradient(180deg, #8B1010 0%, #C41010 50%, #CC1111 100%);
color: white;
padding: 10px 20px;
border-radius: 25px;
font-weight: bold;
font-size: 0.9rem;
border: none;
cursor: pointer;
display: inline-block;
transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
box-shadow: 0 4px 15px rgba(140,16,16,0.45);
}

.btn-rouge:hover {
background: linear-gradient(180deg, #C41010 0%, #CC1111 50%, #e02020 100%);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(140,16,16,0.65);
}

.btn-contour {
background-color: transparent;
color: #e8e8e8;
padding: 10px 20px;
border-radius: 25px;
font-weight: bold;
font-size: 0.9rem;
border: 2px solid #e8e8e8;
display: inline-block;
transition: all 0.2s;
}

body.clair .btn-contour {
color: #1a1a1a;
border-color: #1a1a1a;
}

.btn-contour:hover {
background: linear-gradient(180deg, #8B1010 0%, #C41010 50%, #CC1111 100%);
color: white;
border-color: #CC1111;
}

/*
SECTION HERO (bandeau haut de page)
*/

.hero {
background: linear-gradient(135deg, #1a0000 0%, #3a0008 50%, #D32F2F 100%);
color: white;
padding: 60px 0 50px;
}

.hero-small {
padding: 40px 0 30px;
}

.hero h1 {
font-family: 'Bebas Neue', Arial, sans-serif;
font-size: 2.8rem;
color: white;
margin-bottom: 15px;
max-width: 600px;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.hero-small h1 {
font-size: 2.2rem;
}

.hero p {
color: rgba(255, 255, 255, 0.85);
font-size: 1.05rem;
margin-bottom: 25px;
max-width: 550px;
}

/* Bandeau promo */
.promo-bandeau {
display: inline-block;
background-color: white;
color: #D32F2F;
padding: 6px 16px;
border-radius: 25px;
font-weight: bold;
font-size: 0.85rem;
margin-bottom: 20px;
}

/* Boutons dans le hero */
.hero-boutons {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

/*
SECTIONS
*/

section {
padding: 60px 0;
}

/* Section avec fond alterné */
.section-alt {
background-color: #1a1a1a;
transition: background 0.3s;
}

body.clair .section-alt {
background-color: #ffffff;
}

/* Petit label rouge au-dessus des titres */
.label-section {
display: inline-block;
background-color: #3a0009;
color: #ff4d6d;
padding: 5px 12px;
border-radius: 25px;
font-size: 0.8rem;
font-weight: bold;
margin-bottom: 10px;
transition: background 0.3s, color 0.3s;
}

body.clair .label-section {
background-color: #fce4e7;
color: #D32F2F;
}

h2 {
font-family: 'Bebas Neue', Arial, sans-serif;
font-size: 2rem;
margin-bottom: 10px;
letter-spacing: 0.04em;
text-transform: uppercase;
}

h3 {
font-size: 1.1rem;
margin-bottom: 8px;
}

/*
GRILLES
*/

.grille-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 30px;
}

.grille-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
margin-top: 30px;
}

.grille-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-top: 30px;
}

/*
CARTES
*/

.carte {
background-color: #1e1e1e;
border: 1px solid #333333;
border-radius: 12px;
padding: 25px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
transition: background 0.3s, border 0.3s;
}

body.clair .carte {
background-color: #ffffff;
border-color: #e0e0e0;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.carte-icone {
font-size: 2rem;
margin-bottom: 12px;
}

.carte ul {
list-style: none;
margin-top: 8px;
color: #aaaaaa;
font-size: 0.9rem;
}

body.clair .carte ul {
color: #666666;
}

.carte ul li {
padding: 3px 0;
}

.carte ul li::before {
content: "✓ ";
color: #D32F2F;
}

/* Carte garantie (petite, centrée) */
.carte-garantie {
background-color: #1e1e1e;
border: 1px solid #333333;
border-radius: 12px;
padding: 20px;
text-align: center;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
transition: background 0.3s, border 0.3s;
}

body.clair .carte-garantie {
background-color: #ffffff;
border-color: #e0e0e0;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.carte-garantie .icone {
font-size: 2rem;
margin-bottom: 8px;
}

.carte-garantie strong {
display: block;
color: #D32F2F;
margin-bottom: 4px;
font-size: 0.95rem;
}

.carte-garantie span {
font-size: 0.82rem;
color: #aaaaaa;
}

body.clair .carte-garantie span {
color: #666666;
}

/*
LIGNES D'INFO (coordonnees)
*/

.ligne-info {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 12px 0;
border-bottom: 1px solid #333333;
font-size: 0.93rem;
}

body.clair .ligne-info {
border-bottom-color: #e0e0e0;
}

.ligne-info:last-child {
border-bottom: none;
}

.ligne-info .icone-info {
font-size: 1.2rem;
flex-shrink: 0;
}

.ligne-info .label-info {
font-weight: bold;
font-size: 0.8rem;
color: #888888;
display: block;
margin-bottom: 2px;
}

body.clair .ligne-info .label-info {
color: #999999;
}

/*
PAGE DEVIS
*/

.encadre-info {
background-color: #2a0008;
border-left: 4px solid #D32F2F;
border-radius: 0 10px 10px 0;
padding: 16px 20px;
margin: 20px 0;
transition: background 0.3s;
}

body.clair .encadre-info {
background-color: #fce4e7;
}

.encadre-info p {
color: #e8e8e8;
max-width: none;
}

body.clair .encadre-info p {
color: #1a1a1a;
}

/* Etapes numerotees */
.liste-etapes {
list-style: none;
display: grid;
gap: 15px;
margin-top: 15px;
}

.etape {
display: flex;
gap: 12px;
align-items: flex-start;
}

.num-etape {
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(180deg, #8B1010 0%, #C41010 50%, #CC1111 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
flex-shrink: 0;
font-size: 0.85rem;
}

/* ============================================
PIED DE PAGE
============================================ */

footer {
background-color: #0d0d0d;
color: #e8e8e8;
padding: 40px 0 20px;
border-top: 3px solid #D32F2F;
transition: background 0.3s;
}

body.clair footer {
background-color: #9a0017;
}

.grille-footer {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr;
gap: 30px;
margin-bottom: 30px;
}

footer p,
footer li {
font-size: 0.88rem;
opacity: 0.8;
}

footer ul {
list-style: none;
display: grid;
gap: 6px;
}

footer strong {
display: block;
margin-bottom: 8px;
}

footer a:hover {
text-decoration: underline;
}

.footer-bas {
border-top: 1px solid rgba(255, 255, 255, 0.15);
padding-top: 15px;
font-size: 0.82rem;
opacity: 0.6;
text-align: center;
}

/*
RESPONSIVE mobile
*/

@media (max-width: 900px) {
.grille-3,
.grille-2,
.grille-4,
.grille-footer {
grid-template-columns: 1fr;
}

.hero h1 {
font-size: 2rem;
}

nav {
flex-wrap: nowrap;
padding: 10px 0;
gap: 8px;
}

.menu-nav {
display: flex;
width: 100%;
flex-direction: column;
background-color: #1a1a1a;
padding: 0;
border-top: 1px solid #333;
gap: 4px;
max-height: 0;
overflow: hidden;
opacity: 0;
transform: translateY(-10px);
pointer-events: none;
transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

body.clair .menu-nav {
background-color: #ffffff;
border-top: 1px solid #e0e0e0;
}

.menu-nav.ouvert {
max-height: 420px;
opacity: 1;
transform: translateY(0);
pointer-events: auto;
padding: 10px 0;
}

.logo {
font-size: 1.15rem;
}
}

@media (max-width: 600px) {
.grille-4 {
grid-template-columns: repeat(2, 1fr);
}
}

/* --- Logo image dans la navbar --- */
.logo img {
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}

/* Couleurs logo : SMART et MOBILES en blanc, BOX en rouge */
.logo-smart {
color: #FFFFFF;
}

.logo-box {
color: #D32F2F;
}

body.clair .logo-smart {
color: #1A1A1A;
}

body.clair .logo-box {
color: #D32F2F;
}

/* --- Grille hero : texte à gauche, image à droite --- */
.hero-grille {
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 30px;
align-items: center;
}

.hero-texte h1 {
max-width: none;
}

.hero-texte p {
max-width: none;
}

.hero-image img {
border-radius: 12px;
}

@media (max-width: 900px) {
.hero-grille {
grid-template-columns: 1fr;
}

.hero-image {
display: none;
}
}

/* ============================================
HERO BANNIERE - image de fond plein écran
============================================ */

.hero-banniere {
position: relative;
background-image: url('../img/banniere.jpg');
background-size: 85%;
background-position: center center;
background-repeat: no-repeat;
background-color: #111111;
min-height: 280px;
display: flex;
align-items: center;
}

.hero-banniere-overlay {
width: 100%;
background-color: rgba(0, 0, 0, 0.35);
padding: 50px 0;
}

.hero-banniere h1 {
font-family: 'Bebas Neue', Arial, sans-serif;
color: #ffffff;
text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
font-size: 2.8rem;
margin-bottom: 15px;
max-width: 600px;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.hero-banniere p {
color: #f0f0f0;
text-shadow: 1px 1px 6px rgba(0,0,0,0.95), 0 0 15px rgba(0,0,0,0.8);
font-size: 1.05rem;
margin-bottom: 25px;
max-width: 550px;
}

@media (max-width: 900px) {
.hero-banniere h1 {
font-size: 1.9rem;
}
}

/* ============================================
HERO V2 - texte gauche + grande image droite
============================================ */
.hero-v2 {
background: linear-gradient(135deg, #1a0000 0%, #3a0008 50%, #D32F2F 100%);
padding: 40px 0;
overflow: hidden;
}

.hero-v2-inner {
max-width: 1300px;
margin: 0 auto;
padding: 0 30px;
display: grid;
grid-template-columns: 1fr 1.6fr;
gap: 20px;
align-items: center;
}

.hero-v2-texte h1 {
font-family: 'Bebas Neue', Arial, sans-serif;
color: #ffffff;
font-size: 2.5rem;
line-height: 1.2;
margin-bottom: 16px;
text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
letter-spacing: 0.05em;
text-transform: uppercase;
}

.hero-v2-texte p {
color: #e0e0e0;
font-size: 1rem;
margin-bottom: 24px;
text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-v2-img {
display: flex;
justify-content: flex-end;
padding-right: 0;
}

.hero-v2-img img {
width: 100%;
max-width: 820px;
height: auto;
border-radius: 14px;
box-shadow: 0 10px 40px rgba(0,0,0,0.6);
margin-left: auto;
}

@media (max-width: 900px) {
.hero-v2-inner {
grid-template-columns: 1fr;
}

.hero-v2-img {
display: none;
}
}

/* HERO accueil : image visible sur mobile */
@media (max-width: 900px) {
.hero-v2-inner {
grid-template-columns: 1fr;
padding: 0 16px;
}

.hero-v2-img {
display: flex !important;
justify-content: center;
}

.hero-v2-img img {
width: 100%;
max-width: 100%;
height: auto;
}
}

/* HERO boutique : empiler texte + image */
@media (max-width: 768px) {
.hero.hero-small .container[style] {
flex-direction: column !important;
align-items: flex-start !important;
min-height: auto !important;
gap: 16px !important;
}

.hero.hero-small .container[style] > div[style*="flex-shrink"] {
width: 100% !important;
flex-shrink: 1 !important;
}

.hero.hero-small .container img {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
}
}

/* Sécurité générale */
@media (max-width: 768px) {
body {
overflow-x: hidden;
}

img {
max-width: 100% !important;
height: auto !important;
}
}

/* ============================================
MENU HAMBURGER MOBILE
============================================ */

.btn-hamburger {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 6px;
}

.btn-hamburger span {
display: block;
width: 22px;
height: 2px;
background-color: #e8e8e8;
border-radius: 2px;
transition: transform 0.3s ease, opacity 0.25s ease, background-color 0.3s ease;
transform-origin: center;
}

body.clair .btn-hamburger span {
background-color: #1a1a1a;
}

@media (max-width: 900px) {
.btn-hamburger {
display: flex;
}
}

/* ============================================
CARTE LOGO HERO - dégradé qui se fond avec le fond rouge
============================================ */

.hero-logo-carte {
background: linear-gradient(135deg, #1a1a1a 0%, #2a0a0a 55%, #D32F2F 100%);
border-radius: 16px;
padding: 30px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
border: none;
display: flex;
align-items: center;
justify-content: center;
}

.hero-logo-carte img {
border-radius: 8px;
max-width: 100%;
height: auto;
}


.btn-hamburger[aria-expanded="true"] span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.btn-hamburger[aria-expanded="true"] span:nth-child(2) {
opacity: 0;
}

.btn-hamburger[aria-expanded="true"] span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}


/* Correction header mobile : bouton menu en haut à droite */
@media (max-width: 900px) {
  header .container {
    position: relative;
  }

  nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    flex: 1;
    min-width: 0;
    padding-right: 52px;
  }

  .logo img {
    flex-shrink: 0;
  }

  .btn-hamburger {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 20;
  }

  .menu-nav {
    margin-top: 12px;
  }
}
